RCON v0.4.0 RCON.Packet View Source
Module for handling RCON packets.
Link to this section Summary
Functions
Returns the packet ID used for auth failure.
Returns the body for a packet.
Returns the body length in bytes for a packet.
Creates a packet.
Creates and encodes a packet in one step.
Decodes a packet payload from transmission.
Decodes a packet size.
Encodes a packet to a binary for transmission.
Returns from what side the packet was sent from.
Returns the ID for a packet.
Returns the length in bytes of the packet id part.
Returns the initial packet ID value.
Returns the kind for a packet.
Returns the packet kind for a code.
Returns the length in bytes of the packet kind part.
Returns the code for a packet kind.
Returns the maximum size a body may have.
Returns the max possible value a packet ID may have.
The smallest value packet size may be.
Returns the length in bytes of the packet size part.
Link to this section Types
Link to this section Functions
Specs
auth_failed_id() :: id()
Returns the packet ID used for auth failure.
Specs
Returns the body for a packet.
Specs
Returns the body length in bytes for a packet.
Does not include the null character.
Specs
Creates a packet.
Specs
Creates and encodes a packet in one step.
Specs
Decodes a packet payload from transmission.
Specs
Decodes a packet size.
Specs
Encodes a packet to a binary for transmission.
Specs
Returns from what side the packet was sent from.
Specs
Returns the ID for a packet.
Specs
id_part_len() :: integer()
Returns the length in bytes of the packet id part.
Specs
initial_id() :: id()
Returns the initial packet ID value.
Specs
Returns the kind for a packet.
Specs
Returns the packet kind for a code.
Specs
kind_part_len() :: integer()
Returns the length in bytes of the packet kind part.
Specs
Returns the code for a packet kind.
Specs
max_body_len() :: integer()
Returns the maximum size a body may have.
Minecraft only supports a request payload length of max 1446 byte. However some tests showed that only requests with a payload length of 1413 byte or lower work reliably.
Specs
max_id() :: id()
Returns the max possible value a packet ID may have.
Value from signed int32 max (2^31 - 1
).
Specs
min_size() :: size()
The smallest value packet size may be.
Specs
size_part_len() :: integer()
Returns the length in bytes of the packet size part.