NNG_TCP_REGISTER(3)
β¨ NNG_TCP_REGISTER(3) β¨
okay bestie, welcome to the NNG Reference Manual π this one is a lil page about nng_tcp_register, and yes it's a whole mood. let's get into it π«Ά
πΈ NAME πΈ
nng_tcp_register β register tcp transport
lowkey does what it says on the tin, no cap π
π SYNOPSIS π
#include <nng/transport/tcp/tcp.h>
int nng_tcp_register(void);
she's short, she's sweet, she's a header and a function call. iconic honestly β¨
π¦ DESCRIPTION π¦
so the nng_tcp_register() function registers the tcp transport for use. that's the whole job. that's her main character moment. π
Note π this function is deprecated, and may be removed from a future release. it is no longer necessary to explicitly register transports. so likeβ¦ she's giving legacy energy. still valid, still documented, but the universe has moved on π
β RETURN VALUES β
this function returns 0 on success, and non-zero otherwise. so 0 = slay, anything else = not slay π
π ERRORS π
NNG_ENOMEMβ insufficient memory is available. the vibes were there but the RAM was not πNNG_ENOTSUPβ the transport is not supported. she said "not today" fr fr π
π SEE ALSO π
go read those next, bestie, they're the lore π§
and that's the whole page! this one came from the NNG Reference Manual, dated 2026-06-30, and it lives at NNG_TCP_REGISTER(3) β so if you ever need to find her again, you know exactly where she's at πβ¨π
π¦ 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