Type Alias

nw_path_t

An object that contains information about the properties of the network that a connection uses, or that are available to your app.

Declaration

typedef NSObject<OS_nw_path> *nw_path_t;

Topics

Checking Path Availability

nw_path_get_status

Checks whether a path can be used by connections.

nw_path_status_t

Status values indicating whether a path can be used by connections.

Inspecting Interfaces

nw_path_uses_interface_type

Checks if connections using the path may send traffic over a specific interface type.

nw_path_enumerate_interfaces

Enumerates the list of all interfaces available to the path, in order of preference.

nw_path_enumerate_interfaces_block_t

A block that enumerates the interfaces available to a path.

nw_path_enumerate_gateways

Enumerates the list of gateways configured on the interfaces available to a path.

nw_path_enumerate_gateways_block_t

A block that enumerates the gateways configured on the interfaces available to a path.

Checking Path Capabilities

nw_path_has_ipv4

Checks whether the path can route IPv4 traffic.

nw_path_has_ipv6

Checks whether the path can route IPv6 traffic.

nw_path_has_dns

Checks whether the path has a DNS server configured.

nw_path_is_constrained

Checks whether the path uses an interface in Low Data Mode.

nw_path_is_expensive

Checks whether the path uses an interface that is considered expensive, such as Cellular or a Personal Hotspot.

Comparing Paths

nw_path_is_equal

Compares if two paths are identical.

Inspecting Connected Paths

nw_path_copy_effective_local_endpoint

Accesses the local endpoint in use by a connection's network path.

nw_path_copy_effective_remote_endpoint

Accesses the remote endpoint in use by a connection's network path.

See Also

Paths and Interfaces

nw_path_monitor_t

An observer that you use to monitor and react to network changes.

nw_interface_t

An interface that a network connection uses to send and receive data.