Navigation
API > API/Runtime > API/Runtime/NetCore
The main DDoS detection tracking class, for counting packets and applying restrictions. Implemented separate to the NetDriver, to allow wider use e.g. potentially at socket level, if useful.
| Name | FDDoSDetection |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Misc/DDoSDetection.h |
| Include Path | #include "Net/Core/Misc/DDoSDetection.h" |
Syntax
class FDDoSDetection :
protected FDDoSPacketCounters ,
protected FDDoSState
Inheritance Hierarchy
- FDDoSPacketCounters → FDDoSDetection
- FDDoSState → FDDoSDetection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDDoSDetection() |
Default constructor | Net/Core/Misc/DDoSDetection.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NotifySeverityEscalation | FDDoSSeverityEscalation | Analytics delegate for notifying of severity state escalations | Net/Core/Misc/DDoSDetection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CheckLogRestrictions() |
Accessor for bDDoSLogRestrictions - doubles as a per-frame logspam counter, automatically disabling logs after a quota | Net/Core/Misc/DDoSDetection.h | |
void CondCheckNetConnLimits() |
Rate limited call to CheckNetConnLimits | Net/Core/Misc/DDoSDetection.h | |
void CondCheckNonConnQuotasAndLimits() |
Rate limited call to CheckNonConnQuotasAndLimits | Net/Core/Misc/DDoSDetection.h | |
int32 GetBadPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
int32 GetDisconnPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
int32 GetDroppedPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
int32 GetErrorPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
int32 GetNetConnPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
int32 GetNonConnPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
void IncBadPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
void IncDisconnPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
void IncDroppedPacketCounter
(
int32 Count |
Net/Core/Misc/DDoSDetection.h | ||
void IncErrorPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
void IncNetConnPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
void IncNonConnPacketCounter() |
Net/Core/Misc/DDoSDetection.h | ||
void Init
(
int32 MaxTickRate |
Initializes the DDoS detection settings | Net/Core/Misc/DDoSDetection.h | |
void InitConfig() |
Initializes the settings from the .ini file - must support reloading of settings on-the-fly | Net/Core/Misc/DDoSDetection.h | |
bool IsDDoSAnalyticsEnabled() |
Net/Core/Misc/DDoSDetection.h | ||
bool IsDDoSDetectionEnabled() |
Net/Core/Misc/DDoSDetection.h | ||
void PostFrameReceive() |
Triggered after packet receive ends, during the current frame | Net/Core/Misc/DDoSDetection.h | |
void PreFrameReceive
(
float DeltaTime |
Triggered before packet receive begins, during the current frame | Net/Core/Misc/DDoSDetection.h | |
void SetMaxTickRate
(
int32 MaxTickRate |
Initialize the expected tick rate. | Net/Core/Misc/DDoSDetection.h | |
bool ShouldBlockNetConnPackets() |
Net/Core/Misc/DDoSDetection.h | ||
bool ShouldBlockNonConnPackets() |
Net/Core/Misc/DDoSDetection.h | ||
void UpdateSeverity
(
bool bEscalate |
Updates the current DDoS detection severity state | Net/Core/Misc/DDoSDetection.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CheckNetConnLimits() |
Performs periodic checks on NetConnection packet limits | Net/Core/Misc/DDoSDetection.h | |
bool CheckNonConnQuotasAndLimits() |
Performs periodic checks on trigger quota's and packet limits, for non-NetConnection packets | Net/Core/Misc/DDoSDetection.h |