C# Class BF2Statistics.Gamespy.CDKeyServer

This class is used to replicate the Gamespy CD key servers. All cd keys received are automatically considered valid and a positve response is replied to the bf2 server
master.gamespy.com:29910
Inheritance: GamespyUdpSocket
Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Méthodes publiques

Méthode Description
CDKeyServer ( LogWriter DebugLog ) : System

Creates a new instance of CDKeyServer

Shutdown ( ) : void

Closes the underlying socket

Méthodes protégées

Méthode Description
ProcessAccept ( GamespyUdpPacket Packet ) : void

Called when a connection comes in on the CDKey server

Private Methods

Méthode Description
ConvertToKeyValue ( string parts ) : string>.Dictionary

Converts a received parameter array from the client string to a keyValue pair dictionary

Xor ( string s ) : string

Encrypts / Descrypts the CDKey Query String

Method Details

CDKeyServer() public méthode

Creates a new instance of CDKeyServer
public CDKeyServer ( LogWriter DebugLog ) : System
DebugLog BF2Statistics.Logging.LogWriter The GamespyDebug.log logwriter object
Résultat System

ProcessAccept() protected méthode

Called when a connection comes in on the CDKey server
protected ProcessAccept ( GamespyUdpPacket Packet ) : void
Packet BF2Statistics.Gamespy.Net.GamespyUdpPacket
Résultat void

Shutdown() public méthode

Closes the underlying socket
public Shutdown ( ) : void
Résultat void