Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
const.h File Reference
#include "config.h"
#include "posh.h"
#include <assert.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define GAMESERVER_VERSION   0.2
 
#define ACCOUNTSERVER_VERSION   0.2
 
#define NETCLIENT_VERSION   0.2
 
#define SERVER_PORT   6777
 
#define CLIENT_PORT   6778
 
#define ACCT_PORT   6779
 
#define VIDEO_PORT   6776
 
#define HASHMETHOD   SHA
 
#define DESKEY_SIZE   64
 
#define MAXBUFFER   16384
 
#define MAXSERIAL   0xFFFF
 
#define OBJSERIAL_ToBig   POSH_WriteU16ToBig
 
#define INSTSERIAL_ToBig   POSH_WriteU32ToBig
 
#define OBJSERIAL_FromBig   POSH_ReadU16FromBig
 
#define INSTSERIAL_FromBig   POSH_ReadU32FromBig
 
#define SOCKET_ERROR   -1
 
#define LOCALCONST_DECL(Type, cName, Value)   static const Type cName = Value;
 
#define LOCALCONST_DEF(Class, Type, cName, Value)
 

Typedefs

typedef unsigned short ObjSerial
 
typedef unsigned int InstSerial
 

Variables

double NETWORK_ATOM
 
double DAMAGE_ATOM
 

Macro Definition Documentation

#define ACCOUNTSERVER_VERSION   0.2

Definition at line 30 of file const.h.

#define ACCT_PORT   6779

Definition at line 35 of file const.h.

Referenced by AccountServer::start(), and NetServer::start().

#define CLIENT_PORT   6778

Definition at line 34 of file const.h.

#define DESKEY_SIZE   64

Definition at line 39 of file const.h.

#define GAMESERVER_VERSION   0.2

Definition at line 29 of file const.h.

#define HASHMETHOD   SHA
#define INSTSERIAL_FromBig   POSH_ReadU32FromBig

Definition at line 46 of file const.h.

#define INSTSERIAL_ToBig   POSH_WriteU32ToBig

Definition at line 44 of file const.h.

#define LOCALCONST_DECL (   Type,
  cName,
  Value 
)    static const Type cName = Value;

Definition at line 66 of file const.h.

#define LOCALCONST_DEF (   Class,
  Type,
  cName,
  Value 
)

Definition at line 67 of file const.h.

#define MAXSERIAL   0xFFFF

Definition at line 42 of file const.h.

Referenced by getUniqueSerial().

#define NETCLIENT_VERSION   0.2

Definition at line 31 of file const.h.

#define OBJSERIAL_FromBig   POSH_ReadU16FromBig

Definition at line 45 of file const.h.

#define OBJSERIAL_ToBig   POSH_WriteU16ToBig

Definition at line 43 of file const.h.

#define SERVER_PORT   6777
#define SOCKET_ERROR   -1

Definition at line 61 of file const.h.

Referenced by bindFd(), NetUIBase::createClientSocket(), and NetUIBase::createServerSocket().

#define VIDEO_PORT   6776

Definition at line 36 of file const.h.

Typedef Documentation

typedef unsigned int InstSerial

Definition at line 48 of file const.h.

typedef unsigned short ObjSerial

Definition at line 47 of file const.h.

Variable Documentation

double DAMAGE_ATOM

Definition at line 77 of file netserver.cpp.

Referenced by NetServer::start().

double NETWORK_ATOM

Definition at line 77 of file netclient.cpp.

Referenced by NetClient::init(), NetClient::isTime(), and NetServer::start().