NNG_PULL_OPEN(3)
β¨ 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 thatspoints 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 bys. 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
- 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