Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Net
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Net/NetPing.h |
| Include | #include "Net/NetPing.h" |
Syntax
class FNetPing
Remarks
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.
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FNetPing () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TPimplPtr< FNetPing > | CreateNetPing
(
UNetConnection* InOwner |
Creates a new FNetPing instance, owned by the specified NetConnection. | |
| EPingType | GetPingTypes () |
Returns the list of enabled ping types. | |
| FPingValues | GetPingValues
(
EPingType PingType |
Retrieves the ping results for the specified ping type, in seconds. | |
| void | HandleNetPingControlMessage
(
UNetConnection* Connection, |
Handles NMT_NetPing control channel messages, serverside/clientside. | |
| void | TickRealtime
(
double CurTimeSeconds |
Ticks the ping handler. | |
| void | UpdatePing
(
EPingType PingType, |
Updates the value of the specified ping type, with a new ping reading (in seconds). | |
| void | UpdatePingTimeout
(
EPingType PingType |
Records a ping timeout, for the specified ping type. |