r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
srv Namespace Reference

Namespaces

namespace  Config
 
namespace  Game
 
namespace  Path
 

Classes

struct  ArgsConfig
 
class  ArgsHandler
 Class to handle command line arguments. More...
 
class  AScene
 Class for scene. More...
 
class  AsioServer
 High-performance UDP server implementation using ASIO library. More...
 
struct  ClientSession
 Represents an active client connection session. More...
 
struct  EnvConfig
 
interface  INetworkServer
 Interface for the server network. More...
 
class  IScene
 interface class for scene More...
 
struct  Lobby
 Represents a game lobby (room) where players gather before starting a game. More...
 
struct  QueuedPacket
 Represents a packet queued for asynchronous transmission. More...
 
class  SceneManager
 Class for managing scenes. More...
 
class  Server
 Class for the server. More...
 

Typedefs

using json = nlohmann::json
 
using id = unsigned int
 

Enumerations

enum class  LobbyStatus : std::uint8_t {
  SUCCESS = 0 , WAITING = 1 , IN_GAME = 2 , NOT_FOUND = 3 ,
  FULL = 4 , ALREADY_IN_LOBBY = 5
}
 Status codes for lobby operations. More...
 

Variables

constexpr size_t MAX_CLIENTS = 16
 
constexpr size_t MAX_IP_LENGTH = 8
 
constexpr size_t MAX_LEN_RECV_BUFFER = 1024
 

Detailed Description

Author
R-Type Team
Date
2025

Typedef Documentation

◆ id

using srv::id = unsigned int

Definition at line 16 of file IScene.hpp.

◆ json

using srv::json = nlohmann::json

Definition at line 18 of file ArgsHandler.hpp.

Enumeration Type Documentation

◆ LobbyStatus

enum class srv::LobbyStatus : std::uint8_t
strong

Status codes for lobby operations.

Used to indicate the result of lobby-related operations

Enumerator
SUCCESS 

Operation completed successfully.

WAITING 

Lobby is waiting for players.

IN_GAME 

Game in progress.

NOT_FOUND 

Requested lobby does not exist.

FULL 

Lobby has reached maximum capacity.

ALREADY_IN_LOBBY 

Client is already in a lobby.

Definition at line 66 of file AsioServer.hpp.

Variable Documentation

◆ MAX_CLIENTS

size_t srv::MAX_CLIENTS = 16
constexpr

Definition at line 18 of file INetworkServer.hpp.

Referenced by srv::AsioServer::handleConnect().

◆ MAX_IP_LENGTH

size_t srv::MAX_IP_LENGTH = 8
constexpr

Definition at line 19 of file INetworkServer.hpp.

◆ MAX_LEN_RECV_BUFFER

size_t srv::MAX_LEN_RECV_BUFFER = 1024
constexpr

Definition at line 20 of file INetworkServer.hpp.