#define CONN_CTX (   c)    myqtt_conn_get_ctx(c)

Allows to get the context associated to the provided conn, logging a more verbose message if the context is null or the conn provided is null.

For myqtt, the context object is central for its function. Providing a function that warns that a null context is returned is a key to find bugs, since no proper result could be expected if no context is provided (MyQttCtx).

Parameters
cThe conn that is required to return the context associated.

Referenced by myqtt_conn_set_socket(), myqtt_tls_verify_cert(), and myqttd_conn_mgr_setup_proxy_on_parent().