Variables | |
| constexpr size_t | MAX_PLAYER_NAME_LENGTH = 32 |
| Maximum player name length. | |
| constexpr size_t | MAX_LOBBY_NAME_LENGTH = 32 |
| Maximum lobby name length. | |
| constexpr size_t | MAX_PACKET_SIZE = 512 |
| Maximum packet size (bytes) | |
| constexpr size_t | MAX_PAYLOAD_SIZE = 512 |
| Maximum payload size (bytes) | |
| constexpr int | CLIENT_TIMEOUT_SECONDS = 30 |
| Client timeout duration (seconds) | |
| constexpr int | SESSION_TIMEOUT_MINUTES = 30 |
| Session timeout duration (minutes) | |
| constexpr size_t | MAX_PACKETS_PER_SECOND = 100 |
| Maximum packets per second per client. | |
| constexpr size_t | MAX_CLIENTS_PER_IP = 10 |
| Maximum concurrent connections per IP. | |
| constexpr size_t | HMAC_SIZE = 32 |
| HMAC size for message integrity (bytes) - SHA256. | |
| constexpr std::uint32_t | MIN_SESSION_ID = 1 |
| Minimum session ID value. | |
| constexpr std::uint32_t | MAX_SESSION_ID = 0xFFFFFFFF |
| Maximum session ID value. | |
| constexpr int | MAX_RETRY_ATTEMPTS = 3 |
| Maximum number of retry attempts. | |
| constexpr int | CONNECTION_TIMEOUT_MS = 5000 |
| Connection attempt timeout (milliseconds) | |
|
inlineconstexpr |
Client timeout duration (seconds)
Definition at line 143 of file Security.hpp.
|
inlineconstexpr |
Connection attempt timeout (milliseconds)
Definition at line 167 of file Security.hpp.
|
inlineconstexpr |
HMAC size for message integrity (bytes) - SHA256.
Definition at line 155 of file Security.hpp.
|
inlineconstexpr |
Maximum concurrent connections per IP.
Definition at line 152 of file Security.hpp.
|
inlineconstexpr |
Maximum lobby name length.
Definition at line 134 of file Security.hpp.
|
inlineconstexpr |
Maximum packet size (bytes)
Definition at line 137 of file Security.hpp.
|
inlineconstexpr |
Maximum packets per second per client.
Definition at line 149 of file Security.hpp.
|
inlineconstexpr |
Maximum payload size (bytes)
Definition at line 140 of file Security.hpp.
|
inlineconstexpr |
Maximum player name length.
Definition at line 131 of file Security.hpp.
|
inlineconstexpr |
Maximum number of retry attempts.
Definition at line 164 of file Security.hpp.
|
inlineconstexpr |
Maximum session ID value.
Definition at line 161 of file Security.hpp.
|
inlineconstexpr |
Minimum session ID value.
Definition at line 158 of file Security.hpp.
|
inlineconstexpr |
Session timeout duration (minutes)
Definition at line 146 of file Security.hpp.