Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct { MaxConnNum int PendingWriteNum int MaxMsgLen uint32 Processor network.Processor AgentChanRPC *chanrpc.Server // 单进程 // websocket WSAddr string HTTPTimeout time.Duration CertFile string KeyFile string // tcp TCPAddr string LenMsgLen int LittleEndian bool }
重点 理解
type OnlineUser ¶
type OnlineUser struct { Connection Agent // 链接的信息 StrMD5 string // 用的UID标示 MapSafe *concurrent.ConcurrentMap // 并发安全的map }
在线玩家的数据的结构体
Click to show internal directories.
Click to hide internal directories.