struct

Minecraft::RCON::Packet

Inherits Struct < Value < Object

Constructors

new(request_id : Int32, type : Type, payload)

Creates a new Packet with the given request_id, Type, and payload. Payload should be Bytes, or otherwise respond to #to_slice : Bytes.

Source

Class methods

from_io(io, format)

Reads a Packet from the given IO.

Source

Instance methods

payload

The raw payload in bytes

Source
request_id

The request ID this packet represents

Source
to_io(io, format)

Writes a Packet to the given IO.

Source
type

The type of packet

Source

Nested types