Versions in this module Expand all Collapse all v1 v1.0.0 Apr 28, 2024 Changes in this version + const TcpDialTimeout + const TcpKeepIntvl + const TcpReconIntvl + type Protocol interface + Close func() + Name func() string + ReadLoop func(*net.Conn) + type TcpClient struct + func NewTcpClient(connectAddr string, protocol *Protocol, pinitwg *sync.WaitGroup) *TcpClient + func (c *TcpClient) Init() + func (c *TcpClient) Protocol() *Protocol + func (c *TcpClient) Shutdown() + type TcpServer struct + func NewTcpServer(listenAddr string, protocol *Protocol, pinitwg *sync.WaitGroup) *TcpServer + func (s *TcpServer) Init() + func (s *TcpServer) Protocol() *Protocol + func (s *TcpServer) Shutdown()