Commit 1b5a2d8
committed
quic: packet encoding/decoding
Frame encoding is handled by the packetWriter type.
The packetWriter also takes responsibility for recording the contents
of constructed packets in a sentPacket structure.
Frame decoding is handled by consume*Frame functions, which generally
return the frame contents. ACK frames, which have complex contents,
are provided to the caller via callback function.
In addition to the above functions, used in the serving path, this
CL includes per-frame types that implement a common debugFrame
interface. These types are used for tests and debug logging, but
not in the serving path where we want to avoid allocations from
storing values in an interface.
For golang/go#58547
Change-Id: I03ce11210aa9aa6ac749a5273b2ba9dd9c6989cf
Reviewed-on: https://go-review.googlesource.com/c/net/+/495355
Reviewed-by: Jonathan Amsterdam <[email protected]>
Run-TryBot: Damien Neil <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>1 parent a233290 commit 1b5a2d8
File tree
4 files changed
+2290
-0
lines changed- internal/quic
4 files changed
+2290
-0
lines changed
0 commit comments