Versions in this module Expand all Collapse all v1 v1.0.5 Jul 13, 2022 Changes in this version + var ErrConnClosed = errors.New("connection closed") + func Connect(conn net.Conn, host string, port uint16) (net.Conn, error) + func GenDefaultHtml(remoteAddrStr string) string + func GenDefaultHttpHeader(contentLength int) string + func GenDefaultHttpResponse(remoteAddrStr string) string + type Client struct + func NewClient(address string, password []byte, tlsConfig *tls.Config) (*Client, error) + func (c *Client) Dial() (net.Conn, error) + type Conn struct + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(b []byte) (n int, err error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Write(b []byte) (n int, err error) + type Response uint8 + func (r Response) Error() string + type Server struct + func NewServer(address string, password []byte, tlsConfig *tls.Config) (*Server, error) + func (s *Server) Close() + func (s *Server) ListenAndServe() error