FLastmileProbeResult
Results of the uplink and downlink last-mile network tests.
USTRUCT(BlueprintType) struct FLastmileProbeResult { GENERATED_BODY() public: UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeResult") ELASTMILE_PROBE_RESULT_STATE state = ELASTMILE_PROBE_RESULT_STATE::LASTMILE_PROBE_RESULT_UNAVAILABLE; UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeResult") FLastmileProbeOneWayResult uplinkReport = FLastmileProbeOneWayResult(); UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeResult") FLastmileProbeOneWayResult downlinkReport = FLastmileProbeOneWayResult(); UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LastmileProbeResult") int64 rtt = 0; FLastmileProbeResult(){} FLastmileProbeResult(const agora::rtc::LastmileProbeResult & AgoraData){ state = static_cast<ELASTMILE_PROBE_RESULT_STATE>(AgoraData.state); uplinkReport = FLastmileProbeOneWayResult(AgoraData.uplinkReport); downlinkReport = FLastmileProbeOneWayResult(AgoraData.downlinkReport); rtt = AgoraData.rtt; } agora::rtc::LastmileProbeResult CreateAgoraData() const { agora::rtc::LastmileProbeResult AgoraData; AgoraData.state = static_cast<agora::rtc::LASTMILE_PROBE_RESULT_STATE>(state); AgoraData.uplinkReport = uplinkReport.CreateAgoraData(); AgoraData.downlinkReport = downlinkReport.CreateAgoraData(); AgoraData.rtt = rtt; return AgoraData; } void FreeAgoraData(agora::rtc::LastmileProbeResult & AgoraData) const { uplinkReport.FreeAgoraData(AgoraData.uplinkReport); downlinkReport.FreeAgoraData(AgoraData.downlinkReport); } };
Attributes
- state
-
The status of the last-mile network tests. See ELASTMILE_PROBE_RESULT_STATE.
- uplinkReport
- Results of the uplink last-mile network test. See FLastmileProbeOneWayResult.
- downlinkReport
- Results of the downlink last-mile network test. See FLastmileProbeOneWayResult.
- rtt
- The round-trip time (ms).