Enables sending application data with protocol handshakes.


func nw_parameters_set_fast_open_enabled(_ parameters: nw_parameters_t, _ fast_open_enabled: Bool)


When fast open is enabled on a connection, the application is expected to send its early data to be included with the handshake as idempotent data. This data can be sent before or after calling start.

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_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_set_local_only(nw_parameters_t, Bool)

Restricts listeners to only accepting connections from the local link.

func nw_parameters_get_local_only(nw_parameters_t) -> Bool

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