SET-SOCKET-OPTION( ) methodSets the specified socket option. TCP supports a number of socket options. Please refer to TCP documentation for a description of these options.
Return type:
Applies to:
SET-SOCKET-OPTION ( name , arguments )A character expression that contains a comma separated list of arguments specific for the option.Table 106 describes the options ABL supports.
Table 106: Options for the SET-SOCKET-OPTION( ) method An enable indicator, which is either TRUE or FALSE.
![]()
The onoff indicator, which is either TRUE or FALSE.
![]()
Set arguments to TRUE to turn this option on or to FALSE to turn it off. Set arguments to TRUE to turn this option on or to FALSE to turn it off. SO-RCVBUF
SO-SNDBUF Set arguments to the desired size of the buffer.Note: Depending on your platform, the value you supply might be increased to the platform’s minimum buffer size, decreased to the platform’s maximum buffer size, or rounded up to the next multiple of the platform’s segment size. For more information, see your platform’s documentation. Sets the timeout length—that is, the number of seconds the socket waits to receive data before timing out.Set arguments to the desired timeout value in seconds.If a timeout occurs, READ( ) returns TRUE and the value of BYTES-READ is zero. This is true whether the READ( ) mode is READ-AVAILABLE or READ-EXACT-NUM.For more information on the interaction of READ( ), the READ( ) mode, and SO_RCVTIMEO, see OpenEdge Development: Programming Interfaces.The SET-SOCKET-OPTION( ) method returns TRUE if setting the option succeeded and returns FALSE otherwise. An error can occur if:
![]()
name is not an ABL supported socket option
![]()
The SET-SOCKET-OPTION( ) operation fails
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |