Documentation
¶
Index ¶
- Variables
- func AddServer(hostid int32, forward chan IPCObject)
- func AllServers() []int32
- func ForwardChan(hostid int32) chan IPCObject
- func HandleRequest(hostid int32, reader *packet.Packet, output chan []byte)
- func P_adduser_req(hostid int32, pkt *packet.Packet) []byte
- func P_forward_req(hostid int32, pkt *packet.Packet) []byte
- func P_free_req(hostid int32, pkt *packet.Packet) []byte
- func P_login_req(hostid int32, pkt *packet.Packet) []byte
- func P_logout_req(hostid int32, pkt *packet.Packet) []byte
- func P_ping_req(hostid int32, reader *packet.Packet) []byte
- func P_protect_req(hostid int32, pkt *packet.Packet) []byte
- func P_raid_req(hostid int32, pkt *packet.Packet) []byte
- func RemoveServer(hostid int32)
- func Syscast(hostid int32, obj *IPCObject)
- type FORWARDIPC
- type ID
- type ID_SCORE
- type INT
- type LIST
- type LOGIN_ACK
- type LOGIN_REQ
- type LONG
- type PROTECT
- type STRING
Constants ¶
This section is empty.
Variables ¶
View Source
var Code = map[string]int16{
"ping_req": 0,
"login_req": 1,
"logout_req": 2,
"raid_req": 3,
"protect_req": 4,
"free_req": 5,
"adduser_req": 6,
"forward_req": 100,
}
View Source
var RCode = map[int16]string{
0: "ping_req",
1: "login_req",
2: "logout_req",
3: "raid_req",
4: "protect_req",
5: "free_req",
6: "adduser_req",
100: "forward_req",
}
Functions ¶
func AllServers ¶
func AllServers() []int32
func ForwardChan ¶
func ForwardChan(hostid int32) chan IPCObject
func RemoveServer ¶
func RemoveServer(hostid int32)
Types ¶
type FORWARDIPC ¶
type FORWARDIPC struct {
F_IPC []byte
}
func PKT_FORWARDIPC ¶
func PKT_FORWARDIPC(reader *packet.Packet) (tbl FORWARDIPC, err error)
Click to show internal directories.
Click to hide internal directories.