[ Version ( since = "3.12" ) ]
public IOStream? starttls (IOStream base_stream) throws Error
Creates a TlsClientConnection wrapping base_stream,
which is assumed to communicate with the server identified by this's
connectable.
This should typically be called after issuing a STARTTLS command to a server to initiate a Transport Layer Security handshake.
| this | |
| base_stream |
a IOStream |
|
the new TlsClientConnection, or null on error |