DDraceNetwork Documentation
Loading...
Searching...
No Matches
server.cpp File Reference
Include dependency graph for server.cpp:

Classes

class  CRconClientLogger
struct  CSubdirCallbackUserdata

Macros

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

Functions

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, const char *pRoleName, void *pUser)
CServerCreateServer ()

Macro Definition Documentation

◆ ADD_INT [1/2]

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

◆ ADD_INT [2/2]

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

◆ ADD_RAW [1/2]

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

◆ ADD_RAW [2/2]

#define ADD_RAW ( p,
x )
Value:
(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()

int GetAuthLevel ( const char * pLevel)
static

◆ GetCacheIndex()

int GetCacheIndex ( int Type,
bool SendClient )
inlinestatic

◆ ListKeysCallback()

void ListKeysCallback ( const char * pIdent,
const char * pRoleName,
void * pUser )
static

◆ MsgFromSixup()

int MsgFromSixup ( int Msg,
bool System )
inlinestatic

◆ RepackMsg()

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