Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuffPool *buffPool
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
type ProtocolCodec ¶
type ProtocolCodec struct {
// contains filtered or unexported fields
}
func (*ProtocolCodec) Receive ¶
func (codec *ProtocolCodec) Receive() (interface{}, error)
Receive 接收消息
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddHandler ¶
func (server *Server) AddHandler(st uint16, handler MessageHandler)
AddHandler 添加消息处理器
func (*Server) GetSession ¶
GetSession 获取session
func (*Server) RemoveHandler ¶
RemoveHandler 移除消息处理器
func (*Server) SessionCount ¶
Click to show internal directories.
Click to hide internal directories.