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.

connThe connection where the peer reported close status is being asked.
Status code reported by the remote peer or: 0 - conn is NULL 1005 - empty closing frame 1006 - no closing frame