NNG_MSG_SET_PIPE(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

πŸ’– 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