All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Packet2.cpp File Reference
#include "C4Include.h"
#include "C4Version.h"
#include "control/C4RoundResults.h"
#include "gui/C4GameLobby.h"
#include "network/C4GameControlNetwork.h"
#include "network/C4Network2.h"
#include "network/C4Network2Res.h"
Include dependency graph for C4Packet2.cpp:

Go to the source code of this file.


struct  unpack_class< T >


#define PKT_UNPACK(T)   unpack_class<T>::unpack


const char * PacketNameByID (C4PacketType eID)


const C4PktHandlingData PktHandlingData []

Macro Definition Documentation

#define PKT_UNPACK (   T)    unpack_class<T>::unpack

Definition at line 47 of file C4Packet2.cpp.

Function Documentation

const char* PacketNameByID ( C4PacketType  eID)

Definition at line 135 of file C4Packet2.cpp.

References C4PktHandlingData::ID, and PID_None.

136 {
137  for (const C4PktHandlingData *pPData = PktHandlingData; pPData->ID != PID_None; pPData++)
138  if (pPData->ID == eID)
139  return pPData->Name;
140  return "?!?";
141 }
const C4PktHandlingData PktHandlingData[]
Definition: C4Packet2.cpp:50
C4PacketType ID
Definition: C4PacketBase.h:201

Variable Documentation

const C4PktHandlingData PktHandlingData[]

Definition at line 50 of file C4Packet2.cpp.

Referenced by C4Network2IO::HandlePacket().