From 42a1de6ba8259a6fa4909f59e3fe2eb5f96d6a01 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Thu, 28 Apr 2016 22:30:57 +0200 Subject: [PATCH] congestion interface cosmetics --- congestion/interface.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/congestion/interface.go b/congestion/interface.go index 8860a9dea..479350d5c 100644 --- a/congestion/interface.go +++ b/congestion/interface.go @@ -14,14 +14,16 @@ type SendAlgorithm interface { BandwidthEstimate() Bandwidth SetNumEmulatedConnections(n int) OnRetransmissionTimeout(packetsRetransmitted bool) - InRecovery() bool OnConnectionMigration() RetransmissionDelay() time.Duration // Experiments SetSlowStartLargeReduction(enabled bool) - HybridSlowStart() *HybridSlowStart // only for testing - SlowstartThreshold() protocol.PacketNumber // only for testing - RenoBeta() float32 // only for testing + // Stuff only used in testing + // TODO: Maybe make CubicSender public and typeassert in tests? + HybridSlowStart() *HybridSlowStart + SlowstartThreshold() protocol.PacketNumber + RenoBeta() float32 + InRecovery() bool }