network programming and sockets the following options are available for level sol_tcpoption name value description tcp_cork tcp_defer_accept , , tcp_info tcp_info tcp_keepcnt int tcp_keepidle int tcp_keepintvl tcp_linger int int tcp_maxseg int tcp_nodelay tcp_quickack , , tcp_syncnt int tcp_window_clamp int don' send out partial frames if set awake listener only when data arrives on socket returns structure containing information about the socket tcp_info is implementation specific maximum number of keepalive probes tcp should send before dropping connection time in seconds the connection should be idle before tcp starts sending keepalive probes if the tcp_keepalive option has been set time in seconds between keepalive probes lifetime of orphaned fin_wait state sockets maximum segment size for outgoing tcp packets if setdisables the nagle algorithm if setacks are sent immediately disables the tcp delayed ack algorithm number of syn retransmits before aborting connection request sets an upper bound on the advertised tcp window size gettimeout(returns the current timeout value if any returns floating-point number in seconds or none if no timeout is set ioctl(controloptionprovides limited access to the wsaioctl interface on windows the only supported value for control is sio_rcvall which is used to capture all received ip packets on the network this requires administrator access the following values can be used for optionsoption description rcvall_off prevent the socket from receiving all ipv or ipv packets enable promiscuous modeallowing the socket to receive all ipv or ipv packets on the network the type of packet received depends on the socket address family this does not capture packets associated with other network protocols such as arp receive all ip packets received on the networkbut do not enable promiscuous mode this will capture all ip packets directed at the host for any configured ip address rcvall_on rcvall_iplevel lib fl ff