MyQttCtx * myqtt_conn_get_ctx ( MyQttConn connection)

Allows to get the context under which the connection was created.

Parameters
connectionThe connection that is required to return the context under which it was created.
Returns
A reference to the context associated to the connection or NULL if it fails.

Referenced by myqtt_listener_accept_connection(), and myqtt_listener_shutdown().