Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { WriteMsg(msg interface{}) LocalAddr() net.Addr RemoteAddr() net.Addr Close() Destroy() UserData() interface{} SetUserData(data interface{}) }
Agent Agent
type Gate ¶
type Gate struct { MaxConnNum int PendingWriteNum int MaxMsgLen uint32 Processor network.Processor AgentChanRPC *chanrpc.Server KCPProcessor network.Processor KCPAgentChanRPC *chanrpc.Server // websocket WSAddr string HTTPTimeout time.Duration CertFile string KeyFile string // tcp TCPAddr string LenMsgLen int LittleEndian bool //kcp KCPAddr string KCPLenMsgLen int KCPLittleEndian bool }
Gate Gate
Click to show internal directories.
Click to hide internal directories.