LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg_state.h File Reference

Functionality related to the State abstract class. More...

#include "nrg_core.h"
#include "nrg_connection.h"
#include "nrg_packet.h"

Go to the source code of this file.

Classes

struct  nrg::StateConnectionOut
 Interface for wrapping ConnectionOut with rate-limiting functionality. More...
 
struct  nrg::State
 Abstract class that represents a protocol followed by the Server and Client. More...
 
struct  nrg::StateConnectionOutImpl
 Implementation of StateConnectionOut. More...
 

Enumerations

enum  StateResult : uint32_t { STATE_CONTINUE = 0x00, STATE_EXIT_BIT = 0x10, STATE_FAILURE = STATE_EXIT_BIT, STATE_CHANGE = STATE_EXIT_BIT | 0x01 }
 Enumeration returned by State::Update to explain how the update went.
 
enum  StateFlags : uint32_t { SFLAG_NONE = 0x00, SFLAG_TIMED_OUT = 0x01 }
 Enumeration passed into State::Update to tell why the update is occuring.
 
enum  HS_Reponses : int8_t {
  HS_WRONG_LIB_VERSION = -1, HS_WRONG_GAME = -2, HS_WRONG_GAME_VERSION = -3, HS_SERVER_FULL = -4,
  HS_NONE = 0, HS_ACCEPTED = 1
}
 Enumeration for ClientHandshakeState and ServerHandshakeState.