[ CCode ( type_id = "g_tls_connection_get_type ()" ) ] [ Version ( since = "2.28" ) ] publicabstractclassTlsConnection : IOStream
`GTlsConnection` is the base TLS connection class type, which wraps a [class@Gio.
IOStream] and provides TLS encryption on top of it. Its subclasses, [iface@Gio.TlsClientConnection] and [iface@Gio.TlsServerConnection],
implement client-side and server-side TLS, respectively.
For DTLS (Datagram TLS) support, see [iface@Gio.DtlsConnection].
Returns the current TLS protocol version, which may be
g_tls_protocol_version_unknown if the connection has not handshaked, or has been closed, or if the
TLS backend has implemented a protocol version that is not a recognized
TlsProtocolVersion.