inetchannelinfo

Functions

GetName

Returns:

Type

Description

string

current channel name

Code:

local pNetChannelInfo = IEngine.GetNetChannelInfo()
local szChannelName = pNetChannelInfo:GetName()
print(szChannelName)

GetAddress

Returns:

Type

Description

string

current channel IP address

Code:

local pNetChannelInfo = IEngine.GetNetChannelInfo()
local szServerIP = pNetChannelInfo:GetAddress()
print(szServerIP)

IsLoopback

Returns:

Type

Description

bool

true if channel is loopback

Code:

IsPlayback

Returns:

Type

Description

bool

true if demo playback

Code:

GetLatency

Parameters:

Name

Type

Description

iFlow

int

flow type

Returns:

Type

Description

float

current latency (RTT)

Code:

GetAvgLatency

Parameters:

Name

Type

Description

iFlow

int

flow type

Returns:

Type

Description

float

average packet latency in seconds

Code:

GetAvgLoss

Parameters:

Name

Type

Description

iFlow

int

flow type

Returns:

Type

Description

float

average packet loss [0..1]

Code:

GetAvgChoke

Parameters:

Name

Type

Description

iFlow

int

flow type

Returns:

Type

Description

float

average packet choke [0..1]

Code:

GetAvgData

Parameters:

Name

Type

Description

iFlow

int

flow type

Returns:

Type

Description

float

data flow in bytes/sec

Code:

GetAvgPackets

Parameters:

Name

Type

Description

iFlow

int

flow type

Returns:

Type

Description

float

average packets/sec

Code:

Last updated

Was this helpful?