Value |
Description |
INET_OPTION_NONE |
No option specified. If the address and port number are in
use by another application or a closed socket which was
listening on this port is still in the TIME_WAIT state, the
function will fail. |
INET_OPTION_REUSEADDRESS |
This option specifies the local address can be reused.
This option enables a server application to listen for
connections using the specified address and port number even if
they were in use recently. This is typically used to enable an
application to close the listening socket and immediately
reopen it without getting an error that the address is in
use. |
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. Enabling this option will also help applications
detect the physical loss of a network connection, such as an
Ethernet cable being unplugged. This option does not guarantee that
persistent connections will be maintained over long periods of time. |
INET_OPTION_NODELAY |
This option disables the Nagle algorithm, which buffers
unacknowledged data and combines smaller packets into a single
larger packet when sending data to a remote host. Specifying this
option can improve the responsiveness and overall throughput of
applications that implement their own buffering and exchange large
amounts of information. |
INET_OPTION_NOINHERIT |
This option prevents the socket handle from being inherited
by child processes created by the application. Using this option
can mitigate situations in which a child process does not close
the handle, leaving it open after the parent process has
stopped the server. |
INET_OPTION_SECURE |
This option specifies that a secure connection should be
established with the client, where the client immediately
initiates the TLS handshake when it connects to the server. To
implement an explicit TLS session, where the client establishes
a standard, non-secure connection and then sends a command to
the server to initiate a secure session, you should not use this
option. Instead, use the EnableSecurity method to
selectively enable TLS for the client session. |
INET_OPTION_SECURE_FALLBACK |
This option specifies the server should permit the use of
less secure cipher suites for compatibility with legacy clients. If
this option is specified, the server will allow connections using
TLS 1.0 and cipher suites that use RC4, MD5 and SHA1. |