Type Definition gnunet_sys::GNUNET_CORE_ConnectEventHandler [−][src]
type GNUNET_CORE_ConnectEventHandler = Option<unsafe extern "C" fn(cls: *mut c_void, peer: *const GNUNET_PeerIdentity, mq: *mut GNUNET_MQ_Handle) -> *mut c_void>;
Method called whenever a given peer connects.
@param cls closure @param peer peer identity this notification is about @return closure associated with @a peer. given to mq callbacks and #GNUNET_CORE_DisconnectEventHandler