SetSockOption
Description
Sets any of the various options for the socket identified by the specified socket handle. Note that not all options are supported by every stack.
Remarks
The following is a list of options that are available for this methd, and their meanings.
SSQ_SO_DEBUG
Boolean
Records debugging information
SSQ_SO_REUSEADDR
Boolean
Sets whether Winsock should reuse sockets
SSQ_SO_KEEPALIVE
Boolean
Set whether Winsock should send keep-alives
SSQ_SO_DONTROUTE
Boolean
Set whether Winsock should route or send directly to interface
SSQ_SO_BROADCAST
Boolean
Set whether to allow broadcast messages
SSQ_SO_USELOOPBACK
Boolean
Bypass hardware where possible
SSQ_SO_LINGER
Integer
Indicates if the socket should linger when closing and for how long
SSQ_SO_OOBINLINE
Boolean
Indicates whether to receive OOB data in the normal data stream
SSQ_TCP_NODELAY
Boolean
Specifies whether to disable the Nagle algorithm for send coalescing
SSQ_OPTIONAL_SO_SNDBUF
Integer
Specifies the total per-socket buffer space for sends
SSQ_OPTIONAL_SO_RCVBUF
Boolean
Specifies the total per-socket buffer space for receives
SSQ_OPTIONAL_SO_SNDLOWAT
Integer
Send low-water mark
SSQ_OPTIONAL_SO_RCVLOWAT
Integer
Receive low-water mark
Prototype
LONG CSockQ::SetSockOption(long SocketHandle, SQ_SOCK_OPTION SockOption, LONG NewOptValue)
Last updated