NNG_SOCKET_RAW(3) | NNG Reference Manual | NNG_SOCKET_RAW(3) |
nng_socket_raw - return whether socket is cooked or raw
#include <nng/nng.h> int nng_socket_raw(nng_socket s, bool *raw);
The nng_socket_raw() function stores true in raw if the socket is in raw mode, otherwise it stores false.
This function should be used in place of the NNG_OPT_RAW option in new code.
This function returns zero on success, or an error if the socket is invalid.
NNG_ECLOSED
nng_socket(5), nng(7)
2025-01-05 |