C# Class FinalServerSolution.Authorization

Exibir arquivo Open project: Vitaleks/NFS-World-Server

Public Methods

Method Description
GetPermanentSession ( int userId, string session, MySqlConnection connection, string &outPacket, bool &isGoodResponse ) : void
IsAuthorizated ( int userId, string session, MySqlConnection connection ) : bool
Login ( string packet, MySqlConnection connection, string &outPacket, bool &isGoodResponse ) : void

Private Methods

Method Description
sessionGen ( ) : string

Method Details

GetPermanentSession() public static method

public static GetPermanentSession ( int userId, string session, MySqlConnection connection, string &outPacket, bool &isGoodResponse ) : void
userId int
session string
connection MySql.Data.MySqlClient.MySqlConnection
outPacket string
isGoodResponse bool
return void

IsAuthorizated() public static method

public static IsAuthorizated ( int userId, string session, MySqlConnection connection ) : bool
userId int
session string
connection MySql.Data.MySqlClient.MySqlConnection
return bool

Login() public static method

public static Login ( string packet, MySqlConnection connection, string &outPacket, bool &isGoodResponse ) : void
packet string
connection MySql.Data.MySqlClient.MySqlConnection
outPacket string
isGoodResponse bool
return void