MyQttConn * myqtt_conn_get_listener ( MyQttConn connection)

The function returns the specific MQTT listener that accepted the provided connection.

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.

connectionThe connection that is required to return the master connection associated (the master connection will have the role: MyQttRoleMasterListener).
The reference or NULL if it fails.

References myqtt_conn_get_data().