TLSRPT_OPEN(3)
π NAME π
tlsrpt_open β allocates and initializes the struct tlsrpt_connection_t object. bestie it sets the whole thing UP for you, no cap π«Ά
β¨ SYNOPSIS β¨
#include <tlsrpt.h>
int tlsrpt_open(struct tlsrpt_connection_t** pcon, const char* socketname)
π¦ DESCRIPTION π¦
okay so, tlsrpt_open is the glow-up function π
it allocates and initializes the struct tlsrpt_connection_t object, like it literally does both, iconic behaviour.
it also creates the socket and initializes the destination socket address of the TLSRPT collectd. slay.
and here's the tea, bestie: there is no actual connection internally π the socket is a connection-less datagram socket. it's giving "we're not actually talking, we're just throwing lil packets into the void" energy. so don't go expecting a handshake or anything, because that's just not the vibe here.
πΈ RETURN VALUE πΈ
0on success β we ate, no crumbs β¨- a combined error code on failure π
and that combined error code? you can analyze it with the tlsrpt_strerror function. go read it, iykyk.
π SEE ALSO π
man:tlsrpt_close[3]man:tlsrpt_strerror[3]man:tlsrpt_error_code_is_internal[3]
π AUTHOR π
Boris Lohner β the main character who wrote this fr fr π
k bye bestie, this was tlsrpt_open, page TLSRPT_OPEN(3), and it was born 2026-05-12 π¦πΈβ¨ go open some sockets (wellβ¦ kind of) and stay hydrated π
π¦ 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