TCP_OPTION_KEEP_ALIVE_DATA Structure

C

typedef struct {
bool keepAliveEnable;
uint16_t keepAliveTmo;
uint8_t keepAliveUnackLim;
} TCP_OPTION_KEEP_ALIVE_DATA;

Description

Structure: TCP_OPTION_KEEP_ALIVE_DATA.

This structure defines socket keep alive options.

Parameters

ParametersDescription
keepAliveEnableEnable/disable keep alive option; disabled by default for any socket.
keepAliveTmoKeep alive timeout in milliseconds ignored when keep alive is disabled if 0, the default build time value is used.
keepAliveUnackLimLimit of keep alives to be sent the socket will reset the communication channel if no reply received after so many retries ignored when keep alive is disabled if 0, the default build time value is used.