OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

typedef uint32_t C4NetpuncherID::value

Definition at line 32 of file C4PuncherPacket.h.

Member Function Documentation

void C4NetpuncherID::CompileFunc ( StdCompiler pComp)

Definition at line 25 of file C4PuncherPacket.cpp.

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

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

Here is the call graph for this function:

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

Definition at line 37 of file C4PuncherPacket.h.

References v4, and v6.

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

Member Data Documentation

value C4NetpuncherID::v4 = 0

Definition at line 34 of file C4PuncherPacket.h.

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

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: