From 797ce4d4978ca245d015f83af0cb5846d4e2780b Mon Sep 17 00:00:00 2001 From: gdamore Date: Tue, 29 Oct 2024 05:05:44 +0000 Subject: deploy: b3936a2d03a3909cd4fcca8c608f943b367c3c88 --- ref/migrate/nng1.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ref/migrate') diff --git a/ref/migrate/nng1.html b/ref/migrate/nng1.html index a8ec224a..e5fd57f7 100644 --- a/ref/migrate/nng1.html +++ b/ref/migrate/nng1.html @@ -273,11 +273,20 @@ Just convert any use of them to NNG_OPT_WS_REQUEST_HEADERS or and similar has been removed. Instead configuration must be performed by allocating a nng_tls_config object, and then setting fields on it using the appropriate functions, after which it may be configured on a listener or dialer using the NNG_OPT_TLS_CONFIG option.

+

Note that TLS configuration is now available in <nng/nng.h>, rather than the supplemental header.

Option Functions

The previously deprecated nng_pipe_getopt_xxx family of functions is removed. Applications should use nng_pipe_get and related functions instead.

The socket option function families for nng_getopt and nng_setopt have been removed as well. In this case, use the nng_socket_get and nng_socket_set functions as appropriate.

+

The _getopt and _setopt functions for contexts, listeners, and dialers are no longer +present. Simply changing _getopt to _get or _setopt to _set in the function name +should be sufficient in most cases.

+

Stream Options

+

The ability to set options on streams after they have been created is no longer present. +(It turns out that this was not very useful.) All functions nng_stream_set_xxx are removed. +For tuning the NNG_OPT_TCP_NODELAY or similar properties, set the option on the listener +or dialer that creates the stream instead.

Transport Options

A number of transport options can no longer be set on the socket. Instead these options must be set on the endpoint (dialer or listener) using the appropriate -- cgit v1.2.3-70-g09d2