add bytes-in-flight calculation to SentPacketHandler

This commit is contained in:
Lucas Clemente
2016-04-28 22:28:42 +02:00
parent 34b2e5129c
commit 1535663fc5
5 changed files with 103 additions and 27 deletions

View File

@@ -13,6 +13,8 @@ type SentPacketHandler interface {
ReceivedAck(ackFrame *frames.AckFrame) (time.Duration, error)
DequeuePacketForRetransmission() (packet *Packet)
BytesInFlight() uint64
}
// ReceivedPacketHandler handles ACKs needed to send for incoming packets