Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
NetServer.cpp File Reference
#include "precompiled.h"
#include "NetServer.h"
#include "NetClient.h"
#include "NetMessage.h"
#include "NetSession.h"
#include "NetStats.h"
#include "NetTurnManager.h"
#include "lib/external_libraries/enet.h"
#include "ps/CLogger.h"
#include "scriptinterface/ScriptInterface.h"
#include "simulation2/Simulation2.h"

Go to the source code of this file.

Classes

class  CNetFileReceiveTask_ServerRejoin
 Async task for receiving the initial game state to be forwarded to another client that is rejoining an in-progress network game. More...
 

Macros

#define DEFAULT_SERVER_NAME   L"Unnamed Server"
 
#define DEFAULT_WELCOME_MESSAGE   L"Welcome"
 
#define MAX_CLIENTS   8
 

Functions

static CStr DebugName (CNetServerSession *session)
 

Variables

static const int CHANNEL_COUNT = 1
 
static const int HOST_SERVICE_TIMEOUT = 50
 enet_host_service timeout (msecs). More...
 
CNetServerg_NetServer = NULL
 Global network server for the standard game. More...
 

Macro Definition Documentation

#define DEFAULT_SERVER_NAME   L"Unnamed Server"

Definition at line 33 of file NetServer.cpp.

#define DEFAULT_WELCOME_MESSAGE   L"Welcome"

Definition at line 34 of file NetServer.cpp.

#define MAX_CLIENTS   8

Definition at line 35 of file NetServer.cpp.

Function Documentation

static CStr DebugName ( CNetServerSession session)
static

Definition at line 48 of file NetServer.cpp.

Variable Documentation

const int CHANNEL_COUNT = 1
static

Definition at line 37 of file NetServer.cpp.

CNetServer* g_NetServer = NULL

Global network server for the standard game.

Definition at line 46 of file NetServer.cpp.

const int HOST_SERVICE_TIMEOUT = 50
static

enet_host_service timeout (msecs).

Smaller numbers may hurt performance; larger numbers will hurt latency responding to messages from game thread.

Definition at line 44 of file NetServer.cpp.