Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
server.h File Reference
#include "irr_v3d.h"
#include "map.h"
#include "hud.h"
#include "gamedef.h"
#include "content/mods.h"
#include "inventorymanager.h"
#include "content/subgames.h"
#include "network/peerhandler.h"
#include "network/connection.h"
#include "util/numeric.h"
#include "util/thread.h"
#include "util/basic_macros.h"
#include "util/metricsbackend.h"
#include "serverenvironment.h"
#include "server/clientiface.h"
#include "threading/ordered_mutex.h"
#include "chatmessage.h"
#include "sound.h"
#include "translation.h"
#include <atomic>
#include <string>
#include <list>
#include <map>
#include <vector>
#include <unordered_set>
#include <optional>
#include <string_view>
#include <shared_mutex>
#include <condition_variable>
+ Include dependency graph for server.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MediaInfo
 
struct  ServerPlayingSound
 
struct  MinimapMode
 
struct  ClientInfo
 
struct  ModIPCStore
 
class  Server
 
struct  Server::DynamicMediaArgs
 
struct  Server::StepSettings
 
class  Server::EnvAutoLock
 
struct  Server::ShutdownState
 
struct  Server::PendingDynamicMediaCallback
 
struct  Server::SBCHash
 

Enumerations

enum  { AC_DIGGING = 0x01 , AC_INTERACTION = 0x02 , AC_MOVEMENT = 0x04 }
 
enum  ClientDeletionReason { CDR_LEAVE , CDR_TIMEOUT , CDR_DENY }
 

Functions

void dedicated_server_loop (Server &server, bool &kill)
 

Variables

constexpr static const FlagDesc flagdesc_anticheat []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AC_DIGGING 
AC_INTERACTION 
AC_MOVEMENT 

◆ ClientDeletionReason

Enumerator
CDR_LEAVE 
CDR_TIMEOUT 
CDR_DENY 

Function Documentation

◆ dedicated_server_loop()

void dedicated_server_loop ( Server & server,
bool & kill )

References ServerList::AA_DELETE, Profiler::clear(), g_profiler, g_settings, Settings::getBool(), Settings::getFloat(), infostream, Profiler::print(), ServerList::sendAnnounce(), sleep_ms, IntervalLimiter::step(), and verbosestream.

Referenced by run_dedicated_server().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ flagdesc_anticheat

static const FlagDesc flagdesc_anticheat[]
staticconstexpr
Initial value:
= {
{"digging", AC_DIGGING},
{"interaction", AC_INTERACTION},
{"movement", AC_MOVEMENT},
{NULL, 0}
}
@ AC_INTERACTION
Definition server.h:71
@ AC_MOVEMENT
Definition server.h:72
@ AC_DIGGING
Definition server.h:70

Referenced by PlayerSAO::checkMovementCheat(), Server::handleCommand_Interact(), migrate_settings(), and set_default_settings().