## nng_respondent_open Create respondent socket. ### Synopsis ```c #include #include int nng_respondent0_open(nng_socket *s); int nng_respondent0_open_raw(nng_socket *s); ``` ### Description The `nng_respondent0_open` function creates a xref:nng_respondent.adoc[_RESPONDENT_] version 0 xref:../sock/index.adoc[socket] and returns it at the location pointed to by _s_. The `nng_respondent0_open_raw` function creates a _RESPONDENT_ socket in xref:../sock/raw.adoc[raw mode] and returns it at the location pointed to by _s_. ### Return Values These functions return 0 on success, and non-zero otherwise. ### Errors [horizontal] `NNG_ENOMEM`:: Insufficient memory is available. `NNG_ENOTSUP`:: The protocol is not supported. ### See Also xref:../proto/respondent.adoc[Respondent Protocol (_RESPONDENT_)], xref:../proto/surveyor.adoc[Surveyor Protocol (_SURVEYOR_)]