Documentation ¶
Index ¶
Constants ¶
View Source
const PingReply = 0x6a
View Source
const PingRequest = 0x69
Variables ¶
View Source
var ErrBadPacketHeader = errors.New("bad packet header")
View Source
var ErrUnknownInfoVersion = errors.New("unknown A2S_INFO version")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the Valve source query protocol
type MultiPacketHeader ¶
type MultiPacketHeader struct { // Size of the packet header itself. Size int // Packet sequence id. Id uint32 // Packet number out of Total Packets. PacketNumber uint8 // Total number of packets to receive. TotalPackets uint8 // Packet size (0 if not present). PacketSize uint16 // Compression information. Compressed bool Payload []byte }
Click to show internal directories.
Click to hide internal directories.