store the payload of sent packets as a slice of Frames

This commit is contained in:
Marten Seemann
2016-04-26 20:35:30 +07:00
parent eada642cc1
commit 4659bf7acb
5 changed files with 43 additions and 35 deletions

View File

@@ -1,11 +1,14 @@
package ackhandler
import "github.com/lucas-clemente/quic-go/protocol"
import (
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/protocol"
)
// A Packet is a packet
type Packet struct {
PacketNumber protocol.PacketNumber
Plaintext []byte
Frames []frames.Frame
EntropyBit bool
Entropy EntropyAccumulator