void vortex_connection_set_data ( VortexConnection connection,
const char *  key,
axlPointer  value 
)

Sets user defined data associated with the given connection.

The function allows to store arbitrary data associated to the given connection. Data stored will be indexed by the provided key, allowing to retrieve the information using: vortex_connection_get_data.

If the value provided is NULL, this will be considered as a removing request for the given key and its associated data.

See also vortex_connection_set_data_full function. It is an alternative API that allows configuring a set of destroy handlers for key and data stored.

Parameters
connectionThe connection where data will be associated.
keyThe string key indexing the data stored associated to the given key.
valueThe value to be stored. NULL to remove previous data stored.

References vortex_connection_set_data_full().

Referenced by vortex_channel_notify_close(), vortex_connection_do_greetings_exchange(), vortex_greetings_send(), vortex_listener_send_greetings_on_connect(), vortex_sasl_start_auth_sync(), vortex_tls_set_ctx_creation(), and vortex_tls_set_post_check().