Documentation ¶
Index ¶
- type Conn
- type Server
- func (server *Server) Close()
- func (server *Server) GetConnNum() (num int)
- func (server *Server) OnClosed(c gnet.Conn, err error) (action gnet.Action)
- func (server *Server) OnOpened(c gnet.Conn) (out []byte, action gnet.Action)
- func (server *Server) React(frame []byte, c gnet.Conn) (out []byte, action gnet.Action)
- func (server *Server) Run()
- func (server *Server) Start(address string, newAgent core.GetAgent, opts ...core.ServerOption) error
- func (server *Server) Tick() (delay time.Duration, action gnet.Action)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *gnet.EventServer // contains filtered or unexported fields }
Server TCP GNet 服务器
Click to show internal directories.
Click to hide internal directories.