void vortex_connection_set_hook ( VortexConnection connection,
axlPointer  ptr 
)

Allows to set a commonly used user land pointer associated to the provided connection.

Though you can use vortex_connection_set_data_full or vortex_connection_set_data, this function allows to set a pointer that can be retreived by using vortex_connection_get_hook with a low cpu usage.

Parameters
connectionThe connection where the user land pointer is associated.
ptrThe pointer that will be associated to the connection.

Referenced by vortex_websocket_listener_new().