NNG_PULL_OPEN(3)

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

✨ NNG_PULL_OPEN(3) ✨

okay bestie, welcome to the NNG Reference Manual πŸ’– this one is so chill, you're literally just gonna make a pull socket. that's it. that's the whole vibe. 🫢


πŸŽ€ NAME πŸŽ€

nng_pull_open β€” create a pull socket

like. it opens a pull socket. the name ate, honestly, no notes. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <nng/nng.h>
#include <nng/protocol/pipeline0/pull.h>

int nng_pull0_open(nng_socket *s);

int nng_pull0_open_raw(nng_socket *s);

yes you need both includes, don't skip the second one, she's important πŸ’…


🌸 DESCRIPTION 🌸

So the way this works, bestie:

  • nng_pull0_open() β€” this one creates a pull version 0 socket and hands it back to you at the location that s points to. very "here u go queen, it's yours now" energy πŸ‘‘
  • nng_pull0_open_raw() β€” same thing, except it creates that pull version 0 socket in raw mode, and also returns it at the location pointed to by s. raw mode is the whole personality difference here, don't get it twisted. πŸ”₯

that's literally the entire function. two doors, same hallway, one of them is raw.


πŸ’œ RETURN VALUES πŸ’œ

These functions return 0 on success, and non-zero otherwise. zero = slay, non-zero = we have a situation 😭


πŸ’€ ERRORS πŸ’€

  • NNG_ENOMEM β€” Insufficient memory is available. the RAM said "not today" πŸ™ˆ
  • NNG_ENOTSUP β€” The protocol is not supported. the protocol just isn't invited to the party πŸ“

🌈 SEE ALSO 🌈

go read those too, they're the supporting cast and they understood the assignment ⭐


okay that's the whole page bestie, you're officially a pull socket girlie now πŸ’…βœ¨

this was the NNG Reference Manual, version date 2026-06-30, page NNG_PULL_OPEN(3) β€” mwah, go open some sockets πŸ§šπŸ’–

πŸ“¦ where this page comes from