NNG_TLS_REGISTER(3)

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

✨ NNG_TLS_REGISTER ✨

okay bestie, so this is page three of the NNG Reference Manual, and it's literally just one tiny function that does one tiny iconic thing. no cap.


πŸŽ€ NAME πŸŽ€

nng_tls_register β€” register the tls transport πŸ’…


🌸 SYNOPSIS 🌸

#include <nng/transport/tls/tls.h>

int nng_tls_register(void);

like, that's it. one include, one function, zero args. serve.


πŸ¦‹ DESCRIPTION πŸ¦‹

So nng_tls_register() does exactly one thing and it does it flawlessly: it registers the tls transport for use. that's the whole job. it's giving "one task, main character energy" 🫢


πŸ’– RETURN VALUES πŸ’–

  • returns 0 when everything slays ✨
  • returns non-zero when it does not slay πŸ’€

πŸ’… ERRORS πŸ’…

okay so if it's not giving 0, it's giving one of these:

  • NNG_ENOMEM β€” insufficient memory is available. the vibes ran out of RAM, basically 😭
  • NNG_ENOTSUP β€” the transport is not supported. this platform said "not me" πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're lowkey required reading, iykyk πŸ“š


and that's the whole page fr fr 🌈 that was NNG_TLS_REGISTER from the NNG Reference Manual, dated 2026-06-30. periodt. πŸ’œπŸŒΈπŸŽ€

πŸ“¦ where this page comes from