TLSRPT_CLOSE(3)

πŸ’– TLSRPT_CLOSE(3) β€” the tlsrpt_close page, bestie edition πŸ’–

okay so real talk, this is the tlsrpt_close manual page, and it does exactly one thing but it does it flawlessly. no cap. it's giving "clean up after yourself" main character energy, and honestly? we're obsessed. 🫢


✨ NAME ✨

tlsrpt_close β€” closes the tlsrpt_connetion_t object πŸ’…


✨ SYNOPSIS ✨

#include <tlsrpt.h>

int tlsrpt_close(struct tlsrpt_connection_t** pcon)

✨ DESCRIPTION ✨

bestie. listen. the function tlsrpt_close closes the tlsrpt_connetion_t object. that's the whole vibe. πŸŽ€

and the way that it does it? immaculate. step by step, no skips, no cherry-picking:

  • tlsrpt_close closes the socket πŸ”Œ
  • it resets the destination socket address to all zero bytes 🌸
  • it deallocates the struct tlsrpt_connection_t πŸ—‘οΈ
  • it sets *pcon to NULL ✨

like, it literally puts everything back the way it found it and then points at nothing. tidy queen behavior. periodt. πŸ‘‘


✨ RETURN VALUE ✨

the tlsrpt_close function returns 0 on success 🌈 β€” slay, no notes.

on failure it returns a combined error code 😭. that combined error code can be analyzed with the tlsrpt_strerror function, so if something went sideways you know exactly where to look. iykyk.


πŸ‘€ SEE ALSO πŸ‘€

  • man:tlsrpt_open[3]
  • man:tlsrpt_strerror[3]
  • man:tlsrpt_error_code_is_internal[3]

🌟 AUTHOR 🌟

Boris Lohner β€” we appreciate you, fr fr 🫢


lowkey iconic that a function whose entire job is "bye, close everything" got its own whole manual page. and yet!! it deserves it!! clean teardown is underrated and this one ate. πŸ’œ

okay that's the whole page bestie, go close some connections responsibly. this one's from the tlsrpt_close manual (section 3), dated 2026-05-12 β€” version vibes of the classic TLSRPT_CLOSE(3) era. bye bye, mwah πŸ¦‹πŸ’–

πŸ“¦ where this page comes from