Documentation ¶
Index ¶
- type BrutalSender
- func (b *BrutalSender) CanSend(bytesInFlight congestion.ByteCount) bool
- func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount
- func (b *BrutalSender) HasPacingBudget(now time.Time) bool
- func (b *BrutalSender) InRecovery() bool
- func (b *BrutalSender) InSlowStart() bool
- func (b *BrutalSender) MaybeExitSlowStart()
- func (b *BrutalSender) OnCongestionEvent(number congestion.PacketNumber, lostBytes congestion.ByteCount, ...)
- func (b *BrutalSender) OnCongestionEventEx(priorInFlight congestion.ByteCount, eventTime time.Time, ...)
- func (b *BrutalSender) OnPacketAcked(number congestion.PacketNumber, ackedBytes congestion.ByteCount, ...)
- func (b *BrutalSender) OnPacketSent(sentTime time.Time, bytesInFlight congestion.ByteCount, ...)
- func (b *BrutalSender) OnRetransmissionTimeout(packetsRetransmitted bool)
- func (b *BrutalSender) SetMaxDatagramSize(size congestion.ByteCount)
- func (b *BrutalSender) SetRTTStatsProvider(rttStats congestion.RTTStatsProvider)
- func (b *BrutalSender) TimeUntilSend(bytesInFlight congestion.ByteCount) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrutalSender ¶
type BrutalSender struct {
// contains filtered or unexported fields
}
func NewBrutalSender ¶
func NewBrutalSender(bps congestion.ByteCount) *BrutalSender
func (*BrutalSender) CanSend ¶
func (b *BrutalSender) CanSend(bytesInFlight congestion.ByteCount) bool
func (*BrutalSender) GetCongestionWindow ¶
func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount
func (*BrutalSender) HasPacingBudget ¶
func (b *BrutalSender) HasPacingBudget(now time.Time) bool
func (*BrutalSender) InRecovery ¶
func (b *BrutalSender) InRecovery() bool
func (*BrutalSender) InSlowStart ¶
func (b *BrutalSender) InSlowStart() bool
func (*BrutalSender) MaybeExitSlowStart ¶
func (b *BrutalSender) MaybeExitSlowStart()
func (*BrutalSender) OnCongestionEvent ¶
func (b *BrutalSender) OnCongestionEvent(number congestion.PacketNumber, lostBytes congestion.ByteCount, priorInFlight congestion.ByteCount)
func (*BrutalSender) OnCongestionEventEx ¶
func (b *BrutalSender) OnCongestionEventEx(priorInFlight congestion.ByteCount, eventTime time.Time, ackedPackets []congestion.AckedPacketInfo, lostPackets []congestion.LostPacketInfo)
func (*BrutalSender) OnPacketAcked ¶
func (b *BrutalSender) OnPacketAcked(number congestion.PacketNumber, ackedBytes congestion.ByteCount, priorInFlight congestion.ByteCount, eventTime time.Time)
func (*BrutalSender) OnPacketSent ¶
func (b *BrutalSender) OnPacketSent(sentTime time.Time, bytesInFlight congestion.ByteCount, packetNumber congestion.PacketNumber, bytes congestion.ByteCount, isRetransmittable bool)
func (*BrutalSender) OnRetransmissionTimeout ¶
func (b *BrutalSender) OnRetransmissionTimeout(packetsRetransmitted bool)
func (*BrutalSender) SetMaxDatagramSize ¶
func (b *BrutalSender) SetMaxDatagramSize(size congestion.ByteCount)
func (*BrutalSender) SetRTTStatsProvider ¶
func (b *BrutalSender) SetRTTStatsProvider(rttStats congestion.RTTStatsProvider)
func (*BrutalSender) TimeUntilSend ¶
func (b *BrutalSender) TimeUntilSend(bytesInFlight congestion.ByteCount) time.Time
Click to show internal directories.
Click to hide internal directories.