Function

nw_path_uses_interface_type(_:_:)

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

Declaration

func nw_path_uses_interface_type(_ path: nw_path_t, _ interface_type: nw_interface_type_t) -> Bool

Discussion

Paths can use interface types by directly routing over an interface, routing through a tunnel that goes over a physical interface, or being eligble to use multiple interfaces directly.

See Also

Inspecting Interfaces

func nw_path_enumerate_interfaces(nw_path_t, (nw_interface_t) -> Bool)

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

typealias nw_path_enumerate_interfaces_block_t

A block that enumerates the interfaces available to a path.

func nw_path_enumerate_gateways(nw_path_t, (nw_endpoint_t) -> Bool)

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

typealias nw_path_enumerate_gateways_block_t

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