DeliveryMode

Which delivery guarantee a UdpChannel provides. Each entry has its own sequence space and its own inbound handler (see Connection.channel / UdpChannel.actuateBytes).

Stable Core. Full semver guarantee — breaking changes only in a major. A future minor release may add a new entry (e.g. an unreliable-sequenced mode); keep an else branch in any when over DeliveryMode so a new entry does not fail your build.

Entries

Link copied to clipboard

Fire-and-forget: no acks, no ordering guarantee beyond arrival order, the 0x90 frame. Use for newest-wins state (position snapshots, etc.) where a dropped or reordered message is harmless because a fresher one is already on the way.

Link copied to clipboard

Acked, retransmitted, and delivered exactly once, in send order - the 0xA0/0xA1 frames. Head-of-line blocking is inherent: a missing message stalls delivery of every message sent after it on this channel, to this peer, until it is recovered. Use for discrete events (chat, ability casts, inventory changes) and never for bulk or latency-critical data - use UNRELIABLE for that.

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