PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\network\BidirectionalBandwidthStatsTracker Class Reference
+ Collaboration diagram for pocketmine\network\BidirectionalBandwidthStatsTracker:

Public Member Functions

 __construct (int $historySize)
 
 add (int $sendBytes, int $recvBytes)
 
 getReceive ()
 
 getSend ()
 
 resetHistory ()
 
 rotateAverageHistory ()
 

Detailed Description

Definition at line 26 of file BidirectionalBandwidthStatsTracker.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\BidirectionalBandwidthStatsTracker::__construct ( int $historySize)

@phpstan-param positive-int $historySize

Definition at line 31 of file BidirectionalBandwidthStatsTracker.php.

Member Function Documentation

◆ add()

pocketmine\network\BidirectionalBandwidthStatsTracker::add ( int $sendBytes,
int $recvBytes )

Definition at line 40 of file BidirectionalBandwidthStatsTracker.php.

◆ getReceive()

pocketmine\network\BidirectionalBandwidthStatsTracker::getReceive ( )

Definition at line 38 of file BidirectionalBandwidthStatsTracker.php.

◆ getSend()

pocketmine\network\BidirectionalBandwidthStatsTracker::getSend ( )

Definition at line 36 of file BidirectionalBandwidthStatsTracker.php.

◆ resetHistory()

pocketmine\network\BidirectionalBandwidthStatsTracker::resetHistory ( )
See also
BandwidthStatsTracker::resetHistory()

Definition at line 52 of file BidirectionalBandwidthStatsTracker.php.

◆ rotateAverageHistory()

pocketmine\network\BidirectionalBandwidthStatsTracker::rotateAverageHistory ( )
See also
BandwidthStatsTracker::rotateHistory()

Definition at line 46 of file BidirectionalBandwidthStatsTracker.php.


The documentation for this class was generated from the following file: