Versions in this module Expand all Collapse all v1 v1.6.1 Aug 23, 2022 Changes in this version + type BufPool struct + func NewBufPool() *BufPool + func (b *BufPool) Get() *bytes.Buffer + func (b *BufPool) Return(buf *bytes.Buffer) + type Conn struct + Sequence uint8 + func NewConn(conn net.Conn) *Conn + func NewTLSConn(conn net.Conn) *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