INetChannelInfo
Fields
This class has no fields.
Enums
e_flow_types
Name |
Value |
Description |
out |
0 |
|
in |
1 |
|
all |
2 |
in & out |
Functions
GetName
This function has no parameters.
Return value
Name |
Type |
Description |
value |
string |
Channel name |
local net_chan = EngineClient.GetNetChannelInfo()
local net_name = net_chan:GetName()
print(net_name)
GetAddress
This function has no parameters.
Return value
Name |
Type |
Description |
value |
string |
IP Address |
local net_chan = EngineClient.GetNetChannelInfo()
local server_ip = net_chan:GetAddress()
print(server_ip)
IsPlayback
This function has no parameters.
Return value
Name |
Type |
Description |
value |
bool |
- |
local net_chan = EngineClient.GetNetChannelInfo()
local playback = net_chan:IsPlayback()
print(playback)
GetLatency
Return value
Name |
Type |
Description |
value |
float |
Current latency (RTT), more accurate but jittering |
local net_chan = EngineClient.GetNetChannelInfo()
local ping = net_chan:GetLatency(e_flow_types.out)
print(ping)
GetAvgLatency
Return value
Name |
Type |
Description |
value |
float |
Current average latency (RTT), more accurate but jittering |
local net_chan = EngineClient.GetNetChannelInfo()
local avg_ping = net_chan:GetAvgLatency(e_flow_types.out)
print(avg_ping)
GetAvgLoss
Return value
Name |
Type |
Description |
value |
float |
Avg packet loss [0..1] |
local net_chan = EngineClient.GetNetChannelInfo()
local avg_loss = net_chan:GetAvgLoss(e_flow_types.out)
print(avg_loss)
GetAvgChoke
Return value
Name |
Type |
Description |
value |
float |
Avg packet choke [0..1] |
local net_chan = EngineClient.GetNetChannelInfo()
local avg_choke = net_chan:GetAvgChoke(e_flow_types.out)
print(avg_choke)
GetAvgData
Return value
Name |
Type |
Description |
value |
float |
Data flow in bytes/sec |
local net_chan = EngineClient.GetNetChannelInfo()
local avg_data = net_chan:GetAvgData(e_flow_types.out)
print(avg_data)
GetAvgPackets
Return value
Name |
Type |
Description |
value |
float |
Avg packets/sec |
local net_chan = EngineClient.GetNetChannelInfo()
local avg_packets = net_chan:GetAvgPackets(e_flow_types.out)
print(avg_packets)
GetTotalData
Return value
Name |
Type |
Description |
value |
float |
Total flow in/out in bytes |
local net_chan = EngineClient.GetNetChannelInfo()
local totaldata = net_chan:GetTotalData(e_flow_types.out)
print(totaldata)