From e6bd9414990a3d0e5995768e1b8b846eff80a14d Mon Sep 17 00:00:00 2001 From: gdamore Date: Sun, 3 Nov 2024 07:57:54 +0000 Subject: deploy: 02ec0b55cbee5de4d0fd688ce0ebddf08178dc98 --- ref/migrate/nng1.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ref/migrate/nng1.html') diff --git a/ref/migrate/nng1.html b/ref/migrate/nng1.html index e5fd57f7..9ea6163d 100644 --- a/ref/migrate/nng1.html +++ b/ref/migrate/nng1.html @@ -293,6 +293,14 @@ options must be set on the endpoint (dialer or listener) using the appropriate nng_dialer_set or nng_listener_set option. This likely means that it is necessary to allocate and configure the endpoint before attaching it to the socket. This will also afford a much more fine-grained level of control over transport options.

+

Socket Options

+

The NNG_OPT_PROTO, NNG_OPT_PROTONAME, NNG_OPT_PEER, and NNG_OPT_PEERNAME options +have been replaced by functions instead of options. +Use nng_socket_proto_id, nng_socket_peer_id, nng_socket_proto_name, and nng_socket_peer_name instead. +Note that the new functions provide a reference to a static string, and thus do not require +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.

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