make SentPacketHandler compute the delta between sent and ack time

This commit is contained in:
Lucas Clemente
2016-04-28 18:52:12 +02:00
parent c07ad6ab76
commit ac1affb940
5 changed files with 56 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
package ackhandler
import (
"time"
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/protocol"
)
@@ -8,7 +10,7 @@ import (
// SentPacketHandler handles ACKs received for outgoing packets
type SentPacketHandler interface {
SentPacket(packet *Packet) error
ReceivedAck(ackFrame *frames.AckFrame) error
ReceivedAck(ackFrame *frames.AckFrame) (time.Duration, error)
DequeuePacketForRetransmission() (packet *Packet)
}