class

FAntiCheatGate

The server-side half of the anti-cheat seam, kept apart from the socket so a test drives it without one. It owns the per-peer trust state, routes the tagged integrity frames to the active service, rate-limits what a client may send, and decides whether a peer is admitted: with RequireTrustedClients on, a peer stays outside the session until the service reports it trusted, and is dropped when it turns untrusted or the grace window runs out.

Module
Networking
Header
#include "Networking/AntiCheat/AntiCheatGate.h"
Namespace
Mowo

Properties

TypeNameDescription
std::function<void(uint32_t, EAntiCheatClientStatus)>OnClientStatusChangedObservers for scripts and the host; both fire on the game thread.
std::function<void(uint32_t, EAntiCheatKickReason, const std::string&)>OnKick

Public functions

ReturnsNameDescription
voidConfigureThe service may be null (no anti-cheat registered): the gate is then a pass-through that admits every peer.
voidReset
boolIsGateActiveTrue when a service is wired and the settings demand a trusted client.
voidPeerConnecteddeferRegistration holds RegisterClient back until PeerAuthenticated, for a server whose identity (the ticket's user id) is known only after the handshake.
voidPeerAuthenticated
voidPeerDisconnected
boolHandleFrameTrue when the frame carried the anti-cheat tag, whether or not it was accepted: the caller must not treat it as game traffic.
voidUpdate
boolIsPeerAdmitted
EAntiCheatClientStatusGetPeerStatus
boolKickPeer
const FAntiCheatSettings&GetSettings
FAntiCheatGate*ActiveThe gate the running server owns, so Visual Scripting can reach it without the Networking module knowing the server host.
voidSetActive

Function details

Configure

C++
void Configure(IAntiCheatService* service, const FAntiCheatSettings& settings, const FHooks& hooks)

The service may be null (no anti-cheat registered): the gate is then a pass-through that admits every peer.

Reset

C++
void Reset()

IsGateActive

C++
bool IsGateActive() const

True when a service is wired and the settings demand a trusted client.

PeerConnected

C++
void PeerConnected(uint32_t peerId, const std::string& address, bool deferRegistration)

deferRegistration holds RegisterClient back until PeerAuthenticated, for a server whose identity (the ticket's user id) is known only after the handshake.

PeerAuthenticated

C++
void PeerAuthenticated(uint32_t peerId, uint64_t userId)

PeerDisconnected

C++
void PeerDisconnected(uint32_t peerId)

HandleFrame

C++
bool HandleFrame(uint32_t peerId, const uint8_t* data, size_t size)

True when the frame carried the anti-cheat tag, whether or not it was accepted: the caller must not treat it as game traffic.

Update

C++
void Update(float deltaSeconds)

IsPeerAdmitted

C++
bool IsPeerAdmitted(uint32_t peerId) const

GetPeerStatus

C++
EAntiCheatClientStatus GetPeerStatus(uint32_t peerId) const

KickPeer

C++
bool KickPeer(uint32_t peerId, EAntiCheatKickReason reason, const std::string& detail)

GetSettings

C++
const FAntiCheatSettings& GetSettings() const

Active

C++
static FAntiCheatGate* Active()

The gate the running server owns, so Visual Scripting can reach it without the Networking module knowing the server host. Null off-server.

SetActive

C++
static void SetActive(FAntiCheatGate* gate)
Generated from Networking/AntiCheat/AntiCheatGate.h via networking.json · Dec 5, 2026Version 1.1.0