NNG_AIO_SET_OUTPUT(3)

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

πŸ’– 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 an index greater 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 passing 4 and 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