---
name: "nng_aio_get_output"
section: "3"
platform: "linux"
package: "libnng-dev"
version: "1.10.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nng_aio_get_output"
---

# nng\_aio\_get\_output(3)

return output result

## NAME

nng\_aio\_get\_output - return output result

## SYNOPSIS

```
#include <nng/nng.h>
void *nng_aio_get_output(nng_aio *aio, unsigned int index);
```

## DESCRIPTION

The `nng_aio_get_output()` function returns the output result at *index* resulting from the asynchronous operation associated with *aio*.

The type and semantics of output parameters are determined by specific operations.

**Note**\

If the *index* does not correspond to a defined output for the operation, or the operation did not succeed, then the return value will be `NULL`.

**Important**\

It is an error to call this function while the *aio* is currently in use by an active asynchronous operation, or if no operation has been performed using the *aio* yet.

## RETURN VALUES

The *index*th result of the operation, or `NULL`.

## ERRORS

None.

## SEE ALSO

[nng\_aio\_alloc(3)](/nng_aio_alloc/3.md), [nng\_aio\_get\_output(3)](/nng_aio_get_output/3.md), [nng\_aio\_set\_input(3)](/nng_aio_set_input/3.md), [nng\_aio\_result(3)](/nng_aio_result/3.md), [nng\_aio(5)](/nng_aio/5.md), [nng(7)](/nng/7.md)
