Function gnunet_sys::GNUNET_NT_scanner_get_type[][src]

pub unsafe extern "C" fn GNUNET_NT_scanner_get_type(
    is: *mut GNUNET_NT_InterfaceScanner,
    addr: *const sockaddr,
    addrlen: socklen_t
) -> GNUNET_NetworkType

Returns where the address is located: loopback, LAN or WANT.

@param is handle from #GNUNET_ATS_interface_scanner_init() @param addr address @param addrlen address length @return type of the network the address belongs to