:SetOption()
Class
Syntax
:SetOption( nOption, lEnable ) --> lSuccess
Parameters
|
|
nOption |
Constant representing the desired Option. May NOT be added together. |
|
|
lEnable |
Logical. .T. turns option on, .F. turns Option off. |
Return
Logical indicating Success.
Returns .T. if the operation succeeds, otherwise returns .F.
Description
Enable/disable specified option
The :SetOption() Method sets whether a specified INet option is enabled or disabled.
Numeric used to specify one or more socket options. The following values are recognized:
|
Constant |
Description |
|
INET_OPTION_BROADCAST |
This option specifies that broadcasting should be enabled for datagrams. This option is invalid for stream sockets. |
|
INET_OPTION_DONTROUTE |
This option specifies default routing should not be used. |
|
INET_OPTION_KEEPALIVE |
This option specifies that packets are to be sent to the remote system when no data is being exchanged to keep the connection active. This is only valid for stream sockets. |
|
INET_OPTION_REUSEADDR |
This option specifies that the local address can be reused. This option is commonly used by server applications. |
|
INET_OPTION_NODELAY |
This option disables the Nagle algorithm, which buffers unacknowledged data and insures that a full-size packet can be sent to the remote host. |
See Also