MCPcopy Create free account
hub / github.com/XTLS/Go / newRecordHeaderError

Method newRecordHeaderError

conn.go:599–604  ·  view source on GitHub ↗
(conn net.Conn, msg string)

Source from the content-addressed store, hash-verified

597func (e RecordHeaderError) Error() string { return "tls: " + e.Msg }
598
599func (c *Conn) newRecordHeaderError(conn net.Conn, msg string) (err RecordHeaderError) {
600 err.Msg = msg
601 err.Conn = conn
602 copy(err.RecordHeader[:], c.rawInput.Bytes())
603 return err
604}
605
606func (c *Conn) readRecord() error {
607 return c.readRecordOrCCS(false)

Callers 1

readRecordOrCCSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected