28 #ifndef _NETWORK_Packet_H__    29 #define _NETWORK_Packet_H__    69     virtual unsigned char* 
getData(){ 
return data_; };
    70     virtual unsigned int getSize() 
const = 0;
    84       { 
return this->requiredGamestateID_; }
    90     Packet(uint8_t *data, 
unsigned int peerID);
    92       { 
return bDataENetAllocated_; }
 Shared library macros, enums, constants and forward declarations for the network library  ...
 
static std::map< size_t, Packet * > packetMap_
Definition: Packet.h:108
 
bool isDataENetAllocated() const 
Definition: Packet.h:91
 
uint8_t * data_
Pointer to the data. 
Definition: Packet.h:101
 
Direction packetDirection_
Definition: Packet.h:97
 
static constexpr uint32_t Reliable
Definition: NetworkPrereqs.h:91
 
uint32_t getFlags()
Definition: Packet.h:75
 
void setPeerID(int id)
Definition: Packet.h:79
 
bool bDataENetAllocated_
Tells whether data_ was allocated by ENet or ourselves. 
Definition: Packet.h:104
 
uint32_t flags_
Definition: Packet.h:94
 
virtual unsigned char * getData()
Definition: Packet.h:69
 
int getPeerID()
Definition: Packet.h:77
 
unsigned int peerID_
Definition: Packet.h:95
 
Direction
Definition: Packet.h:40
 
Die Wagnis Klasse hat die folgenden Aufgaben: 
Definition: ApplicationPaths.cc:66
 
#define _NetworkExport
Definition: NetworkPrereqs.h:59
 
uint32_t requiredGamestateID_
Definition: Packet.h:96
 
static boost::mutex packetMapMutex_
Definition: Packet.h:109
 
Type
Definition: Packet.h:46
 
bool isReliable()
Definition: Packet.h:81
 
uint32_t getRequiredGamestateID()
Definition: Packet.h:83
 
ENet packet structure. 
Definition: enet.h:147
 
ENetPacket * enetPacket_
Definition: Packet.h:110
 
Base class of Server and Client This is the Base class of the Server and Client classes. 
Definition: Host.h:52