SET-SOCKET-OPTION( ) method
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
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 object handle
Syntax
|
- name
- A character expression which indicates the name of the socket option to be set.
- arguments
- A character expression that contains a comma separated list of arguments specific for the option.
The following table describes the options ABL supports.
| Option | Description |
|---|---|
SO-KEEPALIVE |
Sets the TCP socket option
SO_KEEPALIVE.Set arguments to TRUE to turn this option on or to FALSE to turn it off. |
SO-LINGER |
Sets the TCP socket option
SO-LINGER. The arguments are two comma-separated values:
|
SO-RCVBUF |
Sets the TCP socket option
SO_RCVBUF.Set arguments to the desired size (in bytes) 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. Note: See also SO-SNDBUF. |
SO-RCVTIMEO |
Sets the TCP socket option
SO-RCVTIMEO.
Set arguments to the desired timeout value in seconds. If a timeout
occurs, For more information on
the interaction of |
SO-REUSEADDR |
Sets the TCP socket option
SO_REUSEADDR. Set arguments to TRUE to turn this option on or to FALSE to turn it off. |
|
|
Sets the TCP socket option
SO_SNDBUF.Set arguments to the desired size (in bytes) 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. Note: See also SO-RCVBUF. |
TCP-NODELAY |
Sets the TCP socket option
TCP-NODELAY.
|
TCP-STARTTLS |
Sets the TCP socket option TCP-STARTTLS.
Set arguments to the host name. To use this
option:
Note: If a Secure Socket Layer (SSL) failure
message appears while trying to use this option:
|
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 arguments supplied for the option are not valid
- The
SET-SOCKET-OPTION( )operation fails