Type Alias

nw_parameters_configure_protocol_block_t

A block to configure protocol options during the creation of a parameters object.

Declaration

typedef void (^nw_parameters_configure_protocol_block_t)(nw_protocol_options_t options);

Discussion

Passing in a block allows you to customize how a protocol will behave in a connection.

If you want to use the default configuration for a protocol, pass NW_PARAMETERS_DEFAULT_CONFIGURATION.

If you want to disable a protocol (such as TLS), pass NW_PARAMETERS_DISABLE_PROTOCOL. Not all protocols can be disabled.

See Also

Creating Parameters

nw_parameters_create_secure_tcp

Initializes parameters for TLS or TCP connections and listeners.

nw_parameters_create_secure_udp

Initializes parameters for DTLS or UDP connections and listeners.

nw_parameters_create

Initializes parameters for connections, listeners, and browsers with no protocols specified.

nw_parameters_create_custom_ip

Initializes parameters for connections and listeners using a custom IP protocol.

nw_parameters_copy

Peforms a deep copy of a parameters object.