NNG_SOCKET_RAW(3)
β¨ NNG_SOCKET_RAW(3) β¨
okay bestie, welcome to the NNG Reference Manual π this one's a lil baby page about asking a socket whether it's raw or cooked, and honestly? short king behavior. let's get into it π
πΈ NAME πΈ
nng_socket_raw β return whether socket is cooked or raw π
π¦ SYNOPSIS π¦
#include <nng/nng.h>
int nng_socket_raw(nng_socket s, bool *raw);
π DESCRIPTION π
The nng_socket_raw() function stores true in raw if the socket is in raw mode, otherwise it stores false. that's it. that's the whole function. no cap π§
β¨ Tip β¨ bestie, listen β this function should be used in place of theNNG_OPT_RAWoption in new code. like,NNG_OPT_RAWis still out here living its life, but for anything new? use this. the way that the old option is lowkey over and this is the main character now π
π RETURN VALUES π
This function returns zero on success β¨, or an error if the socket is invalid. slay when it works, sad when it doesn't π
π ERRORS π
NNG_ECLOSEDβ Parametersdoes not refer to an open socket. it's giving "who dis, i don't know her" π the socket you handed over isn't open, so there's nothing to inspect, periodt.
π SEE ALSO π
and that's the whole vibe check β this was NNG_SOCKET_RAW(3) from the NNG Reference Manual, dated 2026-06-30 π go forth and interrogate your sockets, bestie β they can't hide from you π«Άπ
π¦ 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