void nopoll_conn_set_on_close ( noPollConn conn,
noPollOnCloseHandler  on_close,
noPollPtr  user_data 
)

Allows to configure an OnClose handler that will be called when the connection is closed.

Parameters
connThe connection to configure with the on close handle.
on_closeThe handler to be configured.
user_dataA reference pointer to be passed in into the handler.