TCCC Agent API
Public Attributes | List of all members
tccc::TCCCSpeedTestResult Struct Reference

#include <TCCCTypeDef.h>

Public Attributes

bool success
 测试是否成功。
 
const char * errMsg
 带宽测试错误信息。
 
const char * ip
 服务器 IP 地址。
 
TCCCQuality quality
 内部通过评估算法测算出的网络质量,更多信息请参见 TCCCQuality
 
float upLostRate
 上行丢包率,取值范围是 [0 - 1.0],例如 0.3 表示每向服务器发送 10 个数据包可能会在中途丢失 3 个。
 
float downLostRate
 下行丢包率,取值范围是 [0 - 1.0],例如 0.2 表示每从服务器收取 10 个数据包可能会在中途丢失 2 个。
 
int rtt
 延迟(毫秒),指当前设备到 RTC 服务器的一次网络往返时间,该值越小越好,正常数值范围是10ms - 100ms。
 
int availableUpBandwidth
 上行带宽(kbps,-1:无效值)。
 
int availableDownBandwidth
 下行带宽(kbps,-1:无效值)。
 

Detailed Description

5.8 网络测速结果

您可以在用户进入房间前通过 startSpeedTest: 接口进行测速(注意:请不要在通话中调用)。


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