|
Fimbulwinter Project
Pre-Alpha
An Ragnarok Online Emulator
|
Classes | |
| struct | login_config |
Public Types | |
|
typedef std::map< int, struct OnlineAccount > | online_account_db |
|
typedef std::map< int, struct AuthNode > | auth_node_db |
|
typedef std::map< int, struct CharServerConnection > | char_server_db |
Static Public Member Functions | |
| static void | run () |
| static int | parse_from_client (tcp_connection::pointer cl) |
| Parse Informations From Client ( Auth ) | |
| static int | parse_from_char (tcp_connection::pointer cl) |
| Parse Informations from char server. | |
| static int | authenticate (AuthSessionData *asd) |
| Authenticate. | |
| static void | send_auth_err (AuthSessionData *asd, int result) |
| Authentication Error. | |
| static void | send_auth_ok (AuthSessionData *asd) |
| Authentication Success. | |
| static bool | check_auth (const char *md5key, enum auth_type type, const char *passwd, const char *refpass) |
| Authentication Check. | |
| static void | select_charserver_timeout (int timer, int accid) |
| Select CharServer Timeout. | |
| static void | shutdown_account (int account_id) |
| Shutdown Account. | |
| static void | char_sendallwos (int cs, unsigned char *buf, size_t len) |
| Send all WoS. | |
Static Public Attributes | |
| static config_file * | auth_config |
| static struct login_config | config |
| static tcp_server * | server |
| static soci::session * | database |
| static AccountDB * | accounts |
| static char_server_db | servers |
| static auth_node_db | auth_nodes |
| static online_account_db | online_accounts |
| int AuthServer::authenticate | ( | AuthSessionData * | asd | ) | [static] |
Authenticate.
Authenticate the account into the AuthServer
| AuthSessionData | Account Information Structure |
| void AuthServer::char_sendallwos | ( | int | cs, |
| unsigned char * | buf, | ||
| size_t | len | ||
| ) | [static] |
Send all WoS.
| bool AuthServer::check_auth | ( | const char * | md5key, |
| enum auth_type | type, | ||
| const char * | passwd, | ||
| const char * | refpass | ||
| ) | [static] |
Authentication Check.
Check the auth type
| int AuthServer::parse_from_char | ( | tcp_connection::pointer | cl | ) | [static] |
Parse Informations from char server.
| int AuthServer::parse_from_client | ( | tcp_connection::pointer | cl | ) | [static] |
Parse Informations From Client ( Auth )
| void AuthServer::select_charserver_timeout | ( | int | timer, |
| int | accid | ||
| ) | [static] |
Select CharServer Timeout.
Occurs when the client don't select a CharServer in given time.
| void AuthServer::send_auth_err | ( | AuthSessionData * | asd, |
| int | result | ||
| ) | [static] |
Authentication Error.
Send to the client a login error message
| result | Error Type |
| void AuthServer::send_auth_ok | ( | AuthSessionData * | asd | ) | [static] |
| void AuthServer::shutdown_account | ( | int | accid | ) | [static] |
Shutdown Account.
Remove and account from online list and remove it from the authentication node
1.7.6.1