'\" t .\" Title: tlsrpt_close .\" Author: Boris Lohner .\" Generator: Asciidoctor 2.0.26 .\" Date: 2026-09-01 .\" Manual: tlsrpt_close .\" Source: tlsrpt_close .\" Language: English .\" .TH "TLSRPT_CLOSE" "3" "2026-09-01" "tlsrpt_close" "tlsrpt_close" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" tlsrpt_close \- `tlsrpt_close` closes the tlsrpt_connetion_t object .SH "SYNOPSIS" .sp #include .sp int tlsrpt_close(struct tlsrpt_connection_t** pcon) .SH "DESCRIPTION" .sp The function \f(CRtlsrpt_close\fP closes the tlsrpt_connetion_t object. \f(CRtlsrpt_close\fP closes the socket, resets the destination socket address to all zero bytes, deallocates the \f(CRstruct tlsrpt_connection_t\fP and sets *pcon to \f(CRNULL\fP. .SH "RETURN VALUE" .sp The tlsrpt_close function returns 0 on success and a combined error code on failure. The combined error code can be analyzed with the \fItlsrpt_strerror\fP function. .SH "SEE ALSO" .sp man:tlsrpt_open[3], man:tlsrpt_strerror[3], man:tlsrpt_error_code_is_internal[3] .SH "AUTHOR" .sp Boris Lohner