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 | |
| parent | e6bd9414990a3d0e5995768e1b8b846eff80a14d (diff) | |
| download | nng-2dc3a335c1074aff797fcb8c8a6cc755c46ea805.tar.gz nng-2dc3a335c1074aff797fcb8c8a6cc755c46ea805.tar.bz2 nng-2dc3a335c1074aff797fcb8c8a6cc755c46ea805.zip | |
deploy: a5807e45b1badfb5d0cb4f697e1873a8ece59a30
Diffstat (limited to 'ref/migrate')
| -rw-r--r-- | ref/migrate/nanomsg.html | 2 | ||||
| -rw-r--r-- | ref/migrate/nng1.html | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ref/migrate/nanomsg.html b/ref/migrate/nanomsg.html index 12d143f2..5d8dd921 100644 --- a/ref/migrate/nanomsg.html +++ b/ref/migrate/nanomsg.html @@ -312,6 +312,8 @@ NNG approach to messages. Likewise there is no <code>struct nn_cmsghdr</code> eq <tr><td><code>NN_IPV4ONLY</code></td><td>None</td><td>Use URL such as <code>tcp4://</code> to obtain this functionality.</td></tr> <tr><td><code>NN_SOCKET_NAME</code></td><td><code>NNG_OPT_SOCKNAME</code></td><td></td></tr> <tr><td><code>NN_MAXTTL</code></td><td><code>NNG_OPT_MAXTTL</code></td><td></td></tr> +<tr><td><code>NN_SUB_SUBSCRIBE</code></td><td><code>nng_sub0_socket_subscribe</code></td><td>No longer an option, use a function call.</td></tr> +<tr><td><code>NN_SUB_UNSUBSCRIBE</code></td><td><code>nng_sub0_socket_unsubscribe</code></td><td>No longer an option, use a function call.</td></tr> </tbody></table> </div> <h2 id="error-codes"><a class="header" href="#error-codes">Error Codes</a></h2> 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 |
