frostbite.packet – frostbite packet serialization / deserialization

packet

class frostbite.packet.Packet

Represents a deserialized Frostbite RCon protocol Packet.

static decode(buf)

Alternative constructor for a Packet structure.

Takes a byte string of an encoded Frostbite server message, and returns a tuple of (packet, unused) where packet is the decoded packet, and unused is the unused bytes from the original buffer.

encode()

Encodes a packet into a byte string suitable for sending to a Frostbite server.

processSize = 12

The minimum size of a byte array before it is eligible to be parsed into a Packet.

Table Of Contents

Previous topic

frostbite.server – Frostbite Server

Next topic

frostbite.commands – Frostbite Server Command Structures

This Page