summaryrefslogtreecommitdiff
path: root/docs/reference/src/iop/nng_aio_get_input.md
blob: 28f798bdfda234cafba6b19cbcf8b81738747f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# nng_aio_get_input

## NAME

nng_aio_get_input --- return input parameter

## SYNOPSIS

```c
#include <nng/nng.h>

void *nng_aio_get_input(nng_aio *aio, unsigned int index);
```

## DESCRIPTION

The `nng_aio_get_input()` function returns the value of the input parameter
previously set at _index_ on _aio_ with the
[`nng_aio_set_input()`][nng_aio_set_input]function.

The valid values of _index_ range from zero (0) to three (3), as no operation
currently defined can accept more than four parameters.
If the index supplied is outside of this range,
or if the input parameter was not previously set, then `NULL` is returned.

## RETURN VALUES

Value previously set, or `NULL`.

## SEE ALSO

[nng_aio_alloc][nng_aio_alloc],
[nng_aio_get_output][nng_aio_get_output],
[nng_aio_set_input][nng_aio_set_input]

{{#include ../refs.md}}