forked from quic-go/quic-go
simplify session by moving packet packing to separate class
This commit is contained in:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user