logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nng_socket_raw - return whether socket is cooked or raw

Description

       The nng_socket_raw() function stores true in raw if the socket is in raw mode, otherwise it stores false.

           Tip

           This function should be used in place of the NNG_OPT_RAW option in new code.

Errors

       NNG_ECLOSED
           Parameter s does not refer to an open socket.

Name

       nng_socket_raw - return whether socket is cooked or raw

Return Values

       This function returns zero on success, or an error if the socket is invalid.

See Also

nng_socket(5), nng(7)

                                                   2025-04-20                                  NNG_SOCKET_RAW(3)

Synopsis

           #include <nng/nng.h>

           int nng_socket_raw(nng_socket s, bool *raw);

return

See Also