DTLSSocket
UDP socket that supports encryption via DTLS.
To construct a
DTLSSocket
, use the dtlsClient
and dtlsServer
methods on TLSContext
.- Companion
- object
Type members
Inherited classlikes
trait AnySourceGroupMembership
Result of joining an any-source multicast group on a UDP socket.
- Inhertied from
- Socket
Value members
Methods
Inherited methods
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
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
Writes supplied packets to this udp socket.
If
if a write was not completed in given timeout.
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
Reads packets received from this udp socket.
Note that multiple
amount of messages.
reads
may execute at same time, causing each evaluation to receive fairamount of messages.
If
if a read was not satisfied in given timeout.
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
Write a single packet to this udp socket.
If
if write was not completed in given timeout.
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