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 Packet ¶
type Packet struct {
// contains filtered or unexported fields
}
Packet 服务端发往客户端的消息
func (*Packet) GetMessageID ¶
Click to show internal directories.
Click to hide internal directories.