|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Authentication Server main program. More...
#include <openssl/crypto.h>#include <openssl/opensslv.h>#include <mysql.h>#include <csignal>#include <filesystem>#include <memory>#include "Common.h"#include "Database/DatabaseSetup/DatabaseSetup.h"#include "Database/DatabaseSetup/DatabaseSetupRuntime.h"#include "Configuration/Config.h"#include "Database/DatabaseEnv.h"#include "Log.h"#include "OpenSSLProviders.h"#include "PacketLogServer.h"#include "Platform/TimeUtils.h"#include "RealmAcceptor.h"#include "RealmList.h"#include "SystemConfig.h"#include "Util.h"Go to the source code of this file.
Macros | |
| #define | _SKYFIRE_AUTH_DATABASE "" |
| #define | _SKYFIRE_AUTH_DATABASE_HOST "" |
| #define | _SKYFIRE_AUTH_DATABASE_PASS "" |
| #define | _SKYFIRE_AUTH_DATABASE_PORT "" |
| #define | _SKYFIRE_AUTH_DATABASE_USER "" |
| #define | _SKYFIRE_REALM_CONFIG "authserver.conf" |
Functions | |
| void | AuthServerSignalHandler (int sigNum) |
| int | main (int argc, char **argv) |
| Launch the auth server. | |
| bool | StartDB (const char *host, const char *port, const char *user, const char *pass, const char *database, bool noUseConfigDatabaseInfo) |
| Initialize connection to the database. | |
| void | StopDB () |
| Close the connection to the database. | |
| void | usage (const char *prog) |
| Print out the usage string for this program on the console. | |
Variables | |
| LoginDatabaseWorkerPool | LoginDatabase |
| bool | stopEvent = false |
Authentication Server main program.
This file contains the main program for the authentication server
Definition in file Main.cpp.
| #define _SKYFIRE_AUTH_DATABASE_HOST "" |
| #define _SKYFIRE_AUTH_DATABASE_PASS "" |
| #define _SKYFIRE_AUTH_DATABASE_PORT "" |
| #define _SKYFIRE_AUTH_DATABASE_USER "" |
| #define _SKYFIRE_REALM_CONFIG "authserver.conf" |
| void AuthServerSignalHandler | ( | int | sigNum | ) |
|
extern |
Launch the auth server.
Definition at line 207 of file Main.cpp.
References _SKYFIRE_AUTH_DATABASE, _SKYFIRE_AUTH_DATABASE_HOST, _SKYFIRE_AUTH_DATABASE_PASS, _SKYFIRE_AUTH_DATABASE_PORT, _SKYFIRE_AUTH_DATABASE_USER, _SKYFIRE_REALM_CONFIG, AuthServerSignalHandler(), RealmAcceptor::Close(), CreatePIDFile(), Skyfire::LoadOpenSSLProviders(), LoginDatabase, MINUTE, RealmAcceptor::Open(), sConfigMgr, SF_LOG_ERROR, SF_LOG_INFO, SF_LOG_WARN, SKYFIREAUTH_CONFIG_VERSION, Skyfire::SleepForMilliseconds(), sPacketLogServer, sRealmList, StartDB(), StopDB(), stopEvent, RealmAcceptor::Update(), and usage().
| bool StartDB | ( | const char * | host, |
| const char * | port, | ||
| const char * | user, | ||
| const char * | pass, | ||
| const char * | database, | ||
| bool | noUseConfigDatabaseInfo ) |
Initialize connection to the database.
Definition at line 498 of file Main.cpp.
References MySQL::Library_Init(), LoginDatabase, sConfigMgr, SF_LOG_ERROR, SF_LOG_INFO, and sLog.
Referenced by main().
| void StopDB | ( | ) |
Close the connection to the database.
Definition at line 561 of file Main.cpp.
References MySQL::Library_End(), and LoginDatabase.
Referenced by main().
| void usage | ( | const char * | prog | ) |
Print out the usage string for this program on the console.
Definition at line 192 of file Main.cpp.
Referenced by Skyfire::FormatProcessMemoryUsage(), Skyfire::FormatSystemMemoryUsage(), Skyfire::GetProcessMemoryUsage(), Skyfire::GetSystemMemoryUsage(), and main().
| LoginDatabaseWorkerPool LoginDatabase |
Definition at line 54 of file Main.cpp.
Referenced by AuthSocket::_HandleLogonChallenge(), AuthSocket::_HandleLogonProof(), AuthSocket::_HandleRealmList(), AuthSocket::_HandleReconnectChallenge(), Master::_StartDB(), Master::_StopDB(), World::_UpdateRealmCharCount(), AppenderDB::_write(), LuaGlobalFunctions::AuthDBExecute(), LuaGlobalFunctions::AuthDBQuery(), World::BanAccount(), AccountMgr::ChangeEmail(), AccountMgr::ChangePassword(), AccountMgr::ChangeRegEmail(), AccountMgr::ChangeUsername(), RASocket::check_access_level(), RASocket::check_password(), AccountMgr::CheckPassword(), Master::ClearOnlineAccounts(), AccountMgr::CreateAccount(), AccountMgr::DeleteAccount(), AccountMgr::GetEmail(), AccountMgr::GetId(), AccountMgr::GetName(), AccountMgr::GetSecurity(), AccountMgr::GetSecurity(), account_commandscript::HandleAccountAddonCommand(), account_commandscript::HandleAccountBoostAddCommand(), account_commandscript::HandleAccountBoostDelCommand(), account_commandscript::HandleAccountCommand(), account_commandscript::HandleAccountLockCountryCommand(), account_commandscript::HandleAccountLockIpCommand(), account_commandscript::HandleAccountOnlineListCommand(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetGmLevelCommand(), WorldSocket::HandleAuthSession(), ban_commandscript::HandleBanInfoHelper(), ban_commandscript::HandleBanInfoIPCommand(), ban_commandscript::HandleBanListAccountCommand(), ban_commandscript::HandleBanListHelper(), ban_commandscript::HandleBanListIPCommand(), WorldSession::HandleCharCreateCallback(), gm_commandscript::HandleGMListFullCommand(), gm_commandscript::HandleGMNoteCommand(), lookup_commandscript::HandleLookupPlayerAccountCommand(), lookup_commandscript::HandleLookupPlayerEmailCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), misc_commandscript::HandleMuteCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoisOpcode(), World::LoadAutobroadcasts(), World::LoadDBAllowedSecurityLevel(), rbac::RBACData::LoadFromDB(), AccountMgr::LoadRBAC(), main(), World::RemoveBanAccount(), rbac::RBACData::RevokePermission(), Master::Run(), rbac::RBACData::SavePermission(), WorldSession::SetBoosting(), World::SetInitialWorldSettings(), StartDB(), StopDB(), Player::Update(), World::Update(), AccountMgr::UpdateAccountAccess(), RealmList::UpdateRealms(), WorldSession::WorldSession(), and WorldSession::~WorldSession().
| bool stopEvent = false |
Definition at line 52 of file Main.cpp.
Referenced by AuthServerSignalHandler(), and main().