Type Definition gnunet_sys::GNUNET_TRANSPORT_BlacklistCallback[][src]

type GNUNET_TRANSPORT_BlacklistCallback = Option<unsafe extern "C" fn(cls: *mut c_void, pid: *const GNUNET_PeerIdentity) -> c_int>;

Function that decides if a connection is acceptable or not.

@param cls closure @param pid peer to approve or disapproave @return #GNUNET_OK if the connection is allowed, #GNUNET_SYSERR if not