Function

nw_endpoint_get_port

Accesses the port stored in an endpoint, in host-byte order.

Declaration

uint16_t nw_endpoint_get_port(nw_endpoint_t endpoint);

See Also

Host Endpoints

nw_endpoint_create_host

Creates a network endpoint with a hostname and port, where the hostname may be interpreted as an IP address.

nw_endpoint_get_hostname

Accesses the hostname stored in an endpoint.

nw_endpoint_copy_port_string

Copies the port of an endpoint as a string.