nopoll_bool nopoll_conn_ref ( noPollConn conn)

Allows to acquire a reference to the provided connection.

Parameters
connThe conection to be referenced
Returns
nopoll_true In the case the function acquired a reference otherwise nopoll_false is returned.

References nopoll_false, nopoll_mutex_lock(), and nopoll_mutex_unlock().

Referenced by nopoll_listener_from_socket().