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_closecloses the socket π- it resets the destination socket address to all zero bytes πΈ
- it deallocates the
struct tlsrpt_connection_tποΈ - it sets
*pcontoNULLβ¨
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
- ubuntu stonking: libtlsrpt0-dev 0.5.1~rc1-2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms