DatagramEvent

sealed interface DatagramEvent(source)

What a DatagramTransport hands to the messaging layer.

Inheritors

Types

Link copied to clipboard
class Received(val from: Endpoint, val datagram: ByteArray) : DatagramEvent
Link copied to clipboard
class SessionEnded(val endpoint: Endpoint.Secure, val reason: SessionEndReason) : DatagramEvent

A DTLS session ended or was replaced by a new handshake; endpoint is dead.