NNG_AIO_GET_MSG(3)
π NNG_AIO_GET_MSG(3) π
okay bestie, this one is from the NNG Reference Manual and it's literally the easiest little function ever, so let's go π
β¨ NAME β¨
nng_aio_get_msg β get a message out of an async receive, like reaching into your bag and pulling out exactly the snack you stashed π
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
nng_msg *nng_aio_get_msg(nng_aio *aio);
π DESCRIPTION π
So the way that nng_aio_get_msg() works is: it grabs whatever message is chillin' inside aio. And like, that message got there one of two ways, no cap:
- it landed there as the result of a successful receive β peep
nng_recv_aio() - or somebody put it there earlier with
nng_aio_set_msg()
Either way, you ask, it hands it over. Iconic. π«Ά
β οΈ Important, and I mean IMPORTANT β the nng_aio must not have an operation in progress. Like, do not come for this function mid-operation. Wait your turn, queen. π
β RETURN VALUES β
None. Nope, nothing, nada. It said what it said. π
π ERRORS π
None. Not a single one. She does not do errors. Periodt. β¨
π¦ SEE ALSO π¦
and that's the whole page, bestie, we ate and left no crumbs ππ
this lil drop is from the NNG Reference Manual, dated 2026-06-30 β mwah, love that for us, see u in the next manpage ππ
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms