DTLSSocket

sealed trait DTLSSocket[F <: ([_$1] =>> Any)] extends Socket[F]
UDP socket that supports encryption via DTLS.
To construct a DTLSSocket, use the dtlsClient and dtlsServer methods on TLSContext.
Companion
object
trait Socket[F]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

Result of joining an any-source multicast group on a UDP socket.
Inhertied from
Socket
Result of joining a multicast group on a UDP socket.
Inhertied from
Socket

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.

Inherited methods

def close: F[Unit]
Closes this socket.
Inhertied from
Socket
def join(group: InetAddress, interface: NetworkInterface, source: InetAddress): F[GroupMembership]
Joins a source specific multicast group on a specific network interface.
Value Params
group
address of group to join
interface
network interface upon which to listen for datagrams
source
limits received packets to those sent by the source
Inhertied from
Socket
def join(group: InetAddress, interface: NetworkInterface): F[AnySourceGroupMembership]
Joins a multicast group on a specific network interface.
Value Params
group
address of group to join
interface
network interface upon which to listen for datagrams
Inhertied from
Socket
def writes(timeout: Option[FiniteDuration]): (F, Packet) => Unit
Writes supplied packets to this udp socket.
If timeout is specified, then resulting pipe will fail with java.nio.channels.InterruptedByTimeoutException
if a write was not completed in given timeout.
Inhertied from
Socket
def reads(timeout: Option[FiniteDuration]): Stream[F, Packet]
Reads packets received from this udp socket.
Note that multiple reads may execute at same time, causing each evaluation to receive fair
amount of messages.
If timeout is specified, then resulting stream will fail with java.nio.channels.InterruptedByTimeoutException
if a read was not satisfied in given timeout.
Returns
stream of packets
Inhertied from
Socket
def write(packet: Packet, timeout: Option[FiniteDuration]): F[Unit]
Write a single packet to this udp socket.
If timeout is specified, then resulting F will fail with java.nio.channels.InterruptedByTimeoutException
if write was not completed in given timeout.
Value Params
packet
Packet to write
Inhertied from
Socket
def localAddress: F[InetSocketAddress]
Returns the local address of this udp socket.
Inhertied from
Socket
def read(timeout: Option[FiniteDuration]): F[Packet]
Reads a single packet from this udp socket.
If timeout is specified, then resulting F will fail with java.nio.channels.InterruptedByTimeoutException
if read was not satisfied in given timeout.
Inhertied from
Socket