Versions in this module Expand all Collapse all v1 v1.4.15 Jul 2, 2021 v1.4.14 Jul 1, 2021 Changes in this version + type Addr struct + func (addr *Addr) Network() string + func (addr *Addr) String() string + type Agent interface + OnClose func() error + Run func() error + type Conn interface + Destroy func() + type ConnSet map[net.Conn]struct + type TCPConn struct + func (tcpConn *TCPConn) Close() error + func (tcpConn *TCPConn) Destroy() + func (tcpConn *TCPConn) LocalAddr() net.Addr + func (tcpConn *TCPConn) Read(b []byte) (int, error) + func (tcpConn *TCPConn) RemoteAddr() net.Addr + func (tcpConn *TCPConn) SetDeadline(t time.Time) error + func (tcpConn *TCPConn) SetReadDeadline(t time.Time) error + func (tcpConn *TCPConn) SetWriteDeadline(t time.Time) error + func (tcpConn *TCPConn) Write(b []byte) (n int, err error) + type TCPServer struct + Addr string + CertFile string + KeyFile string + MaxConnNum int + NewAgent func(*TCPConn) Agent + TLS bool + func (server *TCPServer) Close() + func (server *TCPServer) Start() + type WSConn struct + func (wsConn *WSConn) Close() error + func (wsConn *WSConn) Destroy() + func (wsConn *WSConn) LocalAddr() net.Addr + func (wsConn *WSConn) Read(p []byte) (n int, err error) + func (wsConn *WSConn) RemoteAddr() net.Addr + func (wsConn *WSConn) SetDeadline(t time.Time) error + func (wsConn *WSConn) SetReadDeadline(t time.Time) error + func (wsConn *WSConn) SetWriteDeadline(t time.Time) error + func (wsConn *WSConn) Write(p []byte) (int, error) + type WSHandler struct + type WSServer struct + Addr string + CertFile string + HTTPTimeout time.Duration + KeyFile string + MaxConnNum int + MaxMsgLen uint32 + NewAgent func(*WSConn) Agent + TLS bool + func (server *WSServer) Close() + func (server *WSServer) Start()