FOnlinePingInterfaceSteam::GetPingFromHostData

Calculates the ping of this client using the given host's ping data obtained from GetHostPingData.

Windows
MacOS
Linux

References

Module

OnlineSubsystemSteam

Header

/Engine/Plugins/Online/OnlineSubsystemSteam/Source/Public/OnlinePingInterfaceSteam.h

Include

#include "OnlinePingInterfaceSteam.h"

Syntax

int32 GetPingFromHostData
(
    const FString & HostPingStr
) const

Remarks

Calculates the ping of this client using the given host's ping data obtained from GetHostPingData.

Returns

The ping value to the given host if it can be calculated, otherwise -1 on error.

Parameters

Parameter

Description

HostPingStr

The relay information blob we got from the host. This information should be directly serialized over the network and not tampered with.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss