Skip to content

Packet Structure

Data Types used in packet structures

Name Description
byte 8 bit character
ushort 16 bit unsigned integer
uint 32 bit unsigned integer
ulong 64 bit unsigned integer

Packet header

Data Type Comment
Version byte Version number of the request
Flags byte Request packets use 0x01
Opcode byte Identifier of the request
Reserved byte A reserved byte not in use right now but can be used for future purposes
Length uint Length of the payload data
Payload JSON string Optional payload of the packet

Continue reading: Handling Server Query Response