const char* nopoll_conn_get_close_reason ( 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 reason is being asked.
Status close reason reported by the remote peer or NULL if nothing was reported.