Function

nw_parameters_create_secure_tcp

Initializes parameters for TLS or TCP connections and listeners.

Declaration

nw_parameters_t nw_parameters_create_secure_tcp(nw_parameters_configure_protocol_block_t configure_tls, nw_parameters_configure_protocol_block_t configure_tcp);

Discussion

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.

See Also

Creating Parameters

nw_parameters_create_secure_udp

Initializes parameters for DTLS or UDP connections and listeners.

nw_parameters_configure_protocol_block_t

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

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.