doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Variables
AsyncNetwork.h File Reference
#include "MsgChannel.h"
#include "AsyncServer.h"
#include "ServerScan.h"
#include "AsyncClient.h"

Go to the source code of this file.

Classes

struct  master_s
 
class  idAsyncNetwork
 

Macros

#define MAJOR_VERSION(v)   ( v >> 16 )
 

Typedefs

typedef struct master_s master_t
 

Enumerations

enum  { SERVER_UNRELIABLE_MESSAGE_EMPTY = 0, SERVER_UNRELIABLE_MESSAGE_PING, SERVER_UNRELIABLE_MESSAGE_GAMEINIT, SERVER_UNRELIABLE_MESSAGE_SNAPSHOT }
 
enum  {
  SERVER_RELIABLE_MESSAGE_PURE = 0, SERVER_RELIABLE_MESSAGE_RELOAD, SERVER_RELIABLE_MESSAGE_CLIENTINFO, SERVER_RELIABLE_MESSAGE_SYNCEDCVARS,
  SERVER_RELIABLE_MESSAGE_PRINT, SERVER_RELIABLE_MESSAGE_DISCONNECT, SERVER_RELIABLE_MESSAGE_APPLYSNAPSHOT, SERVER_RELIABLE_MESSAGE_GAME,
  SERVER_RELIABLE_MESSAGE_ENTERGAME
}
 
enum  { CLIENT_UNRELIABLE_MESSAGE_EMPTY = 0, CLIENT_UNRELIABLE_MESSAGE_PINGRESPONSE, CLIENT_UNRELIABLE_MESSAGE_USERCMD }
 
enum  {
  CLIENT_RELIABLE_MESSAGE_PURE = 0, CLIENT_RELIABLE_MESSAGE_CLIENTINFO, CLIENT_RELIABLE_MESSAGE_PRINT, CLIENT_RELIABLE_MESSAGE_DISCONNECT,
  CLIENT_RELIABLE_MESSAGE_GAME
}
 
enum  {
  SERVER_PRINT_MISC = 0, SERVER_PRINT_BADPROTOCOL, SERVER_PRINT_RCON, SERVER_PRINT_GAMEDENY,
  SERVER_PRINT_BADCHALLENGE
}
 
enum  { SERVER_DL_REDIRECT = 1, SERVER_DL_LIST, SERVER_DL_NONE }
 
enum  { SERVER_PAK_NO = 0, SERVER_PAK_YES, SERVER_PAK_END }
 

Variables

const int ASYNC_PROTOCOL_MINOR = 41
 
const int ASYNC_PROTOCOL_VERSION = ( ASYNC_PROTOCOL_MAJOR << 16 ) + ASYNC_PROTOCOL_MINOR
 
const int MAX_ASYNC_CLIENTS = 32
 
const int MAX_USERCMD_BACKUP = 256
 
const int MAX_USERCMD_DUPLICATION = 25
 
const int MAX_USERCMD_RELAY = 10
 
const int MAX_MASTER_SERVERS = 5
 
const int MAX_NICKLEN = 32
 
const int MAX_SERVER_PORTS = 8
 
const int GAME_INIT_ID_INVALID = -1
 
const int GAME_INIT_ID_MAP_LOAD = -2
 

Macro Definition Documentation

#define MAJOR_VERSION (   v)    ( v >> 16 )

Definition at line 42 of file AsyncNetwork.h.

Typedef Documentation

typedef struct master_s master_t

Enumeration Type Documentation

anonymous enum
Enumerator
SERVER_UNRELIABLE_MESSAGE_EMPTY 
SERVER_UNRELIABLE_MESSAGE_PING 
SERVER_UNRELIABLE_MESSAGE_GAMEINIT 
SERVER_UNRELIABLE_MESSAGE_SNAPSHOT 

Definition at line 79 of file AsyncNetwork.h.

anonymous enum
Enumerator
SERVER_RELIABLE_MESSAGE_PURE 
SERVER_RELIABLE_MESSAGE_RELOAD 
SERVER_RELIABLE_MESSAGE_CLIENTINFO 
SERVER_RELIABLE_MESSAGE_SYNCEDCVARS 
SERVER_RELIABLE_MESSAGE_PRINT 
SERVER_RELIABLE_MESSAGE_DISCONNECT 
SERVER_RELIABLE_MESSAGE_APPLYSNAPSHOT 
SERVER_RELIABLE_MESSAGE_GAME 
SERVER_RELIABLE_MESSAGE_ENTERGAME 

Definition at line 87 of file AsyncNetwork.h.

anonymous enum
Enumerator
CLIENT_UNRELIABLE_MESSAGE_EMPTY 
CLIENT_UNRELIABLE_MESSAGE_PINGRESPONSE 
CLIENT_UNRELIABLE_MESSAGE_USERCMD 

Definition at line 100 of file AsyncNetwork.h.

anonymous enum
Enumerator
CLIENT_RELIABLE_MESSAGE_PURE 
CLIENT_RELIABLE_MESSAGE_CLIENTINFO 
CLIENT_RELIABLE_MESSAGE_PRINT 
CLIENT_RELIABLE_MESSAGE_DISCONNECT 
CLIENT_RELIABLE_MESSAGE_GAME 

Definition at line 107 of file AsyncNetwork.h.

anonymous enum
Enumerator
SERVER_PRINT_MISC 
SERVER_PRINT_BADPROTOCOL 
SERVER_PRINT_RCON 
SERVER_PRINT_GAMEDENY 
SERVER_PRINT_BADCHALLENGE 

Definition at line 116 of file AsyncNetwork.h.

anonymous enum
Enumerator
SERVER_DL_REDIRECT 
SERVER_DL_LIST 
SERVER_DL_NONE 

Definition at line 124 of file AsyncNetwork.h.

anonymous enum
Enumerator
SERVER_PAK_NO 
SERVER_PAK_YES 
SERVER_PAK_END 

Definition at line 130 of file AsyncNetwork.h.

Variable Documentation

const int ASYNC_PROTOCOL_MINOR = 41

Definition at line 40 of file AsyncNetwork.h.

const int ASYNC_PROTOCOL_VERSION = ( ASYNC_PROTOCOL_MAJOR << 16 ) + ASYNC_PROTOCOL_MINOR

Definition at line 41 of file AsyncNetwork.h.

const int GAME_INIT_ID_INVALID = -1

Definition at line 60 of file AsyncNetwork.h.

const int GAME_INIT_ID_MAP_LOAD = -2

Definition at line 61 of file AsyncNetwork.h.

const int MAX_ASYNC_CLIENTS = 32

Definition at line 44 of file AsyncNetwork.h.

const int MAX_MASTER_SERVERS = 5

Definition at line 52 of file AsyncNetwork.h.

const int MAX_NICKLEN = 32

Definition at line 54 of file AsyncNetwork.h.

const int MAX_SERVER_PORTS = 8

Definition at line 57 of file AsyncNetwork.h.

const int MAX_USERCMD_BACKUP = 256

Definition at line 46 of file AsyncNetwork.h.

const int MAX_USERCMD_DUPLICATION = 25

Definition at line 47 of file AsyncNetwork.h.

const int MAX_USERCMD_RELAY = 10

Definition at line 48 of file AsyncNetwork.h.