Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

netlink.h File Reference

#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <queue>
#include <list>
#include <sys/types.h>
#include <SDL/SDL.h>
#include <adsomath.h>
#include <adsofont.h>
#include "vehicle.h"
#include "config.h"
#include "photon.h"
#include "view.h"

Go to the source code of this file.

Compounds

struct  Message
struct  MsgAccept
struct  MsgChat
struct  MsgConnect
struct  MsgGameType
struct  MsgGotEpsilon
struct  MsgPhotonHit
struct  MsgSetEpsilon
struct  MsgUfo
class  NetLink
class  NetLinkAddr
class  NetLinkStat
struct  Packet
struct  State
struct  StateStream
struct  TPacket

Defines

#define STATE_MAX_PHOTONS   4
#define NETLINK_MAGIC   ( ('a'<<24) | ('d'<<16) | ('s'<<8) | 'o' )
#define NL_PACKET_VERSION   3
#define NL_DELTATIME_INVALID   0x7fffffff
#define NLM_CONNECT   1
#define NLM_DISCONNECT   2
#define NLM_ACKNOWLEDGE   3
#define NLM_ACCEPT   4
#define NLM_REJECT   5
#define NLM_ABORT   6
#define NL_CB   1024
#define NLC_NIL   (0|NL_CB)
#define NLC_STARTGAME   (1|NL_CB)
#define NLC_DEATHMATCH   (2|NL_CB)
#define NLC_ABORTGAME   (3|NL_CB)
#define NLC_GOT_EPSILON   (4|NL_CB)
#define NLC_SET_EPSILON   (5|NL_CB)
#define NLC_IFAILED   (6|NL_CB)
#define NLC_RESETPOS   (7|NL_CB)
#define NLC_DM_IWIN   (8|NL_CB)
#define NLC_DM_YOUWIN   (9|NL_CB)
#define NLC_RESCUE   (10|NL_CB)
#define NLC_CHAT   (11|NL_CB)
#define NLC_UFO   (12|NL_CB)
#define NLC_PHOTON_HIT   (13|NL_CB)
#define NLC_GAMETYPE   (14|NL_CB)
#define NLSTATE_INACTIVE   0
#define NLSTATE_IDLE   1
#define NLSTATE_RCON   2
#define NLSTATE_LCON   3
#define NLSTATE_RACK   4
#define NLSTATE_LACC   5
#define NLSTATE_LREJ   6
#define NLSTATE_CONNECTED   7
#define NLTEST_PACKET_DELAY   100
#define NLTEST_PACKET_DVAR   10
#define NLTEST_DROP_INTERVAL   1000000
#define NLS_DTA_SIZE   141

Variables

NetLink netLink
NetLinkStat netLinkStat


Generated on Mon Jul 21 10:44:47 2003 for Rover by doxygen 1.3.2