TLSContext

sealed trait TLSContext[F <: ([_$1] =>> Any)]
Allows creation of TLSSockets.
Companion
object
class Object
trait Matchable
class Any

Value members

Methods

def client(socket: Socket[F], params: TLSParameters, logger: Option[String => F[Unit]]): Resource[F, TLSSocket[F]]
Creates a TLSSocket in client mode, using the supplied parameters.
Internal debug logging of the session can be enabled by passing a logger.
def server(socket: Socket[F], params: TLSParameters, logger: Option[String => F[Unit]]): Resource[F, TLSSocket[F]]
Creates a TLSSocket in server mode, using the supplied parameters.
Internal debug logging of the session can be enabled by passing a logger.
def dtlsClient(socket: DatagramSocket[F], remoteAddress: SocketAddress[IpAddress], params: TLSParameters, logger: Option[String => F[Unit]]): Resource[F, DTLSSocket[F]]
Creates a DTLSSocket in client mode, using the supplied parameters.
Internal debug logging of the session can be enabled by passing a logger.
def dtlsServer(socket: DatagramSocket[F], remoteAddress: SocketAddress[IpAddress], params: TLSParameters, logger: Option[String => F[Unit]]): Resource[F, DTLSSocket[F]]
Creates a DTLSSocket in server mode, using the supplied parameters.
Internal debug logging of the session can be enabled by passing a logger.