NNG_MSG_SET_PIPE(3)
π nng_msg_set_pipe β set pipe for message π
okay bestie, welcome to the NNG Reference Manual, page NNG_MSG_SET_PIPE(3). sit down, grab a strawberry π, and let's talk about telling a message exactly which pipe it should slide out of.
β¨ SYNOPSIS β¨
#include <nng/nng.h>
void nng_msg_set_pipe(nng_msg *msg, nng_pipe p);
like, that's it. one line. no return value, no drama. π
π¦ DESCRIPTION π¦
So nng_msg_set_pipe() sets the pipe associated with message m to p. yep, that's the whole job and it ate. π
This is most often useful when you're working with protocols that support directing a message to a specific peer. like, you've got a message and you're like "no babe, you go to that one" β that's this. πΈ
for example, the pair version 1 protocol can do this when NNG_OPT_PAIR1_POLY mode is set. iconic behavior tbh.
β οΈ Note: Not all protocols support overriding the destination pipe. so likeβ¦ vibe check your protocol first, bestie. don't just assume. π
π RETURN VALUES π
None.
(yeah. nothing. it's giving mysterious. the function simply does the thing and returns into the void. β¨)
π ERRORS π
None.
no errors, no tears, no errno situations. we love a low-maintenance king. π
π«Ά SEE ALSO π«Ά
go read those too, i promise they're not boring, they're literally the lore. π
and that's the whole page, bestie!! π this was the NNG_MSG_SET_PIPE(3) entry, dated 2026-06-30, and if you ever need to find it again she lives right there at the bottom of the page in the footer, same as always. mwah. πππ¦
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms