Luanti 5.16.0-dev
Loading...
Searching...
No Matches
server.h File Reference
#include "irr_v3d.h"
#include "map.h"
#include "hud_element.h"
#include "gamedef.h"
#include "content/subgames.h"
#include "network/peerhandler.h"
#include "util/thread.h"
#include "util/basic_macros.h"
#include "util/metricsbackend.h"
#include "server/clientiface.h"
#include "threading/ordered_mutex.h"
#include "translation.h"
#include "sound_spec.h"
#include <atomic>
#include <csignal>
#include <string>
#include <list>
#include <vector>
#include <unordered_map>
#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

Namespaces

namespace  con

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, volatile std::sig_atomic_t &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,
volatile std::sig_atomic_t & kill )

References ServerList::AA_DELETE, g_profiler, g_settings, infostream, 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

const FlagDesc flagdesc_anticheat[]
staticconstexpr
Initial value:
= {
{"digging", AC_DIGGING},
{"interaction", AC_INTERACTION},
{"movement", AC_MOVEMENT},
{NULL, 0}
}
@ AC_INTERACTION
Definition server.h:80
@ AC_MOVEMENT
Definition server.h:81
@ AC_DIGGING
Definition server.h:79

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