nw_parameters_create_secure_udp(_:_:)
Initializes parameters for DTLS or UDP connections and listeners.
Declaration
func nw_parameters_create_secure_udp(_ configure_dtls: @escaping nw_parameters_configure_protocol_block_t, _ configure_udp: @escaping nw_parameters_configure_protocol_block_t) -> nw_parameters_tDiscussion
This function allows you to either use the default configurations for DTLS and UDP, 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 DTLS, pass NW_PARAMETERS_DISABLE_PROTOCOL.