#include "AppenderDB.h"
#include "Banner.h"
#include "BigNumber.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "DatabaseLoader.h"
#include "DeadlineTimer.h"
#include "GitRevision.h"
#include "IPLocation.h"
#include "IpNetwork.h"
#include "Locales.h"
#include "LoginRESTService.h"
#include "Memory.h"
#include "MySQLThreading.h"
#include "OpenSSLCrypto.h"
#include "ProcessPriority.h"
#include "RealmList.h"
#include "SecretMgr.h"
#include "SessionManager.h"
#include "SslContext.h"
#include "Util.h"
#include <boost/asio/signal_set.hpp>
#include <boost/dll/runtime_symbol_info.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem/operations.hpp>
#include <google/protobuf/stubs/common.h>
#include <iostream>
#include <csignal>
#include "Hacks/boost_program_options_with_filesystem_path.h"
#include "ServiceWin32.h"
#include <tchar.h>
#include "WheatyExceptionReport.h"
Go to the source code of this file.
|
| void | ServiceStatusWatcher (std::weak_ptr< Trinity::Asio::DeadlineTimer > serviceStatusWatchTimerRef, std::weak_ptr< Trinity::Asio::IoContext > ioContextRef, boost::system::error_code const &error) |
| |
| bool | StartDB () |
| | Initialize connection to the database.
|
| |
| void | StopDB () |
| | Close the connection to the database.
|
| |
| void | SignalHandler (boost::system::error_code const &error, int signalNumber) |
| |
| void | KeepDatabaseAliveHandler (std::weak_ptr< Trinity::Asio::DeadlineTimer > dbPingTimerRef, int32 dbPingInterval, boost::system::error_code const &error) |
| |
| void | BanExpiryHandler (std::weak_ptr< Trinity::Asio::DeadlineTimer > banExpiryCheckTimerRef, int32 banExpiryCheckInterval, boost::system::error_code const &error) |
| |
| variables_map | GetConsoleArguments (int argc, char **argv, fs::path &configFile, fs::path &configDir, std::string &winServiceAction) |
| |
| int | main (int argc, char **argv) |
| |
| | INIT_CRASH_HANDLER () |
| |
◆ _TRINITY_BNET_CONFIG
| #define _TRINITY_BNET_CONFIG "bnetserver.conf" |
◆ _TRINITY_BNET_CONFIG_DIR
| #define _TRINITY_BNET_CONFIG_DIR "bnetserver.conf.d" |
◆ BanExpiryHandler()
| void BanExpiryHandler |
( |
std::weak_ptr< Trinity::Asio::DeadlineTimer > |
banExpiryCheckTimerRef, |
|
|
int32 |
banExpiryCheckInterval, |
|
|
boost::system::error_code const & |
error |
|
) |
| |
◆ GetConsoleArguments()
| variables_map GetConsoleArguments |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
fs::path & |
configFile, |
|
|
fs::path & |
configDir, |
|
|
std::string & |
winServiceAction |
|
) |
| |
◆ INIT_CRASH_HANDLER()
◆ KeepDatabaseAliveHandler()
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ ServiceStatusWatcher()
◆ SignalHandler()
| void SignalHandler |
( |
boost::system::error_code const & |
error, |
|
|
int |
signalNumber |
|
) |
| |
◆ StartDB()
Initialize connection to the database.
Initialize connection to the databases.
- Insert version info into DB
Definition at line 306 of file Main.cpp.
◆ StopDB()
Close the connection to the database.
Definition at line 324 of file Main.cpp.
◆ m_ServiceStatus
◆ serviceDescription
| TCHAR serviceDescription[] = _T("TrinityCore Battle.net emulator authentication service") |
◆ serviceLongName
| TCHAR serviceLongName[] = _T("TrinityCore bnet service") |
◆ serviceName
| TCHAR serviceName[] = _T("bnetserver") |
◆ Stopped
| std::atomic<bool> Stopped |