Skip to content

BidirectionalBandwidthStatsTracker ​

final class · pocketmine\network\BidirectionalBandwidthStatsTracker · source

Methods ​

__construct() ​

php
public function __construct(int $historySize)

add() ​

php
public function add(int $sendBytes, int $recvBytes) : void

getReceive() ​

php
public function getReceive() : \pocketmine\network\BandwidthStatsTracker

getSend() ​

php
public function getSend() : \pocketmine\network\BandwidthStatsTracker

resetHistory() ​

php
public function resetHistory() : void

rotateAverageHistory() ​

php
public function rotateAverageHistory() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.