UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RPCDoSDetection.h File Reference
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/CoreNet.h"
#include "Analytics/RPCDoSDetectionAnalytics.h"
#include "RPCDoSDetection.generated.h"

Go to the source code of this file.

Classes

struct  FRPCDoSCounters
 
struct  FRPCTrackingInfo
 
struct  FActiveRPCTrackingInfo
 
struct  FRPCDoSState
 
struct  FRPCDoSStateConfig
 
class  FRPCDoSDetection
 
struct  FRPCDoSDetection::FLightweightRPCTracking::FLightweightRPCEntry
 

Namespaces

namespace  UE
 
namespace  UE::Net
 

Macros

#define RPC_QUOTA_DEBUG   0
 
#define RPC_DOS_DEV_STATS   0
 
#define RPC_DOS_SCOPE_DEBUG   1
 

Typedefs

using FGetRPCDoSAddress = TUniqueFunction< FString()>
 
using FGetRPCDoSPlayerUID = TUniqueFunction< FString()>
 
using FRPCDoSKickPlayer = TUniqueFunction< void()>
 

Enumerations

enum class  ERPCBlockState : uint8 { Unchecked , OnAllowList , NotBlocked , Blocked }
 
enum class  ERPCNotifyResult : uint8 { ExecuteRPC , BlockRPC }
 
enum class  ERPCDoSSeverityUpdate : uint8 { Escalate , AutoEscalate , Deescalate }
 
enum class  ERPCDoSEscalateReason : uint8 { CountLimit , TimeLimit , AutoEscalate , Deescalate }
 
enum class  EPostSequentialRPCType : uint8 { MidPacket , PostPacket }
 

Variables

int32 UE::Net::GRPCDoSScopeDebugging
 

Macro Definition Documentation

◆ RPC_DOS_DEV_STATS

#define RPC_DOS_DEV_STATS   0

Whether or not CSV stats should be enabled for the RPC DoS checks (development only - for stress testing the RPC DoS code)

◆ RPC_DOS_SCOPE_DEBUG

#define RPC_DOS_SCOPE_DEBUG   1

Tick/Packet scope correctness debugging

◆ RPC_QUOTA_DEBUG

#define RPC_QUOTA_DEBUG   0

Count/Time Quota debugging

Typedef Documentation

◆ FGetRPCDoSAddress

using FGetRPCDoSAddress = TUniqueFunction<FString()>

Callback usually passed in by the NetConnection, for getting the address of the owning connection

Returns
The address of the owning NetConnection

◆ FGetRPCDoSPlayerUID

Callback usually passed in by the NetConnection, for getting the unique id of the owning player/connection

Returns
The unique id of the owning player/connection

◆ FRPCDoSKickPlayer

Callback usually passed in by the NetConection, for kicking the player after exceeding RPC DoS kick thresholds

Enumeration Type Documentation

◆ EPostSequentialRPCType

The type of a call to PostSequentialRPC

Enumerator
MidPacket 
PostPacket 

◆ ERPCBlockState

enum class ERPCBlockState : uint8
strong

The status of blocking for an individual RPC

Enumerator
Unchecked 
OnAllowList 
NotBlocked 
Blocked 

◆ ERPCDoSEscalateReason

The reason for an RPC DoS severity update

Enumerator
CountLimit 
TimeLimit 
AutoEscalate 
Deescalate 

◆ ERPCDoSSeverityUpdate

RPC DoS escalation severity update types

Enumerator
Escalate 
AutoEscalate 
Deescalate 

◆ ERPCNotifyResult

enum class ERPCNotifyResult : uint8
strong

Result of NotifyReceivedRPC, for specifying whether the RPC should execute or should be blocked

Enumerator
ExecuteRPC 
BlockRPC