nw_parameters_configure_protocol_block_t
A block to configure protocol options during the creation of a parameters object.
Declaration
typealias nw_parameters_configure_protocol_block_t = (nw_protocol_options_t) -> VoidDiscussion
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.