Function gnunet_sys::GNUNET_NETWORK_test_port_free[][src]

pub unsafe extern "C" fn GNUNET_NETWORK_test_port_free(
    ipproto: c_int,
    port: u16
) -> c_int

Test if the given @a port is available.

@param ipproto transport protocol to test (i.e. IPPROTO_TCP) @param port port number to test @return #GNUNET_OK if the port is available, #GNUNET_NO if not