Versions in this module Expand all Collapse all v1 v1.1.0 Jul 2, 2023 Changes in this version + const LISTENER + const ST_ACCEPTED + const ST_CLOSING + const ST_DATA + const ST_DISC + const ST_NEW + func Xlate_udp_addr(addr string) (xla *net.UDPAddr, e error) + type Cmgr struct + func NewManager(port string, data2usr chan *Sess_data) *Cmgr + func (this *Cmgr) Close(id string) + func (this *Cmgr) Connect(target string, uid string, data2usr chan *Sess_data) + func (this *Cmgr) List_stats() + func (this *Cmgr) Listen(kind string, port string, iface string, data2usr chan *Sess_data) (string, bool) + func (this *Cmgr) Listen_tcp(port string, data2usr chan *Sess_data) (string, bool) + func (this *Cmgr) Listen_udp(port int, data2usr chan *Sess_data) (string, bool) + func (this *Cmgr) Write(id string, buf []byte) (err error) + func (this *Cmgr) Write_n(id string, buf []byte, n int) (err error) + func (this *Cmgr) Write_str(id string, buf string) (err error) + func (this *Cmgr) Write_to_all(buf []byte) (err error) + func (this *Cmgr) Write_udp(id string, to string, ibuf interface{}) (err error) + func (this *Cmgr) Write_udp_addr(id string, toi interface{}, ibuf interface{}) (err error) + type Sess_data struct + Buf []byte + Data string + From string + Id string + State int + func (this *Sess_data) Write(buf []byte) (err error) + func (this *Sess_data) Write_n(buf []byte, n int) (err error) + func (this *Sess_data) Write_str(buf string) (err error)