Documentation
¶
Index ¶
Constants ¶
View Source
const ( DataLen = 2 MessageIDLen = 1 MinPacketLen = DataLen + MessageIDLen MaxPacketLen = (2 << 8) * DataLen MaxMessageID = (2 << 8) * MessageIDLen )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgProtocol ¶
type MsgProtocol struct { }
MsgProtocol is used to read message according to protocol
func (*MsgProtocol) ReadPacket ¶
type Packet ¶
type Packet struct {
// contains filtered or unexported fields
}
Packet is the message sent by the server to the client
func (*Packet) GetMessageID ¶
Click to show internal directories.
Click to hide internal directories.