Orxonox  0.0.5 Codename: Arcturus
Namespaces | Classes | Enumerations | Functions | Variables
orxonox::packet Namespace Reference

Namespaces

 PacketFlag
 

Classes

class  Acknowledgement
 
class  Chat
 
class  ClassID
 
class  DeleteObjects
 
class  FunctionCalls
 
class  FunctionIDs
 
class  Gamestate
 
class  GamestateHeader
 
class  Packet
 
class  ServerInformation
 
class  Welcome
 

Enumerations

enum  Direction { Direction::Incoming, Direction::Outgoing, Direction::Bidirectional }
 
enum  Type : uint8_t {
  Type::Acknowledgement, Type::Chat, Type::ClassID, Type::DeleteObjects,
  Type::FunctionIDs, Type::FunctionCalls, Type::Gamestate, Type::Welcome
}
 

Functions

void copyObject (uint8_t *&newData, uint8_t *&origData, uint8_t *&baseData, SynchronisableHeader &objectHeader, std::vector< uint32_t >::iterator &sizes)
 
void diffObject (uint8_t *&newDataPtr, uint8_t *&origDataPtr, uint8_t *&baseDataPtr, SynchronisableHeader &objectHeader, std::vector< uint32_t >::iterator &sizes)
 
bool findObject (uint8_t *&dataPtr, uint8_t *endPtr, SynchronisableHeader &objectHeader)
 
bool memzero (uint8_t *data, uint32_t datalength)
 

Variables

const unsigned int FUNCTIONCALLS_MEM_ALLOCATION = 1000
 
static constexpr uint8_t GAMESTATE_MODE_CLIENT = 0x2
 
static constexpr uint8_t GAMESTATE_MODE_SERVER = 0x1
 

Enumeration Type Documentation

Enumerator
Incoming 
Outgoing 
Bidirectional 
enum orxonox::packet::Type : uint8_t
strong
Enumerator
Acknowledgement 
Chat 
ClassID 
DeleteObjects 
FunctionIDs 
FunctionCalls 
Gamestate 
Welcome 

Function Documentation

void orxonox::packet::copyObject ( uint8_t *&  newData,
uint8_t *&  origData,
uint8_t *&  baseData,
SynchronisableHeader objectHeader,
std::vector< uint32_t >::iterator &  sizes 
)
inline
void orxonox::packet::diffObject ( uint8_t *&  newDataPtr,
uint8_t *&  origDataPtr,
uint8_t *&  baseDataPtr,
SynchronisableHeader objectHeader,
std::vector< uint32_t >::iterator &  sizes 
)
inline
bool orxonox::packet::findObject ( uint8_t *&  dataPtr,
uint8_t *  endPtr,
SynchronisableHeader objectHeader 
)
inline
bool orxonox::packet::memzero ( uint8_t *  data,
uint32_t  datalength 
)
inline

Variable Documentation

const unsigned int orxonox::packet::FUNCTIONCALLS_MEM_ALLOCATION = 1000
constexpr uint8_t orxonox::packet::GAMESTATE_MODE_CLIENT = 0x2
static
constexpr uint8_t orxonox::packet::GAMESTATE_MODE_SERVER = 0x1
static