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
显示文件 Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
CDKeyServer ( LogWriter DebugLog ) : System

Creates a new instance of CDKeyServer

Shutdown ( ) : void

Closes the underlying socket

Protected Methods

Method Description
ProcessAccept ( GamespyUdpPacket Packet ) : void

Called when a connection comes in on the CDKey server

Private Methods

Method 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 method

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

ProcessAccept() protected method

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

Shutdown() public method

Closes the underlying socket
public Shutdown ( ) : void
return void