Documentation
¶
Index ¶
Constants ¶
View Source
const ( SERVERDATA_AUTH packetType = 3 SERVERDATA_AUTH_RESPONSE packetType = 2 SERVERDATA_AUTH_FAILED packetType = -1 SERVERDATA_EXECCOMMAND packetType = 2 SERVERDATA_RESPONSE_VALUE packetType = 0 )
RCON request / response codes
View Source
const NUL = "\x00"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents an RCON client.
type Packet ¶
type Packet struct {
Size int32 // Size of message
Id int32 // Message ID
Type packetType // Message type (see SERVERDATA_ constants)
Payload []byte // Message payload
}
Packet represents an RCON request or response packet.
func Unmarshall ¶
Unmarshall unpacks the binary representation of a Packet.
Click to show internal directories.
Click to hide internal directories.