NNG_PUSH_OPEN(3)

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

✨ 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 where s is 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 location s points 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