Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information