![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "AppenderDB.h"#include "AuthSocketMgr.h"#include "Banner.h"#include "Config.h"#include "DatabaseEnv.h"#include "DatabaseLoader.h"#include "GitRevision.h"#include "IPLocation.h"#include "IoContext.h"#include "Log.h"#include "MySQLThreading.h"#include "OpenSSLCrypto.h"#include "ProcessPriority.h"#include "RealmList.h"#include "SecretMgr.h"#include "SharedDefines.h"#include "SteadyTimer.h"#include "Util.h"#include <boost/asio/signal_set.hpp>#include <boost/program_options.hpp>#include <boost/version.hpp>#include <csignal>#include <filesystem>#include <iostream>#include <openssl/crypto.h>#include <openssl/opensslv.h>Go to the source code of this file.
Macros | |
| #define | _ACORE_REALM_CONFIG "authserver.conf" |
Functions | |
| bool | StartDB () |
| Initialize connection to the database. | |
| void | StopDB () |
| Close the connection to the database. | |
| void | SignalHandler (std::weak_ptr< Acore::Asio::IoContext > ioContextRef, boost::system::error_code const &error, int signalNumber) |
| void | KeepDatabaseAliveHandler (std::weak_ptr< boost::asio::steady_timer > dbPingTimerRef, int32 dbPingInterval, boost::system::error_code const &error) |
| void | BanExpiryHandler (std::weak_ptr< boost::asio::steady_timer > banExpiryCheckTimerRef, int32 banExpiryCheckInterval, boost::system::error_code const &error) |
| variables_map | GetConsoleArguments (int argc, char **argv, fs::path &configFile) |
| int | main (int argc, char **argv) |
| Launch the auth server. | |
| #define _ACORE_REALM_CONFIG "authserver.conf" |
| void BanExpiryHandler | ( | std::weak_ptr< boost::asio::steady_timer > | banExpiryCheckTimerRef, |
| int32 | banExpiryCheckInterval, | ||
| boost::system::error_code const & | error | ||
| ) |
References BanExpiryHandler(), Acore::Asio::SteadyTimer::GetExpirationTime(), LOGIN_DEL_EXPIRED_IP_BANS, LOGIN_UPD_EXPIRED_ACCOUNT_BANS, and LoginDatabase.
Referenced by BanExpiryHandler(), and main().
| variables_map GetConsoleArguments | ( | int | argc, |
| char ** | argv, | ||
| fs::path & | configFile | ||
| ) |
References _ACORE_REALM_CONFIG, GitRevision::GetFullVersion(), and sConfigMgr.
Referenced by main().
| void KeepDatabaseAliveHandler | ( | std::weak_ptr< boost::asio::steady_timer > | dbPingTimerRef, |
| int32 | dbPingInterval, | ||
| boost::system::error_code const & | error | ||
| ) |
References Acore::Asio::SteadyTimer::GetExpirationTime(), KeepDatabaseAliveHandler(), LOG_DEBUG, and LoginDatabase.
Referenced by KeepDatabaseAliveHandler(), and main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Launch the auth server.
References _ACORE_REALM_CONFIG, Acore::Impl::CurrentServerProcessHolder::_type, Acore::AbortHandler(), BanExpiryHandler(), CONFIG_HIGH_PRIORITY, CONFIG_PROCESSOR_AFFINITY, CreatePIDFile(), GetConsoleArguments(), Acore::Asio::SteadyTimer::GetExpirationTime(), KeepDatabaseAliveHandler(), LOG_ERROR, LOG_INFO, MINUTE, sAuthSocketMgr, sConfigMgr, SERVER_PROCESS_AUTHSERVER, SetProcessPriority(), Acore::Banner::Show(), SignalHandler(), sIPLocation, sLog, sRealmList, sSecretMgr, StartDB(), StopDB(), OpenSSLCrypto::threadsCleanup(), and OpenSSLCrypto::threadsSetup().
| void SignalHandler | ( | std::weak_ptr< Acore::Asio::IoContext > | ioContextRef, |
| boost::system::error_code const & | error, | ||
| int | signalNumber | ||
| ) |
Referenced by main().
| bool StartDB | ( | ) |
Initialize connection to the database.
References DatabaseLoader::AddDatabase(), MySQL::Library_Init(), DatabaseLoader::Load(), LOG_INFO, LoginDatabase, and sLog.
Referenced by main().
| void StopDB | ( | ) |
Close the connection to the database.
References MySQL::Library_End(), and LoginDatabase.
Referenced by main().