:GetOption()
Class
Syntax
:GetOption( nOption ) -> lEnabled
Parameters
|
|
nOption |
Numeric. See constant table below. May NOT be added together. |
Return
Logical. True (.T.) if enabled, otherwise False (.F.)
To see if an error occurred, see :nErr and :cErr
Description
Determines if specified option is enable or disable .
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