class

FConnectionGuard

Admission policy for new transport connections, kept free of ENet so it can be tested with invented addresses. Every connect costs the server two X25519 operations and holds a slot until the handshake times out, and ENet has no stateless cookie, so one address can otherwise exhaust the slots or the CPU: a cap on simultaneous connections per address plus a token bucket on how fast one address may open new ones. Loopback is never limited (split-screen, tests, local tools).

Module
Networking
Header
#include "Networking/ConnectionGuard.h"
Namespace
Mowo

Properties

TypeNameDescription
uint32_tMaxPerAddressDefault 8.
doubleConnectsPerSecondDefault 2.0.
doubleBurstDefault 6.0.

Public functions

ReturnsNameDescription
EVerdictEvaluate
voidTrimDrops idle addresses so a long-running server's table does not grow with every scanner.

Function details

Evaluate

C++
EVerdict Evaluate(const std::string& address, uint32_t currentFromAddress, double nowSeconds)

Trim

C++
void Trim(double nowSeconds)

Drops idle addresses so a long-running server's table does not grow with every scanner.

Generated from Networking/ConnectionGuard.h via networking.json · Dec 5, 2026Version 1.1.0