Function gnunet_sys::GNUNET_TRANSPORT_offer_hello[][src]

pub unsafe extern "C" fn GNUNET_TRANSPORT_offer_hello(
    cfg: *const GNUNET_CONFIGURATION_Handle,
    hello: *const GNUNET_MessageHeader,
    cont: GNUNET_SCHEDULER_TaskCallback,
    cont_cls: *mut c_void
) -> *mut GNUNET_TRANSPORT_OfferHelloHandle

Offer the transport service the HELLO of another peer. Note that the transport service may just ignore this message if the HELLO is malformed or useless due to our local configuration.

@param cfg configuration @param hello the hello message @param cont continuation to call when HELLO has been sent, tc reason #GNUNET_SCHEDULER_REASON_TIMEOUT for fail tc reasong #GNUNET_SCHEDULER_REASON_READ_READY for success @param cont_cls closure for @a cont @return a struct GNUNET_TRANSPORT_OfferHelloHandle handle or NULL on failure, in case of failure @a cont will not be called