TLSSocket
TCP socket that supports encryption via TLS.
To construct a
TLSSocket
, use the client
and server
methods on TLSContext
.- Companion
- object
Value members
Methods
Provides access to the current
session info such as the negotiated cipher suite or the peer certificate.
SSLSession
for purposes of queryingsession info such as the negotiated cipher suite or the peer certificate.
Inherited methods
Reads up to
maxBytes
from the peer.Returns
None
if the "end of stream" is reached, indicating there will be no more bytes sent.- Inhertied from
- Socket
Reads exactly
numBytes
from the peer in a single chunk.Returns a chunk with size <
numBytes
upon reaching the end of the stream.- Inhertied from
- Socket
Indicates that this channel will not read more data. Causes
End-Of-Stream
be signalled to available
.- Inhertied from
- Socket