UDP socket that supports encryption via DTLS.
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
Result of joining an any-source multicast group on a UDP socket.
Result of joining an any-source multicast group on a UDP socket.
- Inherited from
- Socket
Result of joining a multicast group on a UDP socket.
Result of joining a multicast group on a UDP socket.
- Inherited from
- Socket
Value members
Abstract methods
Initiates handshaking -- either the initial or a renegotiation.
Initiates handshaking -- either the initial or a renegotiation.
Inherited methods
Joins a source specific multicast group on a specific network interface.
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
- Inherited from
- Socket
Joins a multicast group on a specific network interface.
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
- Inherited from
- Socket
Returns the local address of this udp socket.
Returns the local address of this udp socket.
- Inherited from
- Socket
Reads a single packet from this udp socket.
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.
- Inherited from
- Socket
Reads packets received from this udp socket.
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
- Inherited from
- Socket
Write a single packet to this udp socket.
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
- Inherited from
- Socket
Writes supplied packets to this udp socket.
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.
- Inherited from
- Socket