crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Files
🤬
Sign In
2d1a82ee
ROOT
/
transport
/
hysteria
/
brutal.go
Search
History
150 lines
|
ISO-8859-1
|
3 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
initMaxDatagramSize
pktInfoSlotCount
minSampleCount
minAckRate
BrutalSender
rttStats
:
congestion.RTTStatsProvider
bps
:
congestion.ByteCount
maxDatagramSize
:
congestion.ByteCount
pacer
:
*pacer
pktInfoSlots
:
[pktInfoSlotCount]pktInfo
ackRate
:
float64
pktInfo
Timestamp
:
int64
AckCount
:
uint64
LossCount
:
uint64
NewBrutalSender
(bps congestion.ByteCount)
:
*BrutalSender
maxDuration
(a, b time.Duration)
:
time.Duration
*BrutalSender
SetRTTStatsProvider
(rttStats congestion.RTTStatsProvider)
TimeUntilSend
(bytesInFlight congestion.ByteCount)
:
time.Time
HasPacingBudget
()
:
bool
CanSend
(bytesInFlight congestion.ByteCount)
:
bool
GetCongestionWindow
()
:
congestion.ByteCount
OnPacketSent
(sentTime time.Time, bytesInFlight congestion.ByteCount, packetNumber congestion.PacketNumber, bytes congestion.ByteCount, isRetransmittable bool, )
OnPacketAcked
(number congestion.PacketNumber, ackedBytes congestion.ByteCount, priorInFlight congestion.ByteCount, eventTime time.Time, )
OnPacketLost
(number congestion.PacketNumber, lostBytes congestion.ByteCount, priorInFlight congestion.ByteCount, )
SetMaxDatagramSize
(size congestion.ByteCount)
updateAckRate
(currentTimestamp int64)
InSlowStart
()
:
bool
InRecovery
()
:
bool
MaybeExitSlowStart
()
OnRetransmissionTimeout
(packetsRetransmitted bool)
All occurrences
Please wait...
Page is in error, reload to recover