ZappObject

class ZappObject(val header: ZappHeader, val payload: ZappPayload)

An object that represents the encoded bytes on a single datagram.

ZAPP(Zap Protocol) is network protocol defined on top of UDP datagram, enabling the exchange of 'Zapable' data between client and server. For further details about the protocol, refer to the ZAPP section in the Zap Documentation.

Constructors

Link copied to clipboard
constructor(header: ZappHeader, payload: ZappPayload)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A header part.

Link copied to clipboard

A payload part.

Functions

Link copied to clipboard
operator fun component1(): ZappHeader
Link copied to clipboard
operator fun component2(): ZappPayload
Link copied to clipboard

Encode ZappObject to ByteBuffer. The sequence of bytes is MUST encoded as ZAPP Object.