Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NetworkManager = &network.Network{}
View Source
var NetworkProtocol = protocol.NewLoginProtocol()
View Source
var PacketHandler = &network.PacketHandler{}
View Source
var RPCHandler = &rpc.Client{}
View Source
var ServerConfig = &Config{}
View Source
var ServerSettings = &Settings{}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type LoginPacker ¶
type LoginPacker struct{}
LoginPacker treats packet as:
opcode(2)|dataSize(2)|data(n)
| segment | type | size | remark | | ----------- | ------ | ------- | --------------------- | | `opcode` | uint16 | 2 | opcode | | `dataSize` | uint16 | 2 | length of data | | `data` | []byte | dynamic | |
Click to show internal directories.
Click to hide internal directories.