TLSSocket

fs2.io.net.tls.TLSSocket
See theTLSSocket companion object
sealed trait TLSSocket[F[_]] extends Socket[F]

TCP socket that supports encryption via TLS.

To construct a TLSSocket, use the client and server methods on TLSContext.

Attributes

Companion
object
Source
TLSSocket.scala
Graph
Supertypes
trait Socket[F]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Provides access to the current application protocol that has been negotiated.

Provides access to the current application protocol that has been negotiated.

Attributes

Source
TLSSocket.scala

Provides access to the current SSLSession for purposes of querying session info such as the negotiated cipher suite or the peer certificate.

Provides access to the current SSLSession for purposes of querying session info such as the negotiated cipher suite or the peer certificate.

Attributes

Source
TLSSocket.scala

Inherited methods

Initiates handshaking -- either the initial or a renegotiation.

Initiates handshaking -- either the initial or a renegotiation.

Attributes

Inherited from:
TLSSocketPlatform (hidden)
Source
TLSSocketPlatform.scala
def endOfInput: F[Unit]

Indicates that this channel will not read more data.

Indicates that this channel will not read more data. Causes End-Of-Stream be signalled to available. This is a no-op on Node.js.

Attributes

Inherited from:
Socket
Source
Socket.scala
def endOfOutput: F[Unit]

Indicates to peer, we are done writing.

Indicates to peer, we are done writing. *

Attributes

Inherited from:
Socket
Source
Socket.scala
def isOpen: F[Boolean]

Attributes

Inherited from:
Socket
Source
Socket.scala

Asks for the local address of the socket.

Asks for the local address of the socket.

Attributes

Inherited from:
Socket
Source
Socket.scala

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.

Attributes

Inherited from:
Socket
Source
Socket.scala
def readN(numBytes: Int): F[Chunk[Byte]]

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.

Attributes

Inherited from:
Socket
Source
Socket.scala
def reads: Stream[F, Byte]

Reads bytes from the socket as a stream.

Reads bytes from the socket as a stream.

Attributes

Inherited from:
Socket
Source
Socket.scala

Asks for the remote address of the peer.

Asks for the remote address of the peer.

Attributes

Inherited from:
Socket
Source
Socket.scala
def write(bytes: Chunk[Byte]): F[Unit]

Writes bytes to the peer.

Writes bytes to the peer.

Completes when the bytes are written to the socket.

Attributes

Inherited from:
Socket
Source
Socket.scala
def writes: (F, Byte) => Nothing

Writes the supplied stream of bytes to this socket via write semantics.

Writes the supplied stream of bytes to this socket via write semantics.

Attributes

Inherited from:
Socket
Source
Socket.scala