OpenClonk
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  C4NetpuncherPacketIDReq
 
class  C4NetpuncherPacketID< TYPE >
 
class  C4NetpuncherPacketCReq
 

Macros

#define PIDC(n)
 

Enumerations

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

Functions

 PIDC (AssID)
 
 PIDC (SReq)
 

Macro Definition Documentation

◆ PIDC

#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 75 of file C4PuncherPacket.h.

Enumeration Type Documentation

◆ C4NetpuncherPacketType

Enumerator
PID_Puncher_AssID 
PID_Puncher_SReq 
PID_Puncher_CReq 
PID_Puncher_IDReq 

Definition at line 23 of file C4PuncherPacket.h.

23  {
24  PID_Puncher_AssID = 0x51, // Puncher announcing ID to host
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  PID_Puncher_IDReq = 0x54, // Host requesting an ID
28  // extend this with exchanging ICE parameters, some day?
29 };
@ PID_Puncher_SReq
@ PID_Puncher_CReq
@ PID_Puncher_AssID
@ PID_Puncher_IDReq

Function Documentation

◆ PIDC() [1/2]

PIDC ( AssID  )

◆ PIDC() [2/2]

PIDC ( SReq  )