Function gnunet_sys::GNUNET_HELLO_create[][src]

pub unsafe extern "C" fn GNUNET_HELLO_create(
    public_key: *const GNUNET_CRYPTO_EddsaPublicKey,
    addrgen: GNUNET_HELLO_GenerateAddressListCallback,
    addrgen_cls: *mut c_void,
    friend_only: c_int
) -> *mut GNUNET_HELLO_Message

Construct a HELLO message given the public key, expiration time and an iterator that spews the transport addresses.

If friend only is set to #GNUNET_YES we create a FRIEND_HELLO which will not be gossiped to other peers.

@param public_key public key to include in the HELLO @param addrgen callback to invoke to get addresses @param addrgen_cls closure for @a addrgen @param friend_only should the returned HELLO be only visible to friends? @return the hello message