/** * Returns a struct containing the networks stats of the server. * Only available to SuperAdmin. * @param bool $multicall * @return Structures\NetworkStats */ function getNetworkStats($multicall = false) { if ($multicall) { return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('NetworkStats')); } return Structures\NetworkStats::fromArray($this->execute(ucfirst(__FUNCTION__))); }
/** * Returns an object Structures\NetworkStats. * The structure contains the following fields : Uptime, NbrConnection, MeanConnectionTime, MeanNbrPlayer, * RecvNetRate, SendNetRate, TotalReceivingSize, TotalSendingSize and an array of structures named PlayerNetInfos. * Each structure of the array PlayerNetInfos is a Structures\Player object contains the following fields : Login, IPAddress, LastTransferTime, DeltaBetweenTwoLastNetState, PacketLossRate. * @return Structures\NetworkStats */ function getNetworkStats() { return Structures\NetworkStats::fromArray($this->execute(ucfirst(__FUNCTION__))); }