MCPcopy Create free account
hub / github.com/XTLS/REALITY / Write

Method Write

record_detect.go:110–115  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

108}
109
110func (c *PostHandshakeRecordDetectConn) Write(b []byte) (n int, err error) {
111 if len(b) >= 3 && bytes.Equal(b[:3], []byte{20, 3, 3}) {
112 c.CcsSent = true
113 }
114 return c.Conn.Write(b)
115}
116
117func (c *PostHandshakeRecordDetectConn) Read(b []byte) (n int, err error) {
118 if !c.CcsSent {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected