MalformedMessage

class MalformedMessage(val peer: Endpoint, val reason: EndpointEvent.MalformedMessage.Reason, val detail: String? = null) : EndpointEvent(source)

What peer sent was not a well-formed message. A datagram was answered with a Reset if its header showed a Confirmable message, and dropped otherwise (RFC 7252 §4.2, §4.3); a connection was aborted (RFC 8323 §5.6). reason is a bounded set fit for counting; detail is what the parser said, for a log.

Constructors

Link copied to clipboard
constructor(peer: Endpoint, reason: EndpointEvent.MalformedMessage.Reason, detail: String? = null)

Types

Link copied to clipboard

Why a message was malformed. New reasons may be added before 1.0; use an else branch.

Properties

Link copied to clipboard
Link copied to clipboard
open override val peer: Endpoint

The peer the event concerns.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String