MyQttConn* myqttd_conn_mgr_find_by_id ( MyQttdCtx ctx,
int  conn_id 

Allows to get a reference to the registered connection with the provided id.

The function will return a reference to a MyQttConn owned by the myqttd connection manager.

ctxThe myqttd conext where the connection reference will be looked up.
conn_idThe connection id to lookup.
A MyQttConn reference or NULL value it if fails.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().