Type Definition gnunet_sys::GNUNET_TRANSPORT_SessionMonitorCallback[][src]

type GNUNET_TRANSPORT_SessionMonitorCallback = Option<unsafe extern "C" fn(cls: *mut c_void, session: *mut GNUNET_TRANSPORT_PluginSession, session_ctx: *mut *mut c_void, info: *const GNUNET_TRANSPORT_SessionInfo)>;

Function called by the plugin with information about the current sessions managed by the plugin (for monitoring).

@param cls closure @param session session handle this information is about, NULL to indicate that we are “in sync” (initial iteration complete) @param session_ctx storage location where the application can store data; will point to NULL on #GNUNET_TRANSPORT_SS_INIT, and must be reset to NULL on #GNUNET_TRANSPORT_SS_DONE @param info information about the state of the session, NULL if @a session is also NULL and we are merely signalling that the initial iteration is over; NULL with @a session being non-NULL if the monitor was being cancelled while sessions were active