Navigation
API > API/Runtime > API/Runtime/Engine
NetConnection Fault Recovery
Implements generic escalation handling for net faults, for all Engine level fault types - with the ability to extend with custom fault handling.
To add fault handling for custom netcode (e.g. new NetConnection's or PacketHandler components), create a new fault handler (with its own custom TNetResult etc.) added to FaultManager.
| Name | FNetConnectionFaultRecovery |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetConnectionFaultRecovery.h |
| Include Path | #include "Net/NetConnectionFaultRecovery.h" |
Syntax
class FNetConnectionFaultRecovery : public UE::Net::FNetConnectionFaultRecoveryBase
Inheritance Hierarchy
- FNetConnectionFaultRecoveryBaseFixLayout → FNetConnectionFaultRecoveryBase → FNetConnectionFaultRecovery
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConfigContext | FString | Additional context for altering this objects configuration (typically the NetDriver name) | Net/NetConnectionFaultRecovery.h | |
| Connection | UNetConnection * | Caches the owning NetConnection | Net/NetConnectionFaultRecovery.h | |
| DefaultFaultHandler | FDefaultFaultHandler | Default fault handler for FaultManager, for base NetConnection fault handling | Net/NetConnectionFaultRecovery.h | |
| InTotalHandlerPacketsPerSec | int32 | The current rate of NetConnection.InTotalHandlerPackets per second | Net/NetConnectionFaultRecovery.h | |
| LastInTotalHandlerPackets | int32 | Tracks the last read value of NetConnection.InTotalHandlerPackets, for calculating total packet counts between Tick's | Net/NetConnectionFaultRecovery.h | |
| LastInTotalHandlerPacketsPerSec | int32 | Tracks NetConnection.InTotalHandlerPackets over the course of the last second (for priming dormant escalation manager) | Net/NetConnectionFaultRecovery.h | |
| LastPerSecPacketCheck | double | Last time LastInTotalHandlerPacketsPerSec was updated | Net/NetConnectionFaultRecovery.h | |
| UNetConnection | friend | Net/NetConnectionFaultRecovery.h |