Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RplConnectionStats Interface Reference
Inheritance diagram for RplConnectionStats:
[legend]

Public Member Functions

proto external float GetRoundTripTimeInMs ()
 Gets round-trip time (ping) of the connection.
 
proto external float GetPacketLoss ()
 Gets ratio of packets sent that did not reach the destination.
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Member Function Documentation

◆ GetPacketLoss()

proto external float RplConnectionStats.GetPacketLoss ( )

Gets ratio of packets sent that did not reach the destination.

Ratio is value ranging from 0 (no packets are getting lost) to 1 (all packets are getting lost).

Returns
Packet loss ratio in range 0 to 1.

◆ GetRoundTripTimeInMs()

proto external float RplConnectionStats.GetRoundTripTimeInMs ( )

Gets round-trip time (ping) of the connection.

Round-trip time says how much time it takes for a packet to travel over network from starting point to its destination and then back again to the starting point.

Returns
Round-trip time in milliseconds.

The documentation for this interface was generated from the following file: