Versions in this module Expand all Collapse all v0 v0.1.0 Nov 19, 2023 Changes in this version + func NewCubicSender(clock Clock, rttStats *utils.RTTStats, ...) *cubicSender + type Bandwidth uint64 + const BitsPerSecond + const BytesPerSecond + func BandwidthFromDelta(bytes protocol.ByteCount, delta time.Duration) Bandwidth + type Clock interface + Now func() time.Time + type Cubic struct + func NewCubic(clock Clock) *Cubic + func (c *Cubic) CongestionWindowAfterAck(ackedBytes protocol.ByteCount, currentCongestionWindow protocol.ByteCount, ...) protocol.ByteCount + func (c *Cubic) CongestionWindowAfterPacketLoss(currentCongestionWindow protocol.ByteCount) protocol.ByteCount + func (c *Cubic) OnApplicationLimited() + func (c *Cubic) Reset() + func (c *Cubic) SetNumConnections(n int) + type DefaultClock struct + func (DefaultClock) Now() time.Time + type HybridSlowStart struct + func (s *HybridSlowStart) IsEndOfRound(ack protocol.PacketNumber) bool + func (s *HybridSlowStart) OnPacketAcked(ackedPacketNumber protocol.PacketNumber) + func (s *HybridSlowStart) OnPacketSent(packetNumber protocol.PacketNumber) + func (s *HybridSlowStart) Restart() + func (s *HybridSlowStart) ShouldExitSlowStart(latestRTT time.Duration, minRTT time.Duration, ...) bool + func (s *HybridSlowStart) StartReceiveRound(lastSent protocol.PacketNumber) + func (s *HybridSlowStart) Started() bool + type SendAlgorithm interface + CanSend func(bytesInFlight protocol.ByteCount) bool + HasPacingBudget func(now time.Time) bool + MaybeExitSlowStart func() + OnCongestionEvent func(number protocol.PacketNumber, lostBytes protocol.ByteCount, ...) + OnPacketAcked func(number protocol.PacketNumber, ackedBytes protocol.ByteCount, ...) + OnPacketSent func(sentTime time.Time, bytesInFlight protocol.ByteCount, ...) + OnRetransmissionTimeout func(packetsRetransmitted bool) + SetMaxDatagramSize func(protocol.ByteCount) + TimeUntilSend func(bytesInFlight protocol.ByteCount) time.Time + type SendAlgorithmWithDebugInfos interface + GetCongestionWindow func() protocol.ByteCount + InRecovery func() bool + InSlowStart func() bool