C# Class FinalServerSolution.Authorization

Afficher le fichier Open project: Vitaleks/NFS-World-Server

Méthodes publiques

Méthode 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

Méthode Description
sessionGen ( ) : string

Method Details

GetPermanentSession() public static méthode

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
Résultat void

IsAuthorizated() public static méthode

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

Login() public static méthode

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