TLSSocket

sealed trait TLSSocket[F <: ([_$1] =>> Any)] extends Socket[F]
TCP socket that supports encryption via TLS.
To construct a TLSSocket, use the client and server methods on TLSContext.
Companion
object
trait Socket[F]
class Object
trait Matchable
class Any

Value members

Methods

def beginHandshake: F[Unit]
Initiates handshaking -- either the initial or a renegotiation.
def session: F[SSLSession]
Provides access to the current SSLSession for purposes of querying
session info such as the negotiated cipher suite or the peer certificate.
def applicationProtocol: F[String]
Provides access to the current application protocol that has been negotiated.

Inherited methods

def read(maxBytes: Int): F[Option[Chunk[Byte]]]
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
def remoteAddress: F[SocketAddress[IpAddress]]
Asks for the remote address of the peer.
Inhertied from
Socket
def readN(numBytes: Int): F[Chunk[Byte]]
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
def reads: Stream[F, Byte]
Reads bytes from the socket as a stream.
Inhertied from
Socket
def writes: (F, Byte) => INothing
Writes the supplied stream of bytes to this socket via write semantics.
Inhertied from
Socket
def write(bytes: Chunk[Byte]): F[Unit]
Writes bytes to the peer.
Completes when the bytes are written to the socket.
Inhertied from
Socket
def localAddress: F[SocketAddress[IpAddress]]
Asks for the local address of the socket.
Inhertied from
Socket
def endOfInput: F[Unit]
Indicates that this channel will not read more data. Causes End-Of-Stream be signalled to available.
Inhertied from
Socket
def isOpen: F[Boolean]
Inhertied from
Socket
def endOfOutput: F[Unit]
Indicates to peer, we are done writing. *
Inhertied from
Socket