gcc

package
v0.0.0-...-beed344 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeasureRTT

func MeasureRTT(reportSent, reportReceived, latestAckedSent, latestAckedArrival time.Time) time.Duration

Types

type DelayRateController

type DelayRateController struct {
	// contains filtered or unexported fields
}

func NewDelayRateController

func NewDelayRateController(initialRate int) *DelayRateController

func (*DelayRateController) OnPacketAcked

func (c *DelayRateController) OnPacketAcked(ack cc.Acknowledgment)

func (*DelayRateController) Update

func (c *DelayRateController) Update(ts time.Time, lastDeliveryRate int, rtt time.Duration) int

type LossRateController

type LossRateController struct {
	// contains filtered or unexported fields
}

func NewLossRateController

func NewLossRateController(initialRate, minRate, maxRate int) *LossRateController

func (*LossRateController) OnPacketAcked

func (l *LossRateController) OnPacketAcked()

func (*LossRateController) OnPacketLost

func (l *LossRateController) OnPacketLost()

func (*LossRateController) Update

func (l *LossRateController) Update(lastDeliveryRate int) int

type SendSideController

type SendSideController struct {
	// contains filtered or unexported fields
}

func NewSendSideController

func NewSendSideController(initialRate, minRate, maxRate int) *SendSideController

func (*SendSideController) OnAcks

func (c *SendSideController) OnAcks(arrival time.Time, rtt time.Duration, acks []cc.Acknowledgment) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL