dwnx_conn_handle_expiry

Synopsis

#include <dwnx/dwnx.h>

int dwnx_conn_handle_expiry(dwnx_conn *conn, dwnx_tstamp ts)

dwnx_conn_handle_expiry() handles expired timer.

If it returns DWNX_ERR_IDLE_CLOSE, it means that an idle timer has fired for this particular connection. In this case, just close the underlying connection.

This function returns 0 if it succeeds, or one of the following negative error codes:

DWNX_ERR_IDLE_CLOSE

The idle timer has fired.