RemotePacket

sealed interface RemotePacket(source)

Bounded native-channel envelope shared by direct servers, proxies, and clients. Discovery requests greetings from both hosts; subsequent frames target one exact host incarnation. The fixed envelope is included in the native channel bound and excluded from the negotiated inner fragment bound.

Inheritors

Types

Link copied to clipboard
object Companion

Strict binary envelope codec; native adapters retain their existing channel and packet codecs.

Link copied to clipboard
data object Discovery : RemotePacket

Sent after native channel registration, and forwarded by a proxy when the backend changes. Repeated discovery does not reset a live host connection.

Link copied to clipboard
class Frame(val address: RemoteAddress, val sequence: Long, val bytes: ByteArray) : RemotePacket

One owned inner protocol fragment associated with its authenticated host incarnation. Callers must not modify bytes after passing this packet to another owner.