NNG_AIO_SET_OUTPUT(3)
π NNG_AIO_SET_OUTPUT(3) β the NNG Reference Manual, bestie edition π
okay so real talk, this page lives in the NNG Reference Manual and it's literally the whole glow-up guide for nng_aio_set_output. let's get into it β¨
πΈ NAME πΈ
nng_aio_set_output β set the output result, that's it, that's the job π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
void nng_aio_set_output(nng_aio *aio, unsigned int index, void *result);
π DESCRIPTION π
so nng_aio_set_output() sets the output result at a given index for the asynchronous operation that's attached to aio. that's the whole vibe.
now, the type and the semantics of output results? not fixed, not universal, they're whatever the specific operation says they are. each operation gets to decide. and here's the part that matters: the operation must supply appropriate output results when the operation completes successfully. no results, no slay, it's on the operation to deliver π«Ά
the valid values of index go from zero (0) all the way up to three (3), because no operation that currently exists can return more than four results. (this limit could increase in the future β so bestie, stay flexible.)
β οΈ Note: attempts to set results with anindexgreater than three (3) will be ignored. like, it doesn't error, it doesn't yell at you, it just silently does nothing. π so don't be out here passing4and expecting magic.
and whenever you've set an output result with this function, you can come back and grab it later with the nng_aio_get_output() function. retrieval queen π
π RETURN VALUES π
None. literally nothing. it returns void and it means it π
π ERRORS π
None. zero errors, zero drama, iconic behaviour fr fr π
π SEE ALSO π
and that's the page, bestie!! this one's from the NNG source, version dated 2026-06-30, and yes it's still NNG_AIO_SET_OUTPUT(3) at the bottom of every page in the manual. go set those outputs (indices 0 through 3 only, iykyk) π
β¨
π¦ 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