Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FRPCDoSDetection
Description
Initialize RPC DoS Detection, inputting callbacks for retrieving external information necessary for analytics.
RPC DoS Detection
| Name | Init |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/RPCDoSDetection.h |
| Include Path | #include "Net/RPCDoSDetection.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Net/RPCDoSDetection.cpp |
void Init
(
FName NetDriverName,
TSharedPtr < FNetAnalyticsAggregator > & AnalyticsAggregator,
FGetWorld && InWorldFunc,
FGetRPCDoSAddress && InAddressFunc,
FGetRPCDoSPlayerUID && InPlayerUIDFunc,
FRPCDoSKickPlayer && InKickPlayerFunc
)
Parameters
| Name | Remarks |
|---|---|
| NetDriverName | The name of the NetDriver which RPC DoS Detection belongs to (e.g. GameNetDriver) |
| AnalyticsAggregator | Reference to the NetDriver analytics aggregator |
| InWorldFunc | Callback for getting the current NetConnection World. |
| InAddressFunc | Callback for getting the current NetConnection address. |
| InPlayerUIDFunc | Callback for getting the current NetConnection player UID. |
| InKickPlayerFunc | Callback for kicking the player after a bad enough RPC DoS. |