implement a buffer for received StreamFrames

fixes #116, ref #115
This commit is contained in:
Marten Seemann
2016-06-01 14:33:12 +07:00
parent 2f49a9525a
commit 9476ae499c
8 changed files with 718 additions and 49 deletions

View File

@@ -1,6 +1,9 @@
package protocol
import "time"
import (
"math"
"time"
)
// A PacketNumber in QUIC
type PacketNumber uint64
@@ -30,6 +33,9 @@ type StreamID uint32
// A ByteCount in QUIC
type ByteCount uint64
// MaxByteCount is the maximum value of a ByteCount
const MaxByteCount = math.MaxUint64
// MaxPacketSize is the maximum packet size, including the public header
const MaxPacketSize ByteCount = 1452