logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tlsrpt_open - `tlsrpt_open` allocates and initializes the `struct tlsrpt_connection_t` object

Author(S)

BorisLohner
           Author(s).

tlsrpt_open                                        2024-11-06                                     TLSRPT_OPEN(3)

Description

       The function tlsrpt_open allocates and initializes the struct tlsrpt_connection_t object. This function
       creates the socket and initializes the destination socket address of the TLSRPT collectd. There is no
       actual connection internally, the socket is a connection-less datagram socket.

Name

       tlsrpt_open - `tlsrpt_open` allocates and initializes the `struct tlsrpt_connection_t` object

Return Value

       The tlsrpt_open function returns 0 on success and a combined error code on failure. The combined error
       code can be analyzed with the tlsrpt_strerror function.

See Also

tlsrpt_close(3), tlsrpt_strerror(3), tlsrpt_error_code_is_internal(3)

Synopsis

       #include <tlsrpt.h>

       int tlsrpt_open(struct tlsrpt_connection_t** pcon, const char* socketname)

See Also