add a function to drop sent packets of a certain encryption level

This commit is contained in:
Marten Seemann
2019-05-30 01:01:27 +08:00
parent 195bdc9944
commit 4d5b4fd790
5 changed files with 62 additions and 40 deletions

View File

@@ -14,7 +14,7 @@ type SentPacketHandler interface {
SentPacketsAsRetransmission(packets []*Packet, retransmissionOf protocol.PacketNumber)
ReceivedAck(ackFrame *wire.AckFrame, withPacketNumber protocol.PacketNumber, encLevel protocol.EncryptionLevel, recvTime time.Time) error
SetMaxAckDelay(time.Duration)
SetHandshakeComplete()
DropPackets(protocol.EncryptionLevel)
ResetForRetry() error
// The SendMode determines if and what kind of packets can be sent.