#define CONN_CTX (   c)    vortex_connection_get_ctx(c)

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

For vortex, 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 (VortexCtx).

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

Referenced by vortex_alive_enable_check(), vortex_connection_seq_frame_updates(), vortex_connection_set_socket(), vortex_listener_send_greetings_on_connect(), vortex_tls_verify_cert(), and vortex_websocket_connection_is_tls_running().