NNG_MSG_HEADER(3)

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

πŸ’– NNG_MSG_HEADER(3) πŸ’–

okay so bestie, this is a page from the NNG Reference Manual, and it's literally about one tiny function that hands you the header of a message. that's it. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

nng_msg_header β€” return message header


🌸 SYNOPSIS 🌸

#include <nng/nng.h>

void *nng_msg_header(nng_msg *msg);

like. one line. one include. we love a minimalist queen πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so nng_msg_header() returns a pointer to the start of the header content of the message msg. that's it, that's the function, she's simple and she knows it ✨

Note πŸŽ€ the message header holds protocol-specific header content. most applications should not need to touch this content at all β€” like, it's not for you, ngl. but it is available for raw mode sockets, the ones you set with the NNG_OPT_RAW option. iykyk.
Note πŸ’€ the value returned by this gets invalidated by a call to any of the functions that modify the message or the header content. so like… don't hold onto it, bestie. it's giving "here for a good time not a long time". any mutation and it's over πŸ™ˆ

πŸ’… RETURN VALUES πŸ’…

a pointer to the start of the message header. periodt.


🌈 ERRORS 🌈

None. not a single one. she simply cannot fail, and honestly? iconic πŸ‘‘


⭐ SEE ALSO ⭐


and that's the whole page bestie, no cap πŸ’– this one dropped on 2026-06-30 as part of the NNG Reference Manual β€” NNG_MSG_HEADER(3), still serving header-pointer realness to this very day. slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from