nng_msg_set_pipe(3)

nng_msg_set_pipe3

Set pipe for message

Usage

#include <nng/nng.h>
void nng_msg_set_pipe(nng_msg *msg, nng_pipe p);

Overview

The nng_msg_set_pipe() sets the pipe associated with message m to p. This is most often useful when used with protocols that support directing a message to a specific peer. For example the pair version 1 protocol can do this when NNG_OPT_PAIR1_POLY mode is set.

Note

Not all protocols support overriding the destination pipe.

Return values

None.

Errors

None.

From libnng-dev 1.10.1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.