add cubic_sender plus initial test

This commit is contained in:
Lucas Clemente
2016-04-25 11:49:37 +02:00
parent 6eeccfd123
commit c641e24e8c
8 changed files with 171 additions and 18 deletions

13
congestion/interface.go Normal file
View File

@@ -0,0 +1,13 @@
package congestion
import (
"time"
"github.com/lucas-clemente/quic-go/protocol"
)
type SendAlgorithm interface {
TimeUntilSend(now time.Time, bytesInFlight uint64) time.Duration
OnPacketSent(sentTime time.Time, bytesInFlight uint64, packetNumber protocol.PacketNumber, bytes uint64, isRetransmittable bool) bool
GetCongestionWindow() uint64
}