DDraceNetwork Docs
server.cpp File Reference
Include dependency graph for server.cpp:

Classes

class  CRconClientLogger
 

Macros

#define ADD_RAW(p, x)   (p).AddRaw(x, sizeof(x))
 
#define ADD_INT(p, x)
 
#define SAVE(size)
 
#define RESET()
 
#define ADD_RAW(p, x)   (p).AddRaw(x, sizeof(x))
 
#define ADD_INT(p, x)
 

Functions

bool IsInterrupted ()
 
static bool RepackMsg (const CMsgPacker *pMsg, CPacker &Packer, bool Sixup)
 
static int MsgFromSixup (int Msg, bool System)
 
static int GetCacheIndex (int Type, bool SendClient)
 
static int GetAuthLevel (const char *pLevel)
 
static void ListKeysCallback (const char *pIdent, int Level, void *pUser)
 
CServerCreateServer ()
 

Macro Definition Documentation

◆ ADD_INT [1/2]

#define ADD_INT (   p,
 
)
Value:
do \
{ \
str_format(aBuf, sizeof(aBuf), "%d", x); \
(p).AddString(aBuf, 0); \
} while(0)

◆ ADD_INT [2/2]

#define ADD_INT (   p,
 
)
Value:
do \
{ \
str_format(aBuf, sizeof(aBuf), "%d", x); \
(p).AddString(aBuf, 0); \
} while(0)

◆ ADD_RAW [1/2]

#define ADD_RAW (   p,
 
)    (p).AddRaw(x, sizeof(x))

◆ ADD_RAW [2/2]

#define ADD_RAW (   p,
 
)    (p).AddRaw(x, sizeof(x))

◆ RESET

#define RESET ( )
Value:
do \
{ \
q.Reset(); \
q.AddRaw(pPrefix, PrefixSize); \
} while(0)

◆ SAVE

#define SAVE (   size)
Value:
do \
{ \
pCache->AddChunk(q.Data(), size); \
ChunksStored++; \
} while(0)

Function Documentation

◆ CreateServer()

CServer * CreateServer ( )

◆ GetAuthLevel()

static int GetAuthLevel ( const char *  pLevel)
static

◆ GetCacheIndex()

static int GetCacheIndex ( int  Type,
bool  SendClient 
)
inlinestatic

◆ IsInterrupted()

bool IsInterrupted ( )

◆ ListKeysCallback()

static void ListKeysCallback ( const char *  pIdent,
int  Level,
void *  pUser 
)
static

◆ MsgFromSixup()

static int MsgFromSixup ( int  Msg,
bool  System 
)
inlinestatic

◆ RepackMsg()

static bool RepackMsg ( const CMsgPacker pMsg,
CPacker Packer,
bool  Sixup 
)
inlinestatic