Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Handshake represents a handshake: request(client) <====> handshake response(server) Handshake = 0x01 // HandshakeAck represents a handshake ack from client to server HandshakeAck = 0x02 // Heartbeat represents a heartbeat Heartbeat = 0x03 // Data represents a common data packet Data = 0x04 // Kick represents a kick off packet Kick = 0x05 // disconnect message from server )
Variables ¶
View Source
var ErrInvalidHeader = errors.New("invalid header")
ErrInvalidHeader represents an invalid header
View Source
var ErrWrongPacketType = errors.New("wrong packet type")
ErrWrongPacketType represents a wrong packet type.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.