DTLSSocket

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

Type members

Inherited classlikes

Result of joining a multicast group on a UDP socket.
Inhertied from
DatagramSocket

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 read: F[Datagram]
Reads a single datagram from this udp socket.
Inhertied from
DatagramSocket
def reads: Stream[F, Datagram]
Reads datagrams received from this udp socket.
Note that multiple reads may execute at same time, causing each evaluation to receive fair
amount of messages.
Returns
stream of datagrams
Inhertied from
DatagramSocket
Writes supplied datagrams to this udp socket.
Inhertied from
DatagramSocket
def write(datagram: Datagram): F[Unit]
Writes a single datagram to this udp socket.
Value Params
datagram
datagram to write
Inhertied from
DatagramSocket
def localAddress: F[SocketAddress[IpAddress]]
Returns the local address of this udp socket.
Inhertied from
DatagramSocket
def join(join: MulticastJoin[IpAddress], interface: NetworkInterface): F[GroupMembership]
Joins a multicast group on a specific network interface.
Value Params
interface
network interface upon which to listen for datagrams
join
group to join
Inhertied from
DatagramSocket