From 2dc3a335c1074aff797fcb8c8a6cc755c46ea805 Mon Sep 17 00:00:00 2001 From: gdamore Date: Sun, 3 Nov 2024 08:39:59 +0000 Subject: deploy: a5807e45b1badfb5d0cb4f697e1873a8ece59a30 --- ref/migrate/nanomsg.html | 2 ++ ref/migrate/nng1.html | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'ref/migrate') 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 struct nn_cmsghdr eq NN_IPV4ONLYNoneUse URL such as tcp4:// to obtain this functionality. NN_SOCKET_NAMENNG_OPT_SOCKNAME NN_MAXTTLNNG_OPT_MAXTTL +NN_SUB_SUBSCRIBEnng_sub0_socket_subscribeNo longer an option, use a function call. +NN_SUB_UNSUBSCRIBEnng_sub0_socket_unsubscribeNo longer an option, use a function call.

Error Codes

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 uint16_t, matching the actual wire protocol values, instead of int.

The NNG_OPT_RAW option has aso been replaced by a function, nng_socket_raw.

+

Subscriptions

+

The NNG_OPT_SUB_SUBSCRIBE and NNG_OPT_SUB_UNSUBCRIBE options have been replaced by +the following functions: nng_sub0_socket_subscribe, nng_sub0_socket_unsubscribe, +nng_sub0_ctx_subscribe and nng_sub0_ctx_unsubscribe. These functions, like the options +they replace, are only applicable to SUB sockets.

Statistics Use Constified Pointers

A number of the statistics functions take, or return, const nng_stat * instead of plain nng_stat *. The ABI has not changed, but it may be necessary to declare -- cgit v1.2.3-70-g09d2