TCP socket that supports encryption via TLS.
To construct a TLSSocket, use the client and server methods on TLSContext.
- Companion
- object
Value members
Abstract methods
Inherited methods
Indicates to peer, we are done writing. *
Indicates to peer, we are done writing. *
- Inherited from
- Socket
Asks for the local address of the socket.
Asks for the local address of the socket.
- Inherited from
- Socket
Reads up to maxBytes from the peer.
Reads up to maxBytes from the peer.
Returns None if the "end of stream" is reached, indicating there will be no more bytes sent.
- Inherited from
- Socket
Reads exactly numBytes from the peer in a single chunk.
Reads exactly numBytes from the peer in a single chunk.
Returns a chunk with size < numBytes upon reaching the end of the stream.
- Inherited from
- Socket
Reads bytes from the socket as a stream.
Reads bytes from the socket as a stream.
- Inherited from
- Socket
Asks for the remote address of the peer.
Asks for the remote address of the peer.
- Inherited from
- Socket
Writes bytes to the peer.
Writes bytes to the peer.
Completes when the bytes are written to the socket.
- Inherited from
- Socket