aboutsummaryrefslogtreecommitdiff
path: root/docs/ref/migrate/nanomsg.md
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-01 17:06:39 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-01 17:06:39 -0800
commitf7bf24f429cbc488b861ab1b1e4cf1983af56295 (patch)
tree2196361a906bd5db1148c0e177d69854a99b7b58 /docs/ref/migrate/nanomsg.md
parentee5c8437f8c2a811c0eaef9b00c149b93c095391 (diff)
downloadnng-f7bf24f429cbc488b861ab1b1e4cf1983af56295.tar.gz
nng-f7bf24f429cbc488b861ab1b1e4cf1983af56295.tar.bz2
nng-f7bf24f429cbc488b861ab1b1e4cf1983af56295.zip
api: Remove the NNG_FLAG_ALLOC
This flag failed to provide real zero copy that it was intended for, and it also involved extra allocations. Further, the API for it was brittle and error prone. Modern code should just work directly with nng_msg structures.
Diffstat (limited to 'docs/ref/migrate/nanomsg.md')
-rw-r--r--docs/ref/migrate/nanomsg.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/migrate/nanomsg.md b/docs/ref/migrate/nanomsg.md
index 47f82a9c..78eed618 100644
--- a/docs/ref/migrate/nanomsg.md
+++ b/docs/ref/migrate/nanomsg.md
@@ -56,7 +56,7 @@ NNG approach to messages. Likewise there is no `struct nn_cmsghdr` equivalent.
| `nn_get_statistic` | [`nng_stats_get`] | The statistics in NNG are completely different, with different semantics and no stability guarantees. |
| `NN_POLLIN` | None | Used only with `nn_poll`. |
| `NN_POLLOUT` | None | Used only with `nn_poll`. |
-| `NN_MSG` | [`NNG_FLAG_ALLOC`] | See `nng_send` and `nng_recv` for details. |
+| `NN_MSG` | [`nng_sendmsg`], [`nng_recvmsg`] | There are differences as a separate [`nng_msg`] structure is involved. |
| `NN_CMSG_ALIGN` | None |
| `NN_CMSG_FIRSTHDR` | None |
| `NN_CMSG_NXTHDR` | None |