C# Class BF2Statistics.Gamespy.MasterClient

Inheritance: IDisposable
Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Dispose ( bool DisposeEventArgs = false ) : void

Dispose method to be called by the server

MasterClient ( GamespyTcpStream client ) : System

Constructor

Protected Methods

Method Description
ParseRequest ( string message ) : void

Takes a message sent through the Stream and sends back a response

Private Methods

Method Description
FixFilter ( string filter ) : string
FixFilterOperators ( string filter ) : string
FixFilterQuotes ( string filter ) : string
GetField ( GameServer server, string fieldName ) : string

Fetches a property by fieldName from the provided Server Object

GetParameterValue ( string parts, string parameter ) : string

A simple method of getting the value of the passed parameter key, from the returned array of data from the client

IsGroup ( string filter, int i, int &length, bool previous = false ) : bool
IsLogical ( string filter, int i, int &length, bool previous = false ) : bool
IsOperator ( string filter, int i, int &length, bool previous = false ) : bool
PackServerList ( string filter, string fields ) : byte[]

Packs and prepares the response to a Server List request from the clients game.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

Dispose method to be called by the server
public Dispose ( bool DisposeEventArgs = false ) : void
DisposeEventArgs bool
return void

MasterClient() public method

Constructor
public MasterClient ( GamespyTcpStream client ) : System
client BF2Statistics.Gamespy.Net.GamespyTcpStream
return System

ParseRequest() protected method

Takes a message sent through the Stream and sends back a response
protected ParseRequest ( string message ) : void
message string
return void