Source File
interface.go
Belonging Package
github.com/quic-go/quic-go/internal/congestion
package congestionimport ()// A SendAlgorithm performs congestion controltype SendAlgorithm interface {TimeUntilSend(bytesInFlight protocol.ByteCount) monotime.TimeHasPacingBudget(now monotime.Time) boolOnPacketSent(sentTime monotime.Time, bytesInFlight protocol.ByteCount, packetNumber protocol.PacketNumber, bytes protocol.ByteCount, isRetransmittable bool)CanSend(bytesInFlight protocol.ByteCount) boolMaybeExitSlowStart()OnPacketAcked(number protocol.PacketNumber, ackedBytes protocol.ByteCount, priorInFlight protocol.ByteCount, eventTime monotime.Time)OnCongestionEvent(number protocol.PacketNumber, lostBytes protocol.ByteCount, priorInFlight protocol.ByteCount)OnRetransmissionTimeout(packetsRetransmitted bool)SetMaxDatagramSize(protocol.ByteCount)}// A SendAlgorithmWithDebugInfos is a SendAlgorithm that exposes some debug infostype SendAlgorithmWithDebugInfos interface {SendAlgorithmInSlowStart() boolInRecovery() boolGetCongestionWindow() protocol.ByteCount}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |