nw_parameters_create_secure_tcp(_:_:)
Initializes parameters for TLS or TCP connections and listeners.
Declaration
func nw_parameters_create_secure_tcp(_ configure_tls: @escaping nw_parameters_configure_protocol_block_t, _ configure_tcp: @escaping nw_parameters_configure_protocol_block_t) -> nw_parameters_tDiscussion
This function allows you to either use the default configurations for TLS and TCP, or use customized protocol options. If you want to use the default configuration, pass NW_PARAMETERS_DEFAULT_CONFIGURATION. If you want to customize the options for a protocol, pass a block to modify the options.
If you need to disable TLS, pass NW_PARAMETERS_DISABLE_PROTOCOL.