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

Function NewTLSConn

IceFireDB-SQLProxy/pkg/mysql/packet/conn.go:83–93  ·  view source on GitHub ↗
(conn net.Conn)

Source from the content-addressed store, hash-verified

81}
82
83func NewTLSConn(conn net.Conn) *Conn {
84 c := new(Conn)
85 c.Conn = conn
86
87 c.bufPool = NewBufPool()
88 c.reader = c
89
90 c.copyNBuf = make([]byte, 16*1024)
91
92 return c
93}
94
95func (c *Conn) ReadPacket() ([]byte, error) {
96 return c.ReadPacketReuseMem(nil)

Callers 4

ConnectFunction · 0.92
NewConnFunction · 0.92
NewCustomizedConnFunction · 0.92
NewClientConnFunction · 0.92

Calls 1

NewBufPoolFunction · 0.70

Tested by

no test coverage detected