Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
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 Route ziface.IRoute // 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 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.