A halfConn represents one direction of the record layer connection, either sending or receiving.
| 171 | // A halfConn represents one direction of the record layer |
| 172 | // connection, either sending or receiving. |
| 173 | type halfConn struct { |
| 174 | handshakeLen [7]int |
| 175 | handshakeBuf []byte |
| 176 | |
| 177 | sync.Mutex |
| 178 | |
| 179 | err error // first permanent error |
| 180 | version uint16 // protocol version |
| 181 | cipher any // cipher algorithm |
| 182 | mac hash.Hash |
| 183 | seq [8]byte // 64-bit sequence number |
| 184 | |
| 185 | scratchBuf [13]byte // to avoid allocs; interface method args escape |
| 186 | |
| 187 | nextCipher any // next encryption state |
| 188 | nextMac hash.Hash // next MAC algorithm |
| 189 | |
| 190 | level QUICEncryptionLevel // current QUIC encryption level |
| 191 | trafficSecret []byte // current TLS 1.3 traffic secret |
| 192 | } |
| 193 | |
| 194 | type permanentError struct { |
| 195 | err net.Error |
nothing calls this directly
no outgoing calls
no test coverage detected