Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions | Variables
demos.cpp File Reference
#include <boost/algorithm/clamp.hpp>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <algorithm>
#include <enet/enet.h>
#include "inexor/gamemode/gamemode.hpp"
#include "inexor/io/legacy/stream.hpp"
#include "inexor/network/legacy/buffer_types.hpp"
#include "inexor/network/legacy/cube_network.hpp"
#include "inexor/network/legacy/game_types.hpp"
#include "inexor/server/client_management.hpp"
#include "inexor/server/demos.hpp"
#include "inexor/server/map_management.hpp"
#include "inexor/server/network_send.hpp"
#include "inexor/shared/command.hpp"
#include "inexor/shared/cube_endian.hpp"
#include "inexor/shared/cube_formatting.hpp"
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/cube_tools.hpp"
#include "inexor/shared/cube_unicode.hpp"
#include "inexor/shared/tools.hpp"
#include "inexor/util/legacy_time.hpp"

Namespaces

 server
 

Functions

 server::VAR (maxdemos, 0, 5, 25)
 
 server::VAR (maxdemosize, 0, 16, 31)
 
void server::prunedemos (int extra=0)
 
void server::adddemo ()
 
void server::enddemorecord ()
 
void server::writedemo (int chan, void *data, int len)
 
void server::recordpacket (int chan, void *data, int len)
 
int server::welcomepacket (packetbuf &p, clientinfo *ci)
 
void server::sendwelcome (clientinfo *ci)
 
void server::setupdemorecord ()
 
void server::listdemos (int cn)
 Send a list of demos to that client. More...
 
void server::cleardemos (int n)
 Remove all demos until demo number n or all if n = 0. More...
 
static void server::freegetdemo (ENetPacket *packet)
 
void server::senddemo (clientinfo *ci, int num)
 Send a specific demo to the client. More...
 
void server::enddemoplayback ()
 
void server::setupdemoplayback ()
 
void server::readdemo ()
 
void server::stopdemo ()
 Wrapper for either enddemoplayback or enddemorecord, depending on m_demo. More...
 

Variables

vector< demofile > server::demos
 
bool server::demonextmatch = false
 Whether we want to record a demo next match. More...
 
streamserver::demotmp = nullptr
 
streamserver::demorecord = nullptr
 The streams for demo playback or demo recording. More...
 
streamserver::demoplayback = nullptr
 
int server::nextplayback = 0
 
int server::demomillis = 0