diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2024-11-03 08:39:59 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2024-11-03 08:39:59 +0000 |
| commit | 2dc3a335c1074aff797fcb8c8a6cc755c46ea805 (patch) | |
| tree | ab93cf4b7a575a18224011114590167445f53cc1 /ref/migrate/nng1.html | |
| parent | e6bd9414990a3d0e5995768e1b8b846eff80a14d (diff) | |
| download | nng-2dc3a335c1074aff797fcb8c8a6cc755c46ea805.tar.gz nng-2dc3a335c1074aff797fcb8c8a6cc755c46ea805.tar.bz2 nng-2dc3a335c1074aff797fcb8c8a6cc755c46ea805.zip | |
deploy: a5807e45b1badfb5d0cb4f697e1873a8ece59a30
Diffstat (limited to 'ref/migrate/nng1.html')
| -rw-r--r-- | ref/migrate/nng1.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ref/migrate/nng1.html b/ref/migrate/nng1.html index 9ea6163d..a3f7477d 100644 --- a/ref/migrate/nng1.html +++ b/ref/migrate/nng1.html @@ -301,6 +301,11 @@ Note that the new functions provide a reference to a static string, and thus do allocation, and the returned strings should not be freed. Also the IDs are provided as <code>uint16_t</code>, matching the actual wire protocol values, instead of <code>int</code>.</p> <p>The <code>NNG_OPT_RAW</code> option has aso been replaced by a function, <code>nng_socket_raw</code>.</p> +<h2 id="subscriptions"><a class="header" href="#subscriptions">Subscriptions</a></h2> +<p>The <code>NNG_OPT_SUB_SUBSCRIBE</code> and <code>NNG_OPT_SUB_UNSUBCRIBE</code> options have been replaced by +the following functions: <code>nng_sub0_socket_subscribe</code>, <code>nng_sub0_socket_unsubscribe</code>, +<code>nng_sub0_ctx_subscribe</code> and <code>nng_sub0_ctx_unsubscribe</code>. These functions, like the options +they replace, are only applicable to SUB sockets.</p> <h2 id="statistics-use-constified-pointers"><a class="header" href="#statistics-use-constified-pointers">Statistics Use Constified Pointers</a></h2> <p>A number of the statistics functions take, or return, <code>const nng_stat *</code> instead of plain <code>nng_stat *</code>. The ABI has not changed, but it may be necessary to declare |
