aboutsummaryrefslogtreecommitdiff
path: root/docs/ref/migrate
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-28 15:53:23 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-28 16:13:11 -0700
commit801ace5e9adca4e53497d6c7133cc32cf94b23b7 (patch)
tree8bbfb96e513fedce9b2cb29672f99fce0c5d54bd /docs/ref/migrate
parentcaa0c875339badd5a0da38aee9605a40cb7e9d83 (diff)
downloadnng-801ace5e9adca4e53497d6c7133cc32cf94b23b7.tar.gz
nng-801ace5e9adca4e53497d6c7133cc32cf94b23b7.tar.bz2
nng-801ace5e9adca4e53497d6c7133cc32cf94b23b7.zip
Remove nng_stream_set function family.
This was not really used or useful.
Diffstat (limited to 'docs/ref/migrate')
-rw-r--r--docs/ref/migrate/nng1.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/migrate/nng1.md b/docs/ref/migrate/nng1.md
index 35224bb8..0e2c9a48 100644
--- a/docs/ref/migrate/nng1.md
+++ b/docs/ref/migrate/nng1.md
@@ -40,6 +40,8 @@ and similar has been removed. Instead configuration must be performed by allocat
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.
@@ -48,6 +50,17 @@ 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