simplify session by moving packet packing to separate class

This commit is contained in:
Lucas Clemente
2016-04-20 17:18:36 +02:00
parent e5559d37d3
commit 3b2d0efea5
4 changed files with 267 additions and 121 deletions

View File

@@ -11,3 +11,9 @@ type StreamID uint32
// An ErrorCode in QUIC
type ErrorCode uint32
// MaxPacketSize is the maximum packet size, including the public header
const MaxPacketSize = 1452
// MaxFrameSize is the maximum size of a QUIC frame
const MaxFrameSize = MaxPacketSize - (1 + 8 + 6) /*public header*/ - 1 /*private header*/ - 12 /*crypto signature*/