OpenClonk
C4NetpuncherID Struct Reference

#include <C4PuncherPacket.h>

Public Types

typedef uint32_t value
 

Public Member Functions

void CompileFunc (StdCompiler *pComp)
 
bool operator== (const C4NetpuncherID &other) const
 

Public Attributes

value v4 = 0
 
value v6 = 0
 

Detailed Description

Definition at line 31 of file C4PuncherPacket.h.

Member Typedef Documentation

◆ value

typedef uint32_t C4NetpuncherID::value

Definition at line 32 of file C4PuncherPacket.h.

Member Function Documentation

◆ CompileFunc()

void C4NetpuncherID::CompileFunc ( StdCompiler pComp)

Definition at line 25 of file C4PuncherPacket.cpp.

25  {
26  pComp->Value(mkNamingAdapt(v4, "IPv4", 0u));
27  pComp->Value(mkNamingAdapt(v6, "IPv6", 0u));
28 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
void Value(const T &rStruct)
Definition: StdCompiler.h:161

References mkNamingAdapt(), v4, v6, and StdCompiler::Value().

Here is the call graph for this function:

◆ operator==()

bool C4NetpuncherID::operator== ( const C4NetpuncherID other) const
inline

Definition at line 37 of file C4PuncherPacket.h.

37 { return v4 == other.v4 && v6 == other.v6; }

References v4, and v6.

Member Data Documentation

◆ v4

value C4NetpuncherID::v4 = 0

Definition at line 34 of file C4PuncherPacket.h.

Referenced by CompileFunc(), C4Network2::getNetpuncherGameID(), and operator==().

◆ v6

value C4NetpuncherID::v6 = 0

Definition at line 34 of file C4PuncherPacket.h.

Referenced by CompileFunc(), C4Network2::getNetpuncherGameID(), and operator==().


The documentation for this struct was generated from the following files: