NNG_TCP_REGISTER(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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