Type Definition gnunet_sys::GNUNET_TRANSPORT_NotifyDisconnect[][src]

type GNUNET_TRANSPORT_NotifyDisconnect = Option<unsafe extern "C" fn(cls: *mut c_void, peer: *const GNUNET_PeerIdentity, handler_cls: *mut c_void)>;

Function called to notify transport users that another peer disconnected from us. The message queue that was given to the connect notification will be destroyed and must not be used henceforth.

@param cls closure from #GNUNET_TRANSPORT_core_connect @param peer the peer that disconnected @param handlers_cls closure of the handlers, was returned from the connect notification callback