void vortex_connection_set_on_close_full2 ( VortexConnection connection,
VortexConnectionOnCloseFull  on_close_handler,
axl_bool  insert_last,
axlPointer  data 

Extended version for vortex_connection_set_on_close handler which also support receiving a user data pointer.

See vortex_connection_set_on_close for more details. This function could be called several times to install several handlers.

Once a handler is installed, you can use vortex_connection_remove_on_close_full to uninstall the handler if it is required to avoid getting more notifications.

connectionThe connection that is required to get close notifications.
on_close_handlerThe handler to be executed once the event is produced.
insert_lastAllows to configure if the handler should be inserted at the last position.
dataUser defined data to be passed to the handler.

References vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_channel_wait_reply(), and vortex_connection_set_on_close_full().