1.2.3.1.4 TCP_OPTION_LINGER_DATA Structure

C

typedef struct {
bool lingerEnable;
bool gracefulEnable;
uint16_t lingerTmo;
} TCP_OPTION_LINGER_DATA;

Description

Structure: TCP_OPTION_LINGER_DATA.

This structure defines socket linger options.

Members

MembersDescription
lingerEnableEnable/disable linger; enabled by default for any socket.
gracefulEnableEnable/disable graceful close; enabled by default for any socket.
lingerTmoLinger timeout in seconds (when enabled). This option is not supported yet.