report retransmissions separately to the sent packet handler

This commit is contained in:
Marten Seemann
2018-03-07 18:22:00 +07:00
parent dc4a9b1d86
commit 56720edc34
6 changed files with 69 additions and 26 deletions

View File

@@ -11,6 +11,7 @@ import (
type SentPacketHandler interface {
// SentPacket may modify the packet
SentPacket(packet *Packet)
SentPacketsAsRetransmission(packets []*Packet, retransmissionOf protocol.PacketNumber)
ReceivedAck(ackFrame *wire.AckFrame, withPacketNumber protocol.PacketNumber, encLevel protocol.EncryptionLevel, recvTime time.Time) error
SetHandshakeComplete()