Function

nw_path_has_dns(_:)

Checks whether the path has a DNS server configured.

Declaration

func nw_path_has_dns(_ path: nw_path_t) -> Bool

See Also

Checking Path Capabilities

func nw_path_has_ipv4(nw_path_t) -> Bool

Checks whether the path can route IPv4 traffic.

func nw_path_has_ipv6(nw_path_t) -> Bool

Checks whether the path can route IPv6 traffic.

func nw_path_is_constrained(nw_path_t) -> Bool

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

func nw_path_is_expensive(nw_path_t) -> Bool

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