GetNetworkStats: Difference between revisions
From Onset Developer Wiki
X7airworker (talk | contribs) No edit summary |
FlyingFork (talk | contribs) No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
for name, value in pairs(GetNetworkStats()) | |||
print(name .. " -> " .. value) | |||
do | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[GetPlayerNetworkStats]] | |||
* [[GetNetworkStats]] |
Latest revision as of 14:54, 26 June 2021
Description
Gets the clients' NetworkStats
Syntax
GetNetworkStats()
Parameters
- This function has no parameters.
Return Value
- packetlossTotal, packetlossLastSecond, messagesInResendBuffer, bytesInResendBuffer, bytesSend, bytesReceived, bytesResent, bytesSendTotal, bytesReceivedTotal, bytesResentTotal, isLimitedByCongestionControl, isLimitedByOutgoingBandwidthLimit
Example
for name, value in pairs(GetNetworkStats())
print(name .. " -> " .. value)
do