NNG_AIO_GET_OUTPUT(3)
β¨ NNG_AIO_GET_OUTPUT(3) β¨
okay bestie so this is the NNG Reference Manual page for nng_aio_get_output π
welcome, sit down, hydrate, let's get into it π«Ά
πΈ NAME πΈ
nng_aio_get_output β literally just hand you back an output result π
π SYNOPSIS π
#include <nng/nng.h>
void *nng_aio_get_output(nng_aio *aio, unsigned int index);
π¦ DESCRIPTION π¦
so nng_aio_get_output() returns the output result that lives at index, and that result came from the async operation that's hanging out with aio β¨
what the output params even are β like their type and what they mean β that's not this function's business, that's decided by whatever specific operation you ran. every operation does its own thing, iykyk π
π Note if index doesn't map to an output that's actually defined for the operation, or the operation didn't succeed, then the return value isNULL. no output, no problem, justNULLbestie π
β οΈ Important it is an error to call this function while the aio is currently being used by an active asynchronous operation. also an error if no operation has been performed using the aio yet. like, there's nothing there, what are you even asking for π periodt.
π RETURN VALUES π
the *index*th result of the operation, or NULL π«
π ERRORS π
None. zero. nothing. she simply does not error π
π SEE ALSO π
and that's the whole page, no cap π§ this one was dated 2026-06-30 and it lives under NNG_AIO_GET_OUTPUT(3) in the NNG Reference Manual β slay, stan, go read the SEE ALSOs ππΈβ¨
π¦ 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