void myqtt_conn_set_data ( MyQttConn 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: myqtt_conn_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 myqtt_conn_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 myqtt_conn_set_data_full().

Referenced by myqtt_tls_set_post_check(), and myqttd_conn_mgr_setup_proxy_on_parent().