Documentation ¶
Index ¶
- type NotifyNewIO
- type Server
- func (s *Server) AfterInit() error
- func (s *Server) AsyncConnectMe(ctx context.Context, raw net.Conn) error
- func (s *Server) BeforeStop()
- func (s *Server) Handle(ctx context.Context, req def.RequestWriter) error
- func (s *Server) ID() def.ServID
- func (s *Server) Init(srv *xserver.Server) error
- func (s *Server) Loop(ctx context.Context, delta xtime.DeltaTimeMsec)
- func (s *Server) Stop()
- func (s *Server) Type() def.ServTP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyNewIO ¶
func (*NotifyNewIO) Msg ¶
func (n *NotifyNewIO) Msg() def.Msg
func (*NotifyNewIO) PeerServID ¶
func (n *NotifyNewIO) PeerServID() def.ServID
func (*NotifyNewIO) PeerServType ¶
func (n *NotifyNewIO) PeerServType() def.ServTP
func (*NotifyNewIO) ReqID ¶
func (n *NotifyNewIO) ReqID() int32
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AsyncConnectMe ¶
AsyncConnectMe run in single goroutine.
func (*Server) BeforeStop ¶
func (s *Server) BeforeStop()
Click to show internal directories.
Click to hide internal directories.