|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Start the server. More...
#include <Master.h>
Public Member Functions | |
| int | Run () |
| Main function. | |
| void | SetDatabaseAuth (const char *authDB) |
| void | SetDatabaseChars (const char *charactersDB) |
| void | SetDatabaseHost (const char *db_Host) |
| void | SetDatabasePassword (const char *db_Password) |
| void | SetDatabasePort (const char *db_Port) |
| void | SetDatabaseUser (const char *db_User) |
| void | SetDatabaseWorld (const char *worldDB) |
| void | SetNoUseConfigDatabaseInfo (bool noUseConfigDatabaseInfo) |
Private Member Functions | |
| bool | _StartDB () |
| Initialize connection to the databases. | |
| void | _StopDB () |
| void | ClearOnlineAccounts () |
| Clear 'online' status for all accounts with characters in this realm. | |
Private Attributes | |
| const char * | _authDB |
| const char * | _charactersDB |
| const char * | _dbHost |
| const char * | _dbPassword |
| const char * | _dbPort |
| const char * | _dbUser |
| bool | _noUseConfigDatabaseInfo = false |
| const char * | _worldDB |
|
private |
Initialize connection to the databases.
Definition at line 630 of file Master.cpp.
References _authDB, _charactersDB, _dbHost, _dbPassword, _dbPort, _dbUser, _noUseConfigDatabaseInfo, _worldDB, CharacterDatabase, ClearOnlineAccounts(), Field::GetString(), Field::GetUInt32(), MySQL::Library_Init(), LOGIN_SEL_REALMLIST, LoginDatabase, realmNameStore, sConfigMgr, PreparedStatement::setInt32(), SF_LOG_ERROR, SF_LOG_INFO, sWorld, and WorldDatabase.
Referenced by Run().
|
private |
Definition at line 800 of file Master.cpp.
References CharacterDatabase, MySQL::Library_End(), LoginDatabase, and WorldDatabase.
Referenced by Run().
|
private |
Clear 'online' status for all accounts with characters in this realm.
Definition at line 810 of file Master.cpp.
References CharacterDatabase, LoginDatabase, and realmNameStore.
Referenced by _StartDB(), and Run().
| int Master::Run | ( | ) |
Main function.
worldserver PID file creation
Definition at line 352 of file Master.cpp.
References _StartDB(), _StopDB(), ClearOnlineAccounts(), CONFIG_PORT_WORLD, CreatePIDFile(), ERROR_EXIT_CODE, World::GetExitCode(), SFSoapService::Join(), Skyfire::Asio::IoContextTaskRunner::Join(), LoginDatabase, REALM_FLAG_INVALID, REALM_FLAG_OFFLINE, realmNameStore, sConfigMgr, FreezeDetectorRunnable::SetDelayTime(), BigNumber::SetRand(), SF_LOG_ERROR, SF_LOG_INFO, SKYFIREWORLD_CONFIG_VERSION, SFSoapService::Start(), Skyfire::Asio::IoContextTaskRunner::Start(), World::StopNow(), sWorld, sWorldSocketMgr, and WorldServerSignalHandler().
|
inline |
|
inline |
Definition at line 28 of file Master.h.
References _charactersDB.
|
inline |
|
inline |
Definition at line 26 of file Master.h.
References _dbPassword.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 22 of file Master.h.
References _noUseConfigDatabaseInfo.
|
private |
Definition at line 42 of file Master.h.
Referenced by _StartDB(), and SetDatabaseAuth().
|
private |
Definition at line 43 of file Master.h.
Referenced by _StartDB(), and SetDatabaseChars().
|
private |
Definition at line 38 of file Master.h.
Referenced by _StartDB(), and SetDatabaseHost().
|
private |
Definition at line 41 of file Master.h.
Referenced by _StartDB(), and SetDatabasePassword().
|
private |
Definition at line 39 of file Master.h.
Referenced by _StartDB(), and SetDatabasePort().
|
private |
Definition at line 40 of file Master.h.
Referenced by _StartDB(), and SetDatabaseUser().
|
private |
Definition at line 37 of file Master.h.
Referenced by _StartDB(), and SetNoUseConfigDatabaseInfo().
|
private |
Definition at line 44 of file Master.h.
Referenced by _StartDB(), and SetDatabaseWorld().