linger

Contains information about the SO_LINGER socket option.

Service:Networking

Syntax

  #include <sys/socket.h>
  
  struct linger 
  
  {
     int   l_onoff; 
     int   l_linger; 
  };
  

Fields

l_onoff

Indicates whether the linger option is enabled.

l_linger

Specifies the time, in seconds, to linger to transmit data when data is present and a close request has been received.