diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2024-10-29 05:05:44 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2024-10-29 05:05:44 +0000 |
| commit | 797ce4d4978ca245d015f83af0cb5846d4e2780b (patch) | |
| tree | a26c67c30d0a72e7c56b8a6c3a33e94f3812c18e /ref/migrate | |
| parent | abdae4cb3a453baca65f755c0a439e944bd4274d (diff) | |
| download | nng-797ce4d4978ca245d015f83af0cb5846d4e2780b.tar.gz nng-797ce4d4978ca245d015f83af0cb5846d4e2780b.tar.bz2 nng-797ce4d4978ca245d015f83af0cb5846d4e2780b.zip | |
deploy: b3936a2d03a3909cd4fcca8c608f943b367c3c88
Diffstat (limited to 'ref/migrate')
| -rw-r--r-- | ref/migrate/nng1.html | 9 |
1 files changed, 9 insertions, 0 deletions
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 <code>NNG_OPT_WS_REQUEST_HEADERS</code> or and similar has been removed. Instead configuration must be performed by allocating a <code>nng_tls_config</code> object, and then setting fields on it using the appropriate functions, after which it may be configured on a listener or dialer using the <code>NNG_OPT_TLS_CONFIG</code> option.</p> +<p>Note that TLS configuration is now available in <code><nng/nng.h></code>, rather than the supplemental header.</p> <h2 id="option-functions"><a class="header" href="#option-functions">Option Functions</a></h2> <p>The previously deprecated <code>nng_pipe_getopt_xxx</code> family of functions is removed. Applications should use <code>nng_pipe_get</code> and related functions instead.</p> <p>The socket option function families for <code>nng_getopt</code> and <code>nng_setopt</code> have been removed as well. In this case, use the <code>nng_socket_get</code> and <code>nng_socket_set</code> functions as appropriate.</p> +<p>The <code>_getopt</code> and <code>_setopt</code> functions for contexts, listeners, and dialers are no longer +present. Simply changing <code>_getopt</code> to <code>_get</code> or <code>_setopt</code> to <code>_set</code> in the function name +should be sufficient in most cases.</p> +<h2 id="stream-options"><a class="header" href="#stream-options">Stream Options</a></h2> +<p>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 <code>nng_stream_set_xxx</code> are removed. +For tuning the <code>NNG_OPT_TCP_NODELAY</code> or similar properties, set the option on the listener +or dialer that creates the stream instead.</p> <h2 id="transport-options"><a class="header" href="#transport-options">Transport Options</a></h2> <p>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 |
