VortexConnection * vortex_connection_get_listener ( VortexConnection connection)

In the case the connection was automatically created at the listener BEEP side, the connection was accepted under an especific listener started with vortex_listener_new (and its associated functions).

This function allows to get a reference to the listener that accepted and created the current connection. In the case this function is called over a client connection NULL, will be returned.

Parameters
connectionThe connection that is requried to return the master connection associated (the master connection will have the role: VortexRoleMasterListener).
Returns
The reference or NULL if it fails.

References vortex_connection_get_data().