DDraceNetwork Documentation
Loading...
Searching...
No Matches
protocol.h File Reference
#include <engine/shared/protocol7.h>
#include <bitset>
Include dependency graph for protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  TuneZone
namespace  FinishTime

Typedefs

typedef std::bitset< MAX_CLIENTSCClientMask

Enumerations

enum  {
  NETMSG_EX = 0 , NETMSG_INFO , NETMSG_MAP_CHANGE , NETMSG_MAP_DATA ,
  NETMSG_CON_READY , NETMSG_SNAP , NETMSG_SNAPEMPTY , NETMSG_SNAPSINGLE ,
  NETMSG_SNAPSMALL , NETMSG_INPUTTIMING , NETMSG_RCON_AUTH_STATUS , NETMSG_RCON_LINE ,
  NETMSG_UNUSED1 , NETMSG_UNUSED2 , NETMSG_READY , NETMSG_ENTERGAME ,
  NETMSG_INPUT , NETMSG_RCON_CMD , NETMSG_RCON_AUTH , NETMSG_REQUEST_MAP_DATA ,
  NETMSG_UNUSED3 , NETMSG_UNUSED4 , NETMSG_PING , NETMSG_PING_REPLY ,
  NETMSG_UNUSED5 , NETMSG_RCON_CMD_ADD , NETMSG_RCON_CMD_REM , NUM_NETMSGS
}
enum  {
  SERVER_TICK_SPEED = 50 , SERVER_FLAG_PASSWORD = 1 << 0 , SERVER_FLAG_TIMESCORE = 1 << 1 , SERVERINFO_LEVEL_MIN = 0 ,
  SERVERINFO_LEVEL_MAX = 2 , MAX_SERVER_ADDRESSES = 16 , SERVERINFO_MAX_CLIENTS = 128 , MAX_CLIENTS = 128 ,
  VANILLA_MAX_CLIENTS = 16 , SERVER_MAX_CLIENTS = 64 , MAX_CHECKPOINTS = 25 , MIN_TICK = 0 ,
  MAX_TICK = 0x6FFFFFFF , MAX_INPUT_SIZE = 128 , MAX_SNAPSHOT_PACKSIZE = 900 , MAX_NAME_LENGTH = 16 ,
  MAX_CLAN_LENGTH = 12 , MAX_SKIN_LENGTH = 24 , MSGFLAG_VITAL = 1 << 0 , MSGFLAG_FLUSH = 1 << 1 ,
  MSGFLAG_NORECORD = 1 << 2 , MSGFLAG_RECORD = 1 << 3 , MSGFLAG_NOSEND = 1 << 4
}
enum  {
  VERSION_NONE = -1 , VERSION_VANILLA = 0 , VERSION_DDRACE = 1 , VERSION_DDNET_OLD = 2 ,
  VERSION_DDNET_WHISPER = 217 , VERSION_DDNET_ANTIPING_PROJECTILE = 604 , VERSION_DDNET_UPDATER_FIXED = 707 , VERSION_DDNET_GAMETICK = 10042 ,
  VERSION_DDNET_EARLY_VERSION = 13020 , VERSION_DDNET_MSG_LEGACY = 15040 , VERSION_DDNET_INDEPENDENT_SPECTATORS_TEAM = 16000 , VERSION_DDNET_WEAPON_SHIELDS = 16010 ,
  VERSION_DDNET_NEW_HUD = 16020 , VERSION_DDNET_MULTI_LASER = 16040 , VERSION_DDNET_ENTITY_NETOBJS = 16200 , VERSION_DDNET_REDIRECT = 17020 ,
  VERSION_DDNET_PLAYERFLAG_SPEC_CAM = 18090 , VERSION_DDNET_RECONNECT = 18090 , VERSION_DDNET_128_PLAYERS = 19000 , VERSION_DDNET_PREINPUT = 19040 ,
  VERSION_DDNET_SAVE_CODE = 19060 , VERSION_DDNET_IMPORTANT_ALERT = 19060 , VERSION_DDNET_MAP_BESTTIME = 19070
}

Variables

constexpr int TuneZone::OVERRIDE_NONE = -1
constexpr int TuneZone::NUM = 256
constexpr int FinishTime::NOT_FINISHED_TIMESCORE = -9999
constexpr int FinishTime::NOT_FINISHED_MILLIS = -1
constexpr int FinishTime::UNSET = -2

Typedef Documentation

◆ CClientMask

typedef std::bitset<MAX_CLIENTS> CClientMask

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERVER_TICK_SPEED 
SERVER_FLAG_PASSWORD 
SERVER_FLAG_TIMESCORE 
SERVERINFO_LEVEL_MIN 
SERVERINFO_LEVEL_MAX 
MAX_SERVER_ADDRESSES 
SERVERINFO_MAX_CLIENTS 
MAX_CLIENTS 
VANILLA_MAX_CLIENTS 
SERVER_MAX_CLIENTS 
MAX_CHECKPOINTS 
MIN_TICK 
MAX_TICK 
MAX_INPUT_SIZE 
MAX_SNAPSHOT_PACKSIZE 
MAX_NAME_LENGTH 
MAX_CLAN_LENGTH 
MAX_SKIN_LENGTH 
MSGFLAG_VITAL 

Guaranteed to be delivered, resent on packet loss.

MSGFLAG_FLUSH 

Makes the message be sent immediately. Without this flag the message will be delayed until the next flush.

MSGFLAG_NORECORD 

Don't write message to demo recorders. This flag is server-side only, where sent messages are recorded by default.

MSGFLAG_RECORD 

Write message to demo recorders. This flag is client-side only, where sent messages are not recorded by default.

MSGFLAG_NOSEND 

Don't send the message to client/server. Useful combined with MSGFLAG_RECORD to record a message without sending it.

◆ anonymous enum

anonymous enum
Enumerator
NETMSG_EX 
NETMSG_INFO 
NETMSG_MAP_CHANGE 
NETMSG_MAP_DATA 
NETMSG_CON_READY 
NETMSG_SNAP 
NETMSG_SNAPEMPTY 
NETMSG_SNAPSINGLE 
NETMSG_SNAPSMALL 
NETMSG_INPUTTIMING 
NETMSG_RCON_AUTH_STATUS 
NETMSG_RCON_LINE 
NETMSG_UNUSED1 
NETMSG_UNUSED2 
NETMSG_READY 
NETMSG_ENTERGAME 
NETMSG_INPUT 
NETMSG_RCON_CMD 
NETMSG_RCON_AUTH 
NETMSG_REQUEST_MAP_DATA 
NETMSG_UNUSED3 
NETMSG_UNUSED4 
NETMSG_PING 
NETMSG_PING_REPLY 
NETMSG_UNUSED5 
NETMSG_RCON_CMD_ADD 
NETMSG_RCON_CMD_REM 
NUM_NETMSGS 

◆ anonymous enum

anonymous enum
Enumerator
VERSION_NONE 
VERSION_VANILLA 
VERSION_DDRACE 
VERSION_DDNET_OLD 
VERSION_DDNET_WHISPER 
VERSION_DDNET_ANTIPING_PROJECTILE 
VERSION_DDNET_UPDATER_FIXED 
VERSION_DDNET_GAMETICK 
VERSION_DDNET_EARLY_VERSION 
VERSION_DDNET_MSG_LEGACY 
VERSION_DDNET_INDEPENDENT_SPECTATORS_TEAM 
VERSION_DDNET_WEAPON_SHIELDS 
VERSION_DDNET_NEW_HUD 
VERSION_DDNET_MULTI_LASER 
VERSION_DDNET_ENTITY_NETOBJS 
VERSION_DDNET_REDIRECT 
VERSION_DDNET_PLAYERFLAG_SPEC_CAM 
VERSION_DDNET_RECONNECT 
VERSION_DDNET_128_PLAYERS 
VERSION_DDNET_PREINPUT 
VERSION_DDNET_SAVE_CODE 
VERSION_DDNET_IMPORTANT_ALERT 
VERSION_DDNET_MAP_BESTTIME