typedef void(* VortexOnClosedNotification)(int channel_num, axl_bool was_closed, const char *code, const char *msg)

Async notifier for the channel close process.

Function using this handler:

In the case you require to provide a user defined pointer to the close function you can try vortex_channel_close_full (and its handler VortexOnClosedNotificationFull).

This handler allows you to defined a notify function that will be called once the channel close indication is received. This is mainly used by vortex_channel_close to avoid caller get blocked by calling that function.

Data received is the channel num this notification applies to, the channel closing status and if was_closed is axl_false (the channel was not closed) code hold error code returned and msg the message returned by remote peer.

connection the connection on which the channel was closed
channel_num the channel num identifying the channel closed
was_closed status for the channel close process.
code the code representing the channel close process.
msg the message representing the channel close process.
user_data A user defined pointer established at function which received this handler.