Function gnunet_sys::GNUNET_ATS_address_add [−][src]
pub unsafe extern "C" fn GNUNET_ATS_address_add(
sh: *mut GNUNET_ATS_SchedulingHandle,
address: *const GNUNET_HELLO_Address,
session: *mut GNUNET_ATS_Session,
prop: *const GNUNET_ATS_Properties
) -> *mut GNUNET_ATS_AddressRecord
We have a new address ATS should know. Addresses have to be added with this function before they can be: updated, set in use and destroyed
@param sh handle @param address the address @param session session handle (if available, i.e. for incoming connections) @param prop performance data for the address @return handle to the address representation inside ATS, NULL on error (i.e. ATS knows this exact address already, or address is invalid)