'\" t .\" Title: tlsrpt_close .\" Author: Boris Lohner .\" Generator: Asciidoctor 1.5.6.1 .\" Date: 2024-11-06 .\" Manual: tlsrpt_close .\" Source: tlsrpt_close .\" Language: English .\" .TH "TLSRPT_CLOSE" "3" "2024-11-06" "tlsrpt_close" "tlsrpt_close" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \\$2 \(laURL: \\$1 \(ra\\$3 .. .if \n[.g] .mso www.tmac .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[CR]tlsrpt_close\fP closes the tlsrpt_connetion_t object. \f[CR]tlsrpt_close\fP closes the socket, resets the destination socket address to all zero bytes, deallocates the \f[CR]struct tlsrpt_connection_t\fP and sets *pcon to \f[CR]NULL\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 \fBtlsrpt_open\fP(3), \fBtlsrpt_strerror\fP(3), \fBtlsrpt_error_code_is_internal\fP(3) .SH "AUTHOR(S)" .sp \fBBoris Lohner\fP .RS 4 Author(s). .RE