GetNetworkStats: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
table getNetworkStats ( element thePlayer ) | table getNetworkStats ( [ element thePlayer = nil ] ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
===Optional Arguments=== | |||
*'''thePlayer:''' The player you want to retrieve network stats from. | |||
===Returns=== | ===Returns=== | ||
Line 34: | Line 37: | ||
* "encryptionStatus" | * "encryptionStatus" | ||
==Example== | |||
TODO. | |||
<syntaxhighlight lang="lua"> | |||
-- This example does boo booo | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{Client_utility_functions}} | {{Client_utility_functions}} |
Revision as of 09:43, 12 August 2011
This function returns network status information.
Available in 1.1 and onwards
Syntax
Click to collapse [-]
Clienttable getNetworkStats ( )
Click to collapse [-]
Servertable getNetworkStats ( [ element thePlayer = nil ] )
Optional Arguments
- thePlayer: The player you want to retrieve network stats from.
Returns
Returns a table of network information:
- "bytesReceived"
- "bytesSent"
- "packetsReceived"
- "packetsSent"
- "packetlossTotal"
- "packetlossLastSecond"
- "messagesInSendBuffer"
- "messagesInResendBuffer"
- "isLimitedByCongestionControl"
- "isLimitedByOutgoingBandwidthLimit"
- "encryptionStatus"
Example
TODO.
-- This example does boo booo
See Also
- createTrayNotification
- downloadFile
- getDevelopmentMode
- getKeyboardLayout
- getLocalization
- isShowCollisionsEnabled
- isShowSoundEnabled
- isTransferBoxAlwaysVisible
- isTransferBoxVisible
- isTrayNotificationEnabled
- setClipboard
- setDevelopmentMode
- setTransferBoxVisible
- setWindowFlashing
- showCol
- showSound
- Shared
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace