.\" File automatically generated by doxy2man0.3 .\" Generation date: Wed Aug 19 2026 .TH rc_check_tls 3 2026-08-19 "radcli" "Radius client library" .SH "NAME" rc_check_tls \- Check established TLS/DTLS channels for operation and reconnect if needed. .SH SYNOPSIS .nf .B #include .sp \fBint rc_check_tls\fP( \fBrc_handle *\fP\fIrh\fP ); .fi .SH DESCRIPTION .PP Probes the TLS or DTLS session with a TLS heartbeat and reconnects if the session is dead. Must be called when no other thread is using the session (e.g., from a dedicated watchdog thread that holds the lock). .SH PARAMETERS .TP .B rh a handle to parsed configuration .SH RETURN VALUE .PP 0 on success or when TLS/DTLS is not in use, -1 if the session could not be re-established .SH SEE ALSO .PP .nh .ad l \fIrc_tls_fd\fP(3) .ad .hy