logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nng_msg_set_pipe - set pipe for message

Description

       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.

Errors

       None.

Name

       nng_msg_set_pipe - set pipe for message

Return Values

       None.

See Also

nng_msg_alloc(3), nng_msg_get_pipe(3), nng_pipe_getopt(3), nng_msg(5), nng(7)

                                                   2025-04-20                                NNG_MSG_SET_PIPE(3)

Synopsis

           #include <nng/nng.h>

           void nng_msg_set_pipe(nng_msg *msg, nng_pipe p);

See Also