DisconnectReason

Why a Connection managed by a MultiConnectionUDPServer stopped being addressable, as reported to MultiConnectionUDPServer.onClientDisconnect.

A future minor release may add a new reason (e.g. for a graceful close); keep an else branch in any when over DisconnectReason.

Entries

Link copied to clipboard

No datagram (data or a 0x80 keepalive) arrived from the peer within the configured idle threshold. The registration is left in place - notify-only.

Link copied to clipboard

A fresh Iam under this connection's name arrived from a different origin (e.g. a NAT rebind) and superseded it; the registration has been removed. A matching MultiConnectionUDPServer.onClientConnect fires for the replacement.

Link copied to clipboard

The application called Connection.terminate; the registration has been removed.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard