noPollConn* nopoll_conn_get_listener ( noPollConn conn)

Allows to get the master listener that was used to accept the provided connection that represents a listener connection.

Parameters
connA listener connection that was accepted for which we want to get the master listener connection. The connection must be a NOPOLL_ROLE_LISTENER (as reported by nopoll_conn_role).
Returns
A reference to the master listener connection or NULL if it fails. It can only fail when NULL reference is received or the connection is not a NOPOLL_ROLE_LISTENER.

References NOPOLL_ROLE_LISTENER.