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_close - `tlsrpt_close` closes the tlsrpt_connetion_t object

Author(S)

BorisLohner
           Author(s).

tlsrpt_close                                       2024-11-06                                    TLSRPT_CLOSE(3)

Description

       The function tlsrpt_close closes the tlsrpt_connetion_t object. tlsrpt_close closes the socket, resets
       the destination socket address to all zero bytes, deallocates the struct tlsrpt_connection_t and sets
       *pcon to NULL.

Name

       tlsrpt_close - `tlsrpt_close` closes the tlsrpt_connetion_t object

Return Value

       The tlsrpt_close 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_open(3), tlsrpt_strerror(3), tlsrpt_error_code_is_internal(3)

Synopsis

       #include <tlsrpt.h>

       int tlsrpt_close(struct tlsrpt_connection_t** pcon)

See Also