NNG_RESPONDENT_OPEN(3)

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

✨ NNG_RESPONDENT_OPEN ✨

okay bestie, welcome to the NNG Reference Manual πŸ’– this one's short and sweet, we're literally just opening doors for the respondent socket and it's giving gatekeeper energy, no cap πŸ”‘


🌸 NAME 🌸

nng_respondent_open β€” create respondent socket 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <nng/nng.h>
#include <nng/protocol/survey0/respond.h>

int nng_respondent0_open(nng_socket *s);

int nng_respondent0_open_raw(nng_socket *s);

πŸ’… DESCRIPTION πŸ’…

so the way that nng_respondent0_open() works is it creates a respondent version 0 socket and hands it back to you at the location pointed to by s. new socket, who dis πŸ’β€β™€οΈ

and then nng_respondent0_open_raw() does the exact same little ritual β€” creates a respondent version 0 socket β€” except it's in raw mode ✨ and also returns it at the location pointed to by s. raw mode is the unglamorous, no-hair-and-makeup version, iykyk 🌈


πŸ”₯ RETURN VALUES πŸ”₯

these functions return 0 when it all slays, and non-zero otherwise 😭


πŸ’€ ERRORS πŸ’€

  • NNG_ENOMEM β€” not enough memory available, the audacity πŸ™ˆ
  • NNG_ENOTSUP β€” the protocol is not supported, so sorry bestie πŸ’”

πŸ‘‘ SEE ALSO πŸ‘‘

nng_socket(5), nng_respondent(7), nng_surveyor(7), nng(7)


and that's the whole page, bestie, you ate that πŸ“ β€” this was NNG_RESPONDENT_OPEN(3) from the NNG Reference Manual, dated 2026-06-30. mwah, go open that socket πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from