Versions in this module Expand all Collapse all v1 v1.8.1 Sep 1, 2024 Changes in this version + const DefaultBufferSize + const MinCompressionLength + type Conn struct + CompressedSequence uint8 + Compression uint8 + Sequence uint8 + func NewBufferedConn(conn net.Conn, bufferSize int) *Conn + func NewConn(conn net.Conn) *Conn + func NewConnWithTimeout(conn net.Conn, readTimeout, writeTimeout time.Duration, bufferSize int) *Conn + func NewTLSConn(conn net.Conn) *Conn + func NewTLSConnWithTimeout(conn net.Conn, readTimeout, writeTimeout time.Duration) *Conn + func (c *Conn) Close() error + func (c *Conn) ReadPacket() ([]byte, error) + func (c *Conn) ReadPacketReuseMem(dst []byte) ([]byte, error) + func (c *Conn) ReadPacketTo(w io.Writer) error + func (c *Conn) ResetSequence() + func (c *Conn) WriteAuthSwitchPacket(authData []byte, addNUL bool) error + func (c *Conn) WriteClearAuthPacket(password string) error + func (c *Conn) WriteEncryptedPassword(password string, seed []byte, pub *rsa.PublicKey) error + func (c *Conn) WritePacket(data []byte) error + func (c *Conn) WritePublicKeyAuthPacket(password string, cipher []byte) error