R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
sessions.hpp File Reference

Sessions of the server: who is logged in, under which token and player number. More...

#include <aegis2d/core/random.hpp>
#include <aegis2d/net/endpoint.hpp>
#include <rtype/login.hpp>
#include <rtype/rooms.hpp>
#include <rtype/tuning.hpp>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

struct  rtype::Session
 A logged-in player (RFC section 3). More...
 
class  rtype::SessionTable
 The sessions of the server and the rooms they are in. More...
 

Namespaces

namespace  rtype
 R-Type game code, built on the Aegis2D engine.
 

Enumerations

enum class  rtype::BindResult : std::uint8_t {
  rtype::Bound , rtype::AlreadyBound , rtype::UnknownSession , rtype::Taken ,
  rtype::NoRoom
}
 What SessionTable::bind() did with a Connect. More...
 

Variables

constexpr std::uint32_t rtype::no_room = 0xFFFFFFFFU
 Room of a session in the lobby, out of every room (LeaveRoom, RFC section 3.7).
 

Detailed Description

Sessions of the server: who is logged in, under which token and player number.