Type Definition gnunet_sys::GNUNET_MessageTokenizerCallback [−][src]
type GNUNET_MessageTokenizerCallback = Option<unsafe extern "C" fn(cls: *mut c_void, message: *const GNUNET_MessageHeader) -> c_int>;
Functions with this signature are called whenever a complete message is received by the tokenizer.
Do not call #GNUNET_mst_destroy from within the scope of this callback.
@param cls closure @param message the actual message @return #GNUNET_OK on success, #GNUNET_NO to stop further processing due to disconnect (no error) #GNUNET_SYSERR to stop further processing due to error