r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
utl::SecurityConfig Namespace Reference

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)
 

Variable Documentation

◆ CLIENT_TIMEOUT_SECONDS

int utl::SecurityConfig::CLIENT_TIMEOUT_SECONDS = 30
inlineconstexpr

Client timeout duration (seconds)

Definition at line 143 of file Security.hpp.

◆ CONNECTION_TIMEOUT_MS

int utl::SecurityConfig::CONNECTION_TIMEOUT_MS = 5000
inlineconstexpr

Connection attempt timeout (milliseconds)

Definition at line 167 of file Security.hpp.

◆ HMAC_SIZE

size_t utl::SecurityConfig::HMAC_SIZE = 32
inlineconstexpr

HMAC size for message integrity (bytes) - SHA256.

Definition at line 155 of file Security.hpp.

◆ MAX_CLIENTS_PER_IP

size_t utl::SecurityConfig::MAX_CLIENTS_PER_IP = 10
inlineconstexpr

Maximum concurrent connections per IP.

Definition at line 152 of file Security.hpp.

◆ MAX_LOBBY_NAME_LENGTH

size_t utl::SecurityConfig::MAX_LOBBY_NAME_LENGTH = 32
inlineconstexpr

Maximum lobby name length.

Definition at line 134 of file Security.hpp.

◆ MAX_PACKET_SIZE

size_t utl::SecurityConfig::MAX_PACKET_SIZE = 512
inlineconstexpr

Maximum packet size (bytes)

Definition at line 137 of file Security.hpp.

◆ MAX_PACKETS_PER_SECOND

size_t utl::SecurityConfig::MAX_PACKETS_PER_SECOND = 100
inlineconstexpr

Maximum packets per second per client.

Definition at line 149 of file Security.hpp.

◆ MAX_PAYLOAD_SIZE

size_t utl::SecurityConfig::MAX_PAYLOAD_SIZE = 512
inlineconstexpr

Maximum payload size (bytes)

Definition at line 140 of file Security.hpp.

◆ MAX_PLAYER_NAME_LENGTH

size_t utl::SecurityConfig::MAX_PLAYER_NAME_LENGTH = 32
inlineconstexpr

Maximum player name length.

Definition at line 131 of file Security.hpp.

◆ MAX_RETRY_ATTEMPTS

int utl::SecurityConfig::MAX_RETRY_ATTEMPTS = 3
inlineconstexpr

Maximum number of retry attempts.

Definition at line 164 of file Security.hpp.

◆ MAX_SESSION_ID

std::uint32_t utl::SecurityConfig::MAX_SESSION_ID = 0xFFFFFFFF
inlineconstexpr

Maximum session ID value.

Definition at line 161 of file Security.hpp.

◆ MIN_SESSION_ID

std::uint32_t utl::SecurityConfig::MIN_SESSION_ID = 1
inlineconstexpr

Minimum session ID value.

Definition at line 158 of file Security.hpp.

◆ SESSION_TIMEOUT_MINUTES

int utl::SecurityConfig::SESSION_TIMEOUT_MINUTES = 30
inlineconstexpr

Session timeout duration (minutes)

Definition at line 146 of file Security.hpp.