Checks whether the path can route IPv4 traffic.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
Framework
- Network
Declaration
bool nw_path_has_ipv4(nw _path _t path);
Checks whether the path can route IPv4 traffic.
SDKs
Framework
bool nw_path_has_ipv4(nw _path _t path);
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.