Difference between revisions of "GetNetworkStats"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} This function returns network status information. {{New feature|3.0110|1.1| Available in 1.1 and onwards }} ==Syntax== <section name="Clien...")
 
m
Line 10: Line 10:
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
table getNetworkStats()
table getNetworkStats ( )
</syntaxhighlight>
</syntaxhighlight>
</section>
</section>
<section name="Server" class="server" show="true">
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
table getNetworkStats(element Player)
table getNetworkStats ( element thePlayer )
</syntaxhighlight>
</syntaxhighlight>
</section>
</section>

Revision as of 10:40, 10 August 2011

This function returns network status information.

Available in 1.1 and onwards

Syntax

Click to collapse [-]
Client
table getNetworkStats ( )
Click to collapse [-]
Server
table getNetworkStats ( element thePlayer )

Returns

Returns a table of network information:

  • "bytesReceived"
  • "bytesSent"
  • "packetsReceived"
  • "packetsSent"
  • "packetlossTotal"
  • "packetlossLastSecond"
  • "messagesInSendBuffer"
  • "messagesInResendBuffer"
  • "isLimitedByCongestionControl"
  • "isLimitedByOutgoingBandwidthLimit"
  • "encryptionStatus"

Note: this page is unfinished (not sure on the actual table structure)

See Also

FROM VERSION 1.5.8 r20788 ONWARDS
FROM VERSION 1.5.8 r20788 ONWARDS