IPacketMsg

interface IPacketMsg

Represents a simple unified interface into client messages recieved from the network. This is contrasted with IClientMsg in that this interface is packet body agnostic and only allows simple access into the header. This interface is also immutable, and the underlying data cannot be modified.

Inheritors

Functions

Link copied to clipboard
abstract fun getData(): Array<Byte>
Gets the underlying data that represents this client message.
Link copied to clipboard
abstract fun getMsgType(): EMsg
Gets the network message type of this packet message.
Link copied to clipboard
abstract fun getSourceJobID(): Long
Gets the source job id for this packet message.
Link copied to clipboard
abstract fun getTargetJobID(): Long
Gets the target job id for this packet message.
Link copied to clipboard
abstract fun isProto(): Boolean
Gets a value indicating whether this packet message is protobuf backed.