DDNet documentation
Loading...
Searching...
No Matches
CLocalServer Class Reference

#include <local_server.h>

Inheritance diagram for CLocalServer:
[legend]
Collaboration diagram for CLocalServer:
[legend]

Public Member Functions

bool RunServer (const std::vector< const char * > &vpArguments)
void KillServer ()
bool IsServerRunning ()
bool IsStarting () const
void Update ()
void RconAuthIfPossible ()
void Connect ()
void CancelConnect ()
Public Member Functions inherited from CComponentInterfaces
virtual void OnInterfacesInit (CGameClient *pClient)
virtual ~CComponentInterfaces ()=default

Private Member Functions

void Reset ()
void WaitForPort ()
void OnServerStarted ()

Private Attributes

char m_aRconPassword [sizeof(g_Config.m_SvRconPassword)] = ""
int m_Port = 0
bool m_WaitingForPort = false
std::chrono::nanoseconds m_StartTime {0}
std::chrono::nanoseconds m_NextPortCheck {0}
bool m_ConnectRequested = false
PROCESS m_Process = INVALID_PROCESS

Additional Inherited Members

Protected Member Functions inherited from CComponentInterfaces
class CGameClient * GameClient () const
class IClient * Client () const
class IKernel * Kernel () const
class IEngine * Engine () const
class IGraphics * Graphics () const
class ITextRender * TextRender () const
class IInput * Input () const
class IStorage * Storage () const
class CUi * Ui () const
class ISound * Sound () const
class CRenderTools * RenderTools () const
class CRenderMap * RenderMap () const
class IConfigManager * ConfigManager () const
class CConfig * Config () const
class IConsole * Console () const
class IDemoPlayer * DemoPlayer () const
class IDemoRecorder * DemoRecorder (int Recorder) const
class IFavorites * Favorites () const
class IServerBrowser * ServerBrowser () const
class CLayers * Layers () const
class CCollision * Collision () const
int64_t time () const
float LocalTime () const
class IHttp * Http () const

Member Function Documentation

◆ CancelConnect()

void CLocalServer::CancelConnect ( )

◆ Connect()

void CLocalServer::Connect ( )

◆ IsServerRunning()

bool CLocalServer::IsServerRunning ( )

◆ IsStarting()

bool CLocalServer::IsStarting ( ) const
inline

◆ KillServer()

void CLocalServer::KillServer ( )

◆ OnServerStarted()

void CLocalServer::OnServerStarted ( )
private

◆ RconAuthIfPossible()

void CLocalServer::RconAuthIfPossible ( )

◆ Reset()

void CLocalServer::Reset ( )
private

◆ RunServer()

bool CLocalServer::RunServer ( const std::vector< const char * > & vpArguments)

◆ Update()

void CLocalServer::Update ( )

◆ WaitForPort()

void CLocalServer::WaitForPort ( )
private

Member Data Documentation

◆ m_aRconPassword

char CLocalServer::m_aRconPassword[sizeof(g_Config.m_SvRconPassword)] = ""
private

◆ m_ConnectRequested

bool CLocalServer::m_ConnectRequested = false
private

◆ m_NextPortCheck

std::chrono::nanoseconds CLocalServer::m_NextPortCheck {0}
private

◆ m_Port

int CLocalServer::m_Port = 0
private

◆ m_Process

PROCESS CLocalServer::m_Process = INVALID_PROCESS
private

◆ m_StartTime

std::chrono::nanoseconds CLocalServer::m_StartTime {0}
private

◆ m_WaitingForPort

bool CLocalServer::m_WaitingForPort = false
private

The documentation for this class was generated from the following files: