OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4PuncherPacket.h File Reference
#include "network/C4NetIO.h"
Include dependency graph for C4PuncherPacket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  C4NetpuncherID
 
class  C4NetpuncherPacket
 
class  C4NetpuncherPacketID< TYPE >
 
class  C4NetpuncherPacketCReq
 

Macros

#define PIDC(n)
 

Enumerations

enum  C4NetpuncherPacketType { PID_Puncher_AssID = 0x51, PID_Puncher_SReq = 0x52, PID_Puncher_CReq = 0x53 }
 

Functions

 PIDC (AssID)
 
 PIDC (SReq)
 

Macro Definition Documentation

#define PIDC (   n)
Value:
class C4NetpuncherPacket##n : public C4NetpuncherPacketID<PID_Puncher_##n> { \
public: explicit C4NetpuncherPacket##n(const C4NetIOPacket& p) : C4NetpuncherPacketID<PID_Puncher_##n>(p) {}; \
public: explicit C4NetpuncherPacket##n(CID id) : C4NetpuncherPacketID<PID_Puncher_##n>(id) {}; \
}
C4NetpuncherID::value CID

Definition at line 65 of file C4PuncherPacket.h.

Enumeration Type Documentation

Enumerator
PID_Puncher_AssID 
PID_Puncher_SReq 
PID_Puncher_CReq 

Definition at line 23 of file C4PuncherPacket.h.

23  {
24  PID_Puncher_AssID = 0x51, // Puncher announcing ID to client
25  PID_Puncher_SReq = 0x52, // Client requesting to be served with punching (for an ID)
26  PID_Puncher_CReq = 0x53, // Puncher requesting clients to punch (towards an address)
27  // extend this with exchanging ICE parameters, some day?
28 };

Function Documentation

PIDC ( AssID  )
PIDC ( SReq  )