Documentation ¶
Index ¶
- type Server
- func (s *Server) AddService(mod uint16, serv Service) error
- func (s *Server) CloseConn(c net.Conn)
- func (s *Server) Connect(network string, address string, timeoutSec int64) (net.Conn, error)
- func (s *Server) HandlePack(p *sock.SockPack, c net.Conn, mod uint16) error
- func (s *Server) Send(p *sock.SockPack, c net.Conn)
- func (s *Server) SetHeaderProcessor(headerProcessor sock.SockHeaderProcessor, c net.Conn)
- func (s *Server) SetSockListener(l sock.SockListener)
- func (s *Server) Start(network string, address string) error
- func (s *Server) Stop()
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HandlePack ¶
func (*Server) SetHeaderProcessor ¶
func (s *Server) SetHeaderProcessor(headerProcessor sock.SockHeaderProcessor, c net.Conn)
func (*Server) SetSockListener ¶
func (s *Server) SetSockListener(l sock.SockListener)
Click to show internal directories.
Click to hide internal directories.