NNG_AIO_SET_INPUT(3)
π NNG_AIO_SET_INPUT(3) π
okay bestie, so this is a page from the NNG Reference Manual and it's literally all about nng_aio_set_input β the glow-up your async operation's input params deserve β¨
β¨ NAME β¨
nng_aio_set_input β set input parameter π
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
void nng_aio_set_input(nng_aio *aio, unsigned int index, void *param);
π¦ DESCRIPTION π¦
So the nng_aio_set_input() function sets the input parameter at index to param for the asynchronous operation that's associated with aio. Basically you're handing your op its lil snack before it goes off and does its thing π
The type and semantics of input parameters are decided by the specific operations themselves β so the caller has to supply inputs that actually make sense for the operation being performed. No vibes-based guessing, bestie, the op knows what it wants.
The valid values of index range from zero (0) to three (3), because no operation currently defined can accept more than four parameters. (And yeah, this limit could totally increase in the future π)
Note π If the index doesn't correspond to a defined input for the operation, then this function will just have no effect. Nothing. Nada. It's giving "sent to the void".
Important π¨ It is an error to call this function while the aio is currently in use by an active asynchronous operation. Do not do this. Not me catching you trying to do this π
An input parameter set with this function may be retrieved later with the nng_aio_get_input() function β so you can always check back on it, iconic behaviour π«Ά
π RETURN VALUES π
None. Nothing. Zero. Nil. The void returns nothing because it doesn't have to π
π ERRORS π
None. It's not the throwing type, it just quietly does its thing β¨
π₯ SEE ALSO π₯
mwah π this lil page was served up as NNG_AIO_SET_INPUT(3) on 2026-06-30 β go forth and set those inputs, bestie, you got this fr fr ππ
π¦ 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