OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Network2.cpp File Reference
#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "network/C4Network2.h"
#include "C4Version.h"
#include "lib/C4Log.h"
#include "game/C4Application.h"
#include "editor/C4Console.h"
#include "control/C4GameSave.h"
#include "control/C4RoundResults.h"
#include "game/C4Game.h"
#include "game/C4GraphicsSystem.h"
#include "graphics/C4GraphicsResource.h"
#include "graphics/C4Draw.h"
#include "control/C4GameControl.h"
#include "gui/C4Gui.h"
#include "gui/C4GameLobby.h"
#include "network/C4Network2Dialogs.h"
#include "network/C4League.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Include dependency graph for C4Network2.cpp:

Go to the source code of this file.

Macros

#define GETPKT(type, name)
 
#define GETPKT(c)   dynamic_cast<C4NetpuncherPacket##c*>(pkt.get())
 

Macro Definition Documentation

#define GETPKT (   type,
  name 
)
Value:
assert(pPacket); const type &name = \
static_cast<const type &>(*pPacket);

Referenced by C4Network2::HandlePacket(), and C4Network2::HandlePuncherPacket().

#define GETPKT (   c)    dynamic_cast<C4NetpuncherPacket##c*>(pkt.get())