BidirectionalBandwidthStatsTracker
in package
Table of Contents
- $receive : BandwidthStatsTracker
- $send : BandwidthStatsTracker
- __construct() : mixed
- add() : void
- getReceive() : BandwidthStatsTracker
- getSend() : BandwidthStatsTracker
- resetHistory() : void
- rotateAverageHistory() : void
Properties
$receive
private
BandwidthStatsTracker
$receive
$send
private
BandwidthStatsTracker
$send
Methods
__construct()
public
__construct(int $historySize) : mixed
Parameters
- $historySize : int
Tags
Return values
mixed —add()
public
add(int $sendBytes, int $recvBytes) : void
Parameters
- $sendBytes : int
- $recvBytes : int
Return values
void —getReceive()
public
getReceive() : BandwidthStatsTracker
Return values
BandwidthStatsTracker —getSend()
public
getSend() : BandwidthStatsTracker
Return values
BandwidthStatsTracker —resetHistory()
public
resetHistory() : void
Tags
Return values
void —rotateAverageHistory()
public
rotateAverageHistory() : void