![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetPing.h>
Public Member Functions | |
| ~FNetPing () | |
| void | UpdatePing (EPingType PingType, double TimeVal, double PingValue) |
| void | UpdatePingTimeout (EPingType PingType) |
| ENGINE_API FPingValues | GetPingValues (EPingType PingType) const |
| void | TickRealtime (double CurTimeSeconds) |
| EPingType | GetPingTypes () const |
Static Public Member Functions | |
| static TPimplPtr< FNetPing > | CreateNetPing (UNetConnection *InOwner) |
| static ENGINE_API void | HandleNetPingControlMessage (UNetConnection *Connection, ENetPingControlMessage MessageType, FString MessageStr) |
Friends | |
| template<typename T > | |
| struct | UE::Core::Private::PimplPtr::TPimplHeapObjectImpl |
Central class for handling all Player/NetConnection ping collection and calculation. Can work with any NetDriver type (except ICMP), but restricted to GameNetDriver for now.
| UE::Net::FNetPing::~FNetPing | ( | ) |
|
static |
|
inline |
Returns the list of enabled ping types.
| FPingValues UE::Net::FNetPing::GetPingValues | ( | EPingType | PingType | ) | const |
Retrieves the ping results for the specified ping type, in seconds.
| PingType | The type of ping to retrieve results for. |
|
static |
Handles NMT_NetPing control channel messages, serverside/clientside.
| Connection | The connection that received the message |
| MessageType | The type of message received |
| MessageStr | The message content. |
Ticks the ping handler.
| CurTimeSeconds | The current time in seconds. |
Updates the value of the specified ping type, with a new ping reading (in seconds).
| PingType | The type of ping being updated. |
| TimeVal | The time that the ping reading was calculated. |
| PingValue | The value of the new ping reading, in seconds. |
Records a ping timeout, for the specified ping type.
| PingType | The type of ping which timed out. |
|
friend |