Progress
Language Reference


SET-SOCKET-OPTION( ) Method

Sets the specified socket option. TCP supports a number of socket options. Please refer to TCP documentation for a description of these options.

Return Type: LOGICAL

Applies To: Socket System Handle

SYNTAX
SET-SOCKET-OPTION( name , arguments ) 

name

A character expression which indicates the name of the socket option to be set. Progress supports setting only TCP-NODELAY and SO-LINGER options.

arguments

A character expression that contains a comma separated list of arguments specific for the option.

For TCP-NODELAY, arguments contains an enable indicator, which is either TRUE or FALSE.

For SO-LINGER, arguments contains two comma separated values. The first is the onoff indicator which is either TRUE or FALSE. The second argument is the linger time. If the onoff indicator is FALSE, the linger time does not need to be provided.

The SET-SOCKET-OPTION( ) method returns TRUE if setting the option succeeded and returns FALSE otherwise. An error can occur if:


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095