C# Class BF2Statistics.Gamespy.GpcmServer

Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Méthodes publiques

Méthode Description
ForceLogout ( int Pid ) : bool

Forces the logout of a connected client

GpcmServer ( ) : System

Creates a new Gamespy Client Manager object

IsConnected ( int Pid ) : bool

Returns whether the specified player is currently connected

Log ( string message ) : void

This method is used to store a message in the LoginServer.log file

Shutdown ( ) : void

Shutsdown the ClientManager server and socket

Méthodes protégées

Méthode Description
CheckTimeout ( GpcmClient client ) : void

Checks the timeout on a client connection. This method is used to detect hanging connections, and forcefully disconnects them.

ProcessAccept ( GamespyTcpStream Stream ) : void

When a new connection is established, we the parent class are responsible for handling the processing

Private Methods

Méthode Description
GpcmClient_OnDisconnect ( GpcmClient client ) : void

Callback for when a connection had disconnected

GpcmClient_OnSuccessfulLogin ( object sender ) : void

Callback for a successful login

Method Details

CheckTimeout() protected méthode

Checks the timeout on a client connection. This method is used to detect hanging connections, and forcefully disconnects them.
protected CheckTimeout ( GpcmClient client ) : void
client GpcmClient
Résultat void

ForceLogout() public méthode

Forces the logout of a connected client
public ForceLogout ( int Pid ) : bool
Pid int The players ID
Résultat bool

GpcmServer() public méthode

Creates a new Gamespy Client Manager object
public GpcmServer ( ) : System
Résultat System

IsConnected() public méthode

Returns whether the specified player is currently connected
public IsConnected ( int Pid ) : bool
Pid int The players ID
Résultat bool

Log() public static méthode

This method is used to store a message in the LoginServer.log file
public static Log ( string message ) : void
message string The message to be written to the log file
Résultat void

ProcessAccept() protected méthode

When a new connection is established, we the parent class are responsible for handling the processing
protected ProcessAccept ( GamespyTcpStream Stream ) : void
Stream GamespyTcpStream A GamespyTcpStream object that wraps the I/O AsyncEventArgs and socket
Résultat void

Shutdown() public méthode

Shutsdown the ClientManager server and socket
public Shutdown ( ) : void
Résultat void