void vortex_connection_set_on_close_full ( VortexConnection connection,
VortexConnectionOnCloseFull  on_close_handler,
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.

Parameters
connectionThe connection that is required to get close notifications.
on_close_handlerThe handler to be executed once the event is produced.
dataUser defined data to be passed to the handler.

NOTE: handler configured will be skipped in the case VortexCtx hosting the provided connection is being closed (a call to vortex_exit_ctx was done).

References vortex_connection_set_on_close_full2().

Referenced by vortex_alive_enable_check(), and vortex_channel_get_reply().