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 "DeadlineTimer.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 "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. More... | |
void | StopDB () |
Close the connection to the database. More... | |
void | SignalHandler (std::weak_ptr< Acore::Asio::IoContext > ioContextRef, boost::system::error_code const &error, int signalNumber) |
void | KeepDatabaseAliveHandler (std::weak_ptr< Acore::Asio::DeadlineTimer > dbPingTimerRef, int32 dbPingInterval, boost::system::error_code const &error) |
void | BanExpiryHandler (std::weak_ptr< Acore::Asio::DeadlineTimer > 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. More... | |
#define _ACORE_REALM_CONFIG "authserver.conf" |
void BanExpiryHandler | ( | std::weak_ptr< Acore::Asio::DeadlineTimer > | banExpiryCheckTimerRef, |
int32 | banExpiryCheckInterval, | ||
boost::system::error_code const & | error | ||
) |
References BanExpiryHandler(), 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, and sConfigMgr.
Referenced by main().
void KeepDatabaseAliveHandler | ( | std::weak_ptr< Acore::Asio::DeadlineTimer > | dbPingTimerRef, |
int32 | dbPingInterval, | ||
boost::system::error_code const & | error | ||
) |
References KeepDatabaseAliveHandler(), LOG_INFO, 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(), KeepDatabaseAliveHandler(), LOG_ERROR, LOG_INFO, 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.
Initialize connection to the databases.
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().