NNG_RESPONDENT_OPEN(3)
β¨ 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
- 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