MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Conn

Struct Conn

IceFireDB-SQLite/pkg/mysql/packet/conn.go:51–68  ·  view source on GitHub ↗

* Conn is the base class to handle MySQL protocol. */

Source from the content-addressed store, hash-verified

49Conn is the base class to handle MySQL protocol.
50*/
51type Conn struct {
52 net.Conn
53
54 // we removed the buffer reader because it will cause the SSLRequest to block (tls connection handshake won't be
55 // able to read the "Client Hello" data since it has been buffered into the buffer reader)
56
57 bufPool *BufPool
58 br *bufio.Reader
59 reader io.Reader
60
61 copyNBuf []byte
62
63 header [4]byte
64
65 Sequence uint8
66
67 pkgErr error
68}
69
70func NewConn(conn net.Conn) *Conn {
71 c := new(Conn)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected