Function

nw_parameters_prohibit_interface_type(_:_:)

Prevents connections, listeners, and browsers from using a specific interface type.

Declaration

func nw_parameters_prohibit_interface_type(_ parameters: nw_parameters_t, _ interface_type: nw_interface_type_t)

See Also

Selecting Paths

func nw_parameters_set_required_interface_type(nw_parameters_t, nw_interface_type_t)

Sets an interface type to require on connections and listeners.

func nw_parameters_get_required_interface_type(nw_parameters_t) -> nw_interface_type_t

Accesses the interface type required on connections and listeners.

func nw_parameters_require_interface(nw_parameters_t, nw_interface_t?)

Sets a specific interface to require on connections, listeners, and browsers.

func nw_parameters_copy_required_interface(nw_parameters_t) -> nw_interface_t?

Accesses the interface required on connections, listeners, and browsers.

func nw_parameters_set_local_endpoint(nw_parameters_t, nw_endpoint_t?)

Sets a specific local IP address and port to use for connections and listeners.

func nw_parameters_copy_local_endpoint(nw_parameters_t) -> nw_endpoint_t?

Accesses the local IP address and port used for connections and listeners.

func nw_parameters_set_prohibit_constrained(nw_parameters_t, Bool)

Prevents connections, listeners, and browsers from using network paths marked as constrained by Low Data Mode.

func nw_parameters_get_prohibit_constrained(nw_parameters_t) -> Bool

Checks if connections, listeners, and browsers are prevented from using network paths marked as constrained by Low Data Mode.

func nw_parameters_set_prohibit_expensive(nw_parameters_t, Bool)

Prevents connections, listeners, and browsers from using network paths marked as expensive.

func nw_parameters_get_prohibit_expensive(nw_parameters_t) -> Bool

Checks if connections, listeners, and browsers are prevented from using network paths marked as expensive.

typealias nw_parameters_iterate_interface_types_block_t

A block that allows inspection of a list of interface types.

func nw_parameters_prohibit_interface(nw_parameters_t, nw_interface_t)

Prevents connections and listeners from using a specific interface.

typealias nw_parameters_iterate_interfaces_block_t

A block that allows inspection of a list of interfaces.