writeRecord writes a TLS record with the given type and payload to the connection and updates the record layer state.
(typ recordType, data []byte)
| 1245 | // writeRecord writes a TLS record with the given type and payload to the |
| 1246 | // connection and updates the record layer state. |
| 1247 | func (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. |
no test coverage detected