int nopoll_conn_get_close_status ( noPollConn conn)

Optionally, remote peer can close the connection providing an error code (nopoll_conn_get_close_status) and a reason (nopoll_conn_get_close_reason).

These functions are used to get those values.

Parameters
connThe connection where the peer reported close status is being asked.
Returns
Status code reported by the remote peer or 0 if nothing was reported.