Versions in this module Expand all Collapse all v1 v1.0.3 Jul 10, 2020 Changes in this version + func RangeConnection(f func(key, value interface{}) bool) v1.0.2 Jul 3, 2020 Changes in this version + func CreateChan() (chan *TData, uint64) + func DeleteChan(nIndex uint64) + func FindChan(nIndex uint64) chan *TData + type IConn interface + Close func() error + LocalAddr func() net.Addr + Read func(b []byte) (int, error) + RemoteAddr func() net.Addr + SetDeadline func(t time.Time) error + SetReadDeadline func(t time.Time) error + Write func(buff []byte) (int, error) + type TConnection struct + func CreateConnection(pConn IConn) *TConnection + func FindConnection(nIndex uint64) *TConnection + func (self *TConnection) Close() error + func (self *TConnection) GetConn() IConn + func (self *TConnection) GetIndex() uint64 + func (self *TConnection) LocalAddr() net.Addr + func (self *TConnection) Read(b []byte) (int, error) + func (self *TConnection) RemoteAddr() net.Addr + func (self *TConnection) SetDeadline(t time.Time) error + func (self *TConnection) SetReadDeadline(t time.Time) error + func (self *TConnection) Write(buff []byte) (int, error) + func (self *TConnection) WritePack(buff []byte) (int, error) + type TData struct + func NewData(buff []byte, nLen int, p *TConnection) *TData + func (self *TData) GetBuffer() []byte + func (self *TData) GetConnection() *TConnection + func (self *TData) GetIndex() uint64 + func (self *TData) GetLength() int + func (self *TData) Print()