The socket options supported by Windows Sockets are listed in the pages describing setsockopt() and getsockopt(). A Windows Sockets implementation must recognize all of these options, and (for getsockopt()) return plausible values for each. The default value for each option is shown in the following table.
Value Type Meaning Default Note SO_ACCEPTCON BOOL Socket is listen()ing. FALSE unless a listen() has been performed SO_BROADCAST BOOL Socket is configured FALSE for the transmission of broadcast messages. SO_DEBUG BOOL Debugging is enabled. FALSE (i) SO_DONTLINGER BOOL If true, the SO_LINGER TRUE option is disabled. SO_DONTROUTE BOOL Routing is disabled. FALSE (i) SO_ERROR int Retrieve error status 0 and clear. SO_KEEPALIVE BOOL Keepalives are being FALSE sent. SO_LINGER struct linger Returns the current l_onoff is 0 FAR * linger options. SO_OOBINLINE BOOL Out-of-band data is FALSE being received in the normal data stream. SO_RCVBUF int Buffer size for Implementation (i) receives dependant. SO_REUSEADDR BOOL The address to which FALSE this socket is bound can be used by others. SO_SNDBUF int Buffer size for sends Implementation (i) dependant. SO_TYPE int The type of the socket As created (e.g. SOCK_STREAM). via socket() TCP_NODELAY BOOL Disables the Nagle Implementation algorithm for send dependant. coalescing.
Notes:
(i) An implementation may silently ignore this option on setsockopt() and return a constant value for getsockopt(), or it may accept a value for setsockopt() and return the corresponding value in getsockopt() without using the value in any way.