Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(conn *net.TCPConn, connID uint32, msgHandler ziface.IMsgHandle) ziface.IConnection
Types ¶
type BaseRoute ¶
type BaseRoute struct{}
func (BaseRoute) PostHandler ¶
func (*BaseRoute) PreHandler ¶
type Connection ¶
type Connection struct { Conn *net.TCPConn ConnID uint32 ExitBuffChan chan bool MsgHandler ziface.IMsgHandle // contains filtered or unexported fields }
func (*Connection) GetConnID ¶
func (c *Connection) GetConnID() uint32
func (*Connection) GetTCPConnection ¶
func (c *Connection) GetTCPConnection() *net.TCPConn
func (*Connection) RemoteAddr ¶
func (c *Connection) RemoteAddr() net.Addr
func (*Connection) Start ¶
func (c *Connection) Start()
func (*Connection) StartReader ¶
func (c *Connection) StartReader()
func (*Connection) Stop ¶
func (c *Connection) Stop()
type DataPack ¶
type DataPack struct { }
func NewDataPack ¶
func NewDataPack() *DataPack
func (*DataPack) GetHeadLen ¶
type MsgHandler ¶
func NewMsgHandle ¶
func NewMsgHandle() *MsgHandler
func (*MsgHandler) DoMsgHandler ¶
func (s *MsgHandler) DoMsgHandler(request ziface.IRequest)
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) GetConnection ¶
func (r *Request) GetConnection() ziface.IConnection
Click to show internal directories.
Click to hide internal directories.