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

Method writeRecord

conn.go:1247–1252  ·  view source on GitHub ↗

writeRecord writes a TLS record with the given type and payload to the connection and updates the record layer state.

(typ recordType, data []byte)

Source from the content-addressed store, hash-verified

1245// writeRecord writes a TLS record with the given type and payload to the
1246// connection and updates the record layer state.
1247func (c *Conn) writeRecord(typ recordType, data []byte) (int, error) {
1248 c.out.Lock()
1249 defer c.out.Unlock()
1250
1251 return c.writeRecordLocked(typ, data)
1252}
1253
1254// readHandshake reads the next handshake message from
1255// the record layer.

Callers 15

clientHandshakeMethod · 0.95
doFullHandshakeMethod · 0.80
sendFinishedMethod · 0.80
sendClientCertificateMethod · 0.80
sendClientFinishedMethod · 0.80
doHelloRetryRequestMethod · 0.80
sendServerParametersMethod · 0.80
sendServerCertificateMethod · 0.80
sendServerFinishedMethod · 0.80

Calls 1

writeRecordLockedMethod · 0.95

Tested by

no test coverage detected