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 a multicast group on a UDP socket.
Result of joining a multicast group on a UDP socket.
- Inherited from
- DatagramSocket
Value members
Abstract methods
Initiates handshaking -- either the initial or a renegotiation.
Initiates handshaking -- either the initial or a renegotiation.
Inherited methods
Joins a multicast group on a specific network interface.
Joins a multicast group on a specific network interface.
- Value Params
- interface
network interface upon which to listen for datagrams
- join
group to join
- Inherited from
- DatagramSocket
Returns the local address of this udp socket.
Returns the local address of this udp socket.
- Inherited from
- DatagramSocket
Reads a single datagram from this udp socket.
Reads a single datagram from this udp socket.
- Inherited from
- DatagramSocket
Reads datagrams received from this udp socket.
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
- Inherited from
- DatagramSocket
Writes a single datagram to this udp socket.
Writes a single datagram to this udp socket.
- Value Params
- datagram
datagram to write
- Inherited from
- DatagramSocket
Writes supplied datagrams to this udp socket.
Writes supplied datagrams to this udp socket.
- Inherited from
- DatagramSocket