TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Main.cpp File Reference
#include "Common.h"
#include "DatabaseEnv.h"
#include "AsyncAcceptor.h"
#include "RASession.h"
#include "Configuration/Config.h"
#include "OpenSSLCrypto.h"
#include "ProcessPriority.h"
#include "BigNumber.h"
#include "World.h"
#include "MapManager.h"
#include "InstanceSaveMgr.h"
#include "ObjectAccessor.h"
#include "ScriptMgr.h"
#include "ScriptLoader.h"
#include "OutdoorPvP/OutdoorPvPMgr.h"
#include "BattlegroundMgr.h"
#include "TCSoap.h"
#include "CliRunnable.h"
#include "GitRevision.h"
#include "WorldSocket.h"
#include "WorldSocketMgr.h"
#include "RealmList.h"
#include "DatabaseLoader.h"
#include "AppenderDB.h"
#include <openssl/opensslv.h>
#include <openssl/crypto.h>
#include <boost/asio/io_service.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/program_options.hpp>
#include <google/protobuf/stubs/common.h>
+ Include dependency graph for Main.cpp:

Macros

#define _TRINITY_CORE_CONFIG   "worldserver.conf"
 
#define WORLD_SLEEP_CONST   50
 

Functions

boost::asio::deadline_timer _freezeCheckTimer (_ioService)
 
uint32 _worldLoopCounter (0)
 
uint32 _lastChangeMsTime (0)
 
uint32 _maxCoreStuckTimeInMs (0)
 
void SignalHandler (const boost::system::error_code &error, int signalNumber)
 
void FreezeDetectorHandler (const boost::system::error_code &error)
 
AsyncAcceptorStartRaSocketAcceptor (boost::asio::io_service &ioService)
 
bool StartDB ()
 Initialize connection to the databases. More...
 
void StopDB ()
 
void WorldUpdateLoop ()
 
void ClearOnlineAccounts ()
 Clear 'online' status for all accounts with characters in this realm. More...
 
void ShutdownCLIThread (std::thread *cliThread)
 
void ShutdownThreadPool (std::vector< std::thread > &threadPool)
 
bool LoadRealmInfo ()
 
variables_map GetConsoleArguments (int argc, char **argv, std::string &cfg_file, std::string &cfg_service)
 
int main (int argc, char **argv)
 Launch the Trinity server. More...
 

Variables

boost::asio::io_service _ioService