Function

nw_parameters_set_local_only(_:_:)

Restricts listeners to only accepting connections from the local link.

Declaration

func nw_parameters_set_local_only(_ parameters: nw_parameters_t, _ local_only: Bool)

See Also

Customizing Connection Options

func nw_parameters_set_multipath_service(nw_parameters_t, nw_multipath_service_t)

Enables multipath protocols to allow connections to use multiple interfaces.

struct nw_multipath_service_t

Modes in which a connection can support multipath protocols.

func nw_parameters_set_service_class(nw_parameters_t, nw_service_class_t)

Sets a level of service quality to use for connections.

func nw_parameters_get_service_class(nw_parameters_t) -> nw_service_class_t

Checks the level of service quality used for connections.

struct nw_service_class_t

Levels of service quality that can be used with a connection.

func nw_parameters_set_fast_open_enabled(nw_parameters_t, Bool)

Enables sending application data with protocol handshakes.

func nw_parameters_get_fast_open_enabled(nw_parameters_t) -> Bool

Checks if sending application data with protocol handshakes is enabled.

struct nw_parameters_expired_dns_behavior_t

Options for configuring how expired DNS answers should be used.

func nw_parameters_set_prefer_no_proxy(nw_parameters_t, Bool)

Sets a Boolean that indicates that connections should ignore proxies when they are enabled on the system.

func nw_parameters_set_include_peer_to_peer(nw_parameters_t, Bool)

Enables peer-to-peer link technologies for connections and listeners.

func nw_parameters_get_include_peer_to_peer(nw_parameters_t) -> Bool

Checks whether a connection is allowed to use peer-to-peer link technologies.

func nw_parameters_set_reuse_local_address(nw_parameters_t, Bool)

Allows reusing local addresses and ports across connections.

func nw_parameters_get_reuse_local_address(nw_parameters_t) -> Bool

Checks whether a connection allows reusing local addresses and ports.

func nw_parameters_get_local_only(nw_parameters_t) -> Bool

Checks if a listener is restricted to accepting connections from the local link.