Type Alias

nw_endpoint_t

A local or remote endpoint in a network connection.

Declaration

typedef NSObject<OS_nw_endpoint> *nw_endpoint_t;

Topics

Endpoint Types

nw_endpoint_type_t

The type of a network endpoint, such as a host or a service.

nw_endpoint_get_type

Accesses the type of a endpoint.

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_get_port

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

nw_endpoint_copy_port_string

Copies the port of an endpoint as a string.

Address Endpoints

nw_endpoint_create_address

Creates a network endpoint with an address structure.

nw_endpoint_get_address

Accesses the address structure stored in an address endpoint.

nw_endpoint_copy_address_string

Copies the address of an endpoint as a string.

nw_endpoint_copy_port_string

Copies the port of an endpoint as a string.

Bonjour Service Endpoints

nw_endpoint_create_bonjour_service

Creates a network endpoint with a Bonjour service name, type, and domain.

nw_endpoint_get_bonjour_service_name

Accesses the Bonjour service name stored in an endpoint.

nw_endpoint_get_bonjour_service_type

Accesses the Bonjour service type stored in an endpoint.

nw_endpoint_get_bonjour_service_domain

Accesses the Bonjour service domain stored in an endpoint.

URL Endpoints

nw_endpoint_create_url

Creates a network endpoint with a URL string.

nw_endpoint_get_url

Accesses the URL string stored in an endpoint.

See Also

Essentials

nw_parameters_t

An object that stores the protocols to use for connections, options for sending data, and network path constraints.