Documentation ¶
Index ¶
- type Client
- type ClientMngr
- func (owner *ClientMngr) DisConnect(connID int32)
- func (owner *ClientMngr) SendToAll(msg *Msg)
- func (owner *ClientMngr) SendToConn(ConnID int32, msg *Msg)
- func (owner *ClientMngr) SendWithOut(msg *Msg, ignore int32)
- func (owner *ClientMngr) SetConnectCallback(callback NetWSCallback)
- func (owner *ClientMngr) SetDisConnectCallback(callback NetWSCallback)
- type Config
- type Event
- type IHandler
- type Msg
- type NetWSCallback
- type Router
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMngr ¶
ClientMngr TODO.
func (*ClientMngr) SendToConn ¶
func (owner *ClientMngr) SendToConn(ConnID int32, msg *Msg)
SendToConn 通过连接ID发送
func (*ClientMngr) SendWithOut ¶
func (owner *ClientMngr) SendWithOut(msg *Msg, ignore int32)
SendWithOut TODO
func (*ClientMngr) SetConnectCallback ¶
func (owner *ClientMngr) SetConnectCallback(callback NetWSCallback)
SetConnectCallback TODO
func (*ClientMngr) SetDisConnectCallback ¶
func (owner *ClientMngr) SetDisConnectCallback(callback NetWSCallback)
SetDisConnectCallback TODO
type Router ¶
Router struct.
func (*Router) RegHandler ¶
RegHandler 注册消息处理函数. 参数: 1-消息ID, 2-消息处理器结构体实例.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct.
func (*Service) GetClientMngr ¶
func (owner *Service) GetClientMngr() *ClientMngr
GetClientMngr get TcpConnMngr Instance.
func (*Service) RegHandler ¶
RegHandler register net message handler.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.