MCPcopy
hub / github.com/XTLS/REALITY / halfConn

Struct halfConn

conn.go:173–192  ·  view source on GitHub ↗

A halfConn represents one direction of the record layer connection, either sending or receiving.

Source from the content-addressed store, hash-verified

171// A halfConn represents one direction of the record layer
172// connection, either sending or receiving.
173type 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
194type permanentError struct {
195 err net.Error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected