Documentation ¶
Overview ¶
Package live provides implementations of the Sender and Receiver interfaces for live congestion control
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeLiveReceive ¶
func NewFakeLiveReceive(config ReceiveConfig) congestion.Receiver
func NewReceiver ¶
func NewReceiver(config ReceiveConfig) congestion.Receiver
NewReceiver takes a ReceiveConfig and returns a new Receiver
func NewSender ¶
func NewSender(config SendConfig) congestion.Sender
NewSender takes a SendConfig and returns a new Sender
Types ¶
type ReceiveConfig ¶
type ReceiveConfig struct { InitialSequenceNumber circular.Number PeriodicACKInterval uint64 // microseconds PeriodicNAKInterval uint64 // microseconds OnSendACK func(seq circular.Number, light bool) OnSendNAK func(from, to circular.Number) OnDeliver func(p packet.Packet) }
ReceiveConfig is the configuration for the liveRecv congestion control
Click to show internal directories.
Click to hide internal directories.