Function gnunet_sys::GNUNET_HELPER_send[][src]

pub unsafe extern "C" fn GNUNET_HELPER_send(
    h: *mut GNUNET_HELPER_Handle,
    msg: *const GNUNET_MessageHeader,
    can_drop: c_int,
    cont: GNUNET_HELPER_Continuation,
    cont_cls: *mut c_void
) -> *mut GNUNET_HELPER_SendHandle

Send an message to the helper.

@param h helper to send message to @param msg message to send @param can_drop can the message be dropped if there is already one in the queue? @param cont continuation to run once the message is out (#GNUNET_OK on success, #GNUNET_NO if the helper process died, #GNUNET_SYSERR during #GNUNET_HELPER_destroy). @param cont_cls closure for @a cont @return NULL if the message was dropped, otherwise handle to cancel @a cont (actual transmission may not be abortable)