NNG_AIO_GET_MSG(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

πŸŽ€ 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