Type Definition gnunet_sys::GNUNET_ATS_AddressInformationCallback[][src]

type GNUNET_ATS_AddressInformationCallback = Option<unsafe extern "C" fn(cls: *mut c_void, address: *const GNUNET_HELLO_Address, address_active: c_int, bandwidth_out: GNUNET_BANDWIDTH_Value32NBO, bandwidth_in: GNUNET_BANDWIDTH_Value32NBO, prop: *const GNUNET_ATS_Properties)>;

Signature of a function that is called with QoS information about an address.

@param cls closure @param address the address, NULL if ATS service was disconnected or when the iteration is completed in the case of #GNUNET_ATS_performance_list_addresses() @param address_active #GNUNET_YES if this address is actively used to maintain a connection to a peer; #GNUNET_NO if the address is not actively used; #GNUNET_SYSERR if this address is no longer available for ATS @param bandwidth_out assigned outbound bandwidth for the connection @param bandwidth_in assigned inbound bandwidth for the connection @param prop performance data for the address