5#include "Containers/Array.h"
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:48
return true
Definition ExternalRpcRegistry.cpp:601
void Init()
Definition LockFreeList.h:4
Definition DDoSDetection.h:173
int32 StartFramePacketCount
Definition DDoSDetection.h:359
double LastPerSecQuotaBegin
Definition DDoSDetection.h:343
bool CheckNetConnLimits()
Definition DDoSDetection.h:284
int8 HitchFrameTolerance
Definition DDoSDetection.h:336
bool ShouldBlockNonConnPackets() const
Definition DDoSDetection.h:255
int32 GetNetConnPacketCounter() const
Definition DDoSDetection.h:261
void IncDisconnPacketCounter()
Definition DDoSDetection.h:262
int32 GetErrorPacketCounter() const
Definition DDoSDetection.h:267
NETCORE_API void PreFrameReceive(float DeltaTime)
Definition DDoSDetection.cpp:262
int32 LogHitCounter
Definition DDoSDetection.h:329
double StartFrameRecvTimestamp
Definition DDoSDetection.h:353
int32 HitchTimeQuotaMS
Definition DDoSDetection.h:333
int8 WorstActiveState
Definition DDoSDetection.h:313
int32 DDoSLogSpamLimit
Definition DDoSDetection.h:326
NETCORE_API void UpdateSeverity(bool bEscalate)
Definition DDoSDetection.cpp:178
double LastMetEscalationConditions
Definition DDoSDetection.h:316
NETCORE_API bool CheckNonConnQuotasAndLimits()
Definition DDoSDetection.cpp:353
bool bDDoSLogRestrictions
Definition DDoSDetection.h:323
NETCORE_API void SetMaxTickRate(int32 MaxTickRate)
Definition DDoSDetection.cpp:173
FDDoSSeverityEscalation NotifySeverityEscalation
Definition DDoSDetection.h:370
void IncErrorPacketCounter()
Definition DDoSDetection.h:266
double ExpectedFrameTime
Definition DDoSDetection.h:362
int32 GetNonConnPacketCounter() const
Definition DDoSDetection.h:259
bool IsDDoSDetectionEnabled() const
Definition DDoSDetection.h:253
NETCORE_API void InitConfig()
Definition DDoSDetection.cpp:100
TArray< FDDoSPacketCounters > CounterPerSecHistory
Definition DDoSDetection.h:346
bool bMetEscalationConditionsThisFrame
Definition DDoSDetection.h:319
NETCORE_API FDDoSDetection()
Definition DDoSDetection.cpp:65
void IncBadPacketCounter()
Definition DDoSDetection.h:264
int32 GetBadPacketCounter() const
Definition DDoSDetection.h:265
void CondCheckNonConnQuotasAndLimits()
Definition DDoSDetection.h:220
bool bHitFrameNetConnLimit
Definition DDoSDetection.h:303
bool bDDoSAnalytics
Definition DDoSDetection.h:297
int32 GetDisconnPacketCounter() const
Definition DDoSDetection.h:263
int8 ActiveState
Definition DDoSDetection.h:310
void CondCheckNetConnLimits()
Definition DDoSDetection.h:232
double EndFrameRecvTimestamp
Definition DDoSDetection.h:356
bool bDDoSDetection
Definition DDoSDetection.h:294
void IncDroppedPacketCounter(int32 Count=1)
Definition DDoSDetection.h:268
float FrameAdjustment
Definition DDoSDetection.h:365
bool bHitFrameNonConnLimit
Definition DDoSDetection.h:300
bool CheckLogRestrictions()
Definition DDoSDetection.h:245
TArray< FDDoSStateConfig > DetectionSeverity
Definition DDoSDetection.h:307
bool IsDDoSAnalyticsEnabled() const
Definition DDoSDetection.h:254
int32 GetDroppedPacketCounter() const
Definition DDoSDetection.h:269
int32 LastCounterPerSecHistoryIdx
Definition DDoSDetection.h:349
int32 HitchFrameCount
Definition DDoSDetection.h:339
bool ShouldBlockNetConnPackets() const
Definition DDoSDetection.h:256
void IncNetConnPacketCounter()
Definition DDoSDetection.h:260
void IncNonConnPacketCounter()
Definition DDoSDetection.h:258
NETCORE_API void PostFrameReceive()
Definition DDoSDetection.cpp:337
static double Seconds()
Definition AndroidPlatformTime.h:20
Definition DDoSDetection.h:26
int32 NonConnPacketCounter
Definition DDoSDetection.h:28
int32 ErrorPacketCounter
Definition DDoSDetection.h:40
int32 DisconnPacketCounter
Definition DDoSDetection.h:34
int32 NetConnPacketCounter
Definition DDoSDetection.h:31
int32 WorstFrameReceiveTimeMS
Definition DDoSDetection.h:46
int32 BadPacketCounter
Definition DDoSDetection.h:37
FDDoSPacketCounters()
Definition DDoSDetection.h:49
int32 DroppedPacketCounter
Definition DDoSDetection.h:43
Definition DDoSDetection.h:130
FDDoSStateConfig()
Definition DDoSDetection.h:135
void ApplyAdjustedState(FDDoSState &Target, float FrameAdjustment)
Definition DDoSDetection.h:157
void ApplyState(FDDoSState &Target)
Definition DDoSDetection.h:140
FString SeverityCategory
Definition DDoSDetection.h:132
Definition DDoSDetection.h:66
int32 EscalateQuotaBadPacketsPerSec
Definition DDoSDetection.h:77
int32 EscalateQuotaDisconnPacketsPerSec
Definition DDoSDetection.h:74
bool HasHitQuota(FDDoSPacketCounters &InCounter, int32 TimePassedMS) const
Definition DDoSDetection.h:115
int32 PacketLimitPerFrame
Definition DDoSDetection.h:83
int32 PacketTimeLimitMSPerFrame
Definition DDoSDetection.h:86
int16 EscalateTimeQuotaMSPerFrame
Definition DDoSDetection.h:80
bool bSendEscalateAnalytics
Definition DDoSDetection.h:68
int32 CooloffTime
Definition DDoSDetection.h:92
int32 NetConnPacketTimeLimitMSPerFrame
Definition DDoSDetection.h:89
FDDoSState()
Definition DDoSDetection.h:95
int32 EscalateQuotaPacketsPerSec
Definition DDoSDetection.h:71