V086Message

A message in the v086 Kaillera protocol.

A message structure over the wire is as follows:

  1. The message number (2 bytes)

  2. The length of the message (2 bytes)

  3. The ID of the message type (1 byte)

  4. All body bytes written by writeBodyTo (bodyBytes bytes)

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val bodyBytes: Int

Number of bytes the body of the message takes up (excluding the message ID byte).

Link copied to clipboard
open override val bodyBytesPlusMessageIdType: Int

The total number of bytes the message takes up, including the message ID byte.

Link copied to clipboard
abstract var messageNumber: Int

The 0-based enumeration indicating the order in which this message was sent/received for each server.

Link copied to clipboard
abstract val messageTypeId: Byte

Functions

Link copied to clipboard
abstract fun writeBodyTo(buffer: ByteBuf)
abstract fun writeBodyTo(buffer: ByteBuffer)
Link copied to clipboard
open override fun writeTo(buffer: ByteBuf)
fun writeTo(buffer: ByteBuffer)