summaryrefslogtreecommitdiff
path: root/docs/reference/src/aio/nng_aio_set_msg.md
blob: 5b4c0e00960c6ab35813a6875176241a6b8ae150 (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
# nng_aio_set_msg()

## NAME

nng_aio_set_msg --- set message for asynchronous send

## SYNOPSIS

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

void nng_aio_set_msg(nng_aio *aio, nng_msg *msg);
```

## DESCRIPTION

The `nng_aio_set_msg()` function sets the message that will be used
for an asynchronous send operation (see
[`nng_send_aio()`][nng_send_aio]).

> [!IMPORTANT]
> The _aio_ must not have an operation in progress.

## SEE ALSO

[nng_aio_get_msg][nng_aio_get_msg],
[nng_send_aio][nng_send_aio],
[Messages][msg]

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