DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
local_server.h
Go to the documentation of this file.
1
#ifndef GAME_CLIENT_COMPONENTS_LOCAL_SERVER_H
2
#define GAME_CLIENT_COMPONENTS_LOCAL_SERVER_H
3
4
#include <
base/types.h
>
5
6
#include <
engine/shared/config.h
>
7
8
#include <
game/client/component.h
>
9
10
class
CLocalServer
:
public
CComponentInterfaces
11
{
12
public
:
13
bool
RunServer
(
const
std::vector<const char *> &vpArguments);
14
void
KillServer
();
15
bool
IsServerRunning
();
16
void
RconAuthIfPossible
();
17
18
private
:
19
char
m_aRconPassword
[
sizeof
(
g_Config
.
m_SvRconPassword
)] =
""
;
20
21
#if !defined(CONF_PLATFORM_ANDROID)
22
PROCESS
m_Process
=
INVALID_PROCESS
;
23
#endif
24
};
25
26
#endif
CComponentInterfaces
Definition
component.h:15
CConfig::m_SvRconPassword
char m_SvRconPassword[128]
Definition
config.h:481
CLocalServer
Definition
local_server.h:11
CLocalServer::KillServer
void KillServer()
Definition
local_server.cpp:73
CLocalServer::RconAuthIfPossible
void RconAuthIfPossible()
Definition
local_server.cpp:101
CLocalServer::RunServer
bool RunServer(const std::vector< const char * > &vpArguments)
Definition
local_server.cpp:17
CLocalServer::m_Process
PROCESS m_Process
Definition
local_server.h:22
CLocalServer::IsServerRunning
bool IsServerRunning()
Definition
local_server.cpp:88
CLocalServer::m_aRconPassword
char m_aRconPassword[sizeof(g_Config.m_SvRconPassword)]
Definition
local_server.h:19
component.h
g_Config
CConfig g_Config
Definition
config.cpp:16
INVALID_PROCESS
constexpr PROCESS INVALID_PROCESS
Definition
types.h:223
PROCESS
pid_t PROCESS
Definition
types.h:217
config.h
types.h
src
game
client
components
local_server.h
Generated by
1.18.0