Fimbulwinter Project  Pre-Alpha
An Ragnarok Online Emulator
Classes | Public Types | Static Public Member Functions | Static Public Attributes
AuthServer Class Reference

List of all members.

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_fileauth_config
static struct login_config config
static tcp_serverserver
static soci::session * database
static AccountDBaccounts
static char_server_db servers
static auth_node_db auth_nodes
static online_account_db online_accounts

Member Function Documentation

int AuthServer::authenticate ( AuthSessionData asd) [static]

Authenticate.

Authenticate the account into the AuthServer

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
Parameters:
AuthSessionDataAccount Information Structure
Returns:
0 Unknown Account
1 Invalid Password
2 Connection Refused(Acc Expired)
6 Connection Refused(Acc Banned)
-1 Success
void AuthServer::char_sendallwos ( int  cs,
unsigned char *  buf,
size_t  len 
) [static]

Send all WoS.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
bool AuthServer::check_auth ( const char *  md5key,
enum auth_type  type,
const char *  passwd,
const char *  refpass 
) [static]

Authentication Check.

Check the auth type

Author:
Fimbulwinter Development Team
GreenBox/Castor
Date:
09/12/11
int AuthServer::parse_from_char ( tcp_connection::pointer  cl) [static]

Parse Informations from char server.

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
int AuthServer::parse_from_client ( tcp_connection::pointer  cl) [static]

Parse Informations From Client ( Auth )

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
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.

Author:
Fimbulwinter Development Team
GreenBox
Date:
09/12/11
void AuthServer::send_auth_err ( AuthSessionData asd,
int  result 
) [static]

Authentication Error.

Send to the client a login error message

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
Parameters:
resultError Type
void AuthServer::send_auth_ok ( AuthSessionData asd) [static]

Authentication Success.

Connect a Account into Auth Server

Author:
Fimbulwinter Development Team
GreenBox
Date:
08/12/11
void AuthServer::shutdown_account ( int  accid) [static]

Shutdown Account.

Remove and account from online list and remove it from the authentication node

Author:
Fimbulwinter Development Team
GreenBox
Date:
09/12/11

The documentation for this class was generated from the following files:
 All Classes Functions