Jump to main content

##

# 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

Parameters | Description
--- | ---
keepAliveEnable | Enable/disable keep alive option; disabled by default for any socket.
keepAliveTmo | Keep alive timeout in milliseconds ignored when keep alive is disabled if 0, the default build time value is used.
keepAliveUnackLim | Limit 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.