NNG_PUSH_OPEN(3)
β¨ NNG_PUSH_OPEN(3) β¨
okay bestie, welcome to the NNG Reference Manual π this is the page about making a push socket, and it's genuinely not that deep β two functions, both of them little baby socket factories. let's get into it π«Ά
πΈ NAME πΈ
nng_push_open β create push socket β¨
π SYNOPSIS π
#include <nng/nng.h>
#include <nng/protocol/pipeline0/push.h>
int nng_push0_open(nng_socket *s);
int nng_push0_open_raw(nng_socket *s);
π¦ DESCRIPTION π¦
so, two functions, both of them hand you a socket:
nng_push0_open()β makes a push version 0 socket and drops it right wheresis pointing at πnng_push0_open_raw()β same deal, push version 0 socket, except this one is in raw mode, and it also lands at the locationspoints to π
that's it. that's the whole description. iconic honestly, no notes β¨
π RETURN VALUES π
both of these return 0 when it works out, and non-zero when it does not π like, any non-zero, they're not being specific about it
π₯ ERRORS π₯
NNG_ENOMEMβ not enough memory available, the vibes are broke, there is simply no room πNNG_ENOTSUPβ the protocol is not supported π
π SEE ALSO π
go read those next, fr fr π
and that's the whole page bestie!! this lil slice of the NNG Reference Manual was dated 2026-06-30, served to you fresh under the name NNG_PUSH_OPEN(3) β mwah, take care of her πβ¨π
π¦ 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