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

Contains functionality that adds a connection abstraction over UDP. More...

#include "nrg_core.h"
#include "nrg_netaddress.h"
#include "nrg_packet.h"
#include "nrg_packet_header.h"
#include "nrg_socket.h"
#include <bitset>
#include <array>

Go to the source code of this file.

Classes

struct  nrg::ConnectionCommon
 Common connection functionality that is used by both ConnectionIn and ConnectionOut. More...
 
class  nrg::ConnectionIn
 Incoming connection class. More...
 
class  nrg::ConnectionOut
 Outgoing connection class. More...
 
struct  nrg::Connection
 Combines both ConnectionIn and ConnectionOut into a single class. More...
 

Enumerations

enum  PacketFlags : uint8_t {
  PKTFLAG_NONE = 0x00, PKTFLAG_OUT_OF_ORDER = 0x01, PKTFLAG_CONTINUED = 0x02, PKTFLAG_FINISHED = 0x04,
  PKTFLAG_RETRANSMISSION = 0x08, PKTFLAG_STATE_CHANGE = 0x10, PKTFLAG_STATE_CHANGE_ACK = 0x20
}
 Attributes of Packets that are passed through ConnectionIn and ConnectionOut.