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
| Type | Name | Description |
|---|---|---|
uint32_t | MaxPerAddress | Default 8. |
double | ConnectsPerSecond | Default 2.0. |
double | Burst | Default 6.0. |
Public functions
| Returns | Name | Description |
|---|---|---|
EVerdict | Evaluate | |
void | Trim | Drops 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