C# 클래스 BF2Statistics.Gamespy.GpcmServer

파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GpcmClient_OnDisconnect ( GpcmClient client ) : void

Callback for when a connection had disconnected

GpcmClient_OnSuccessfulLogin ( object sender ) : void

Callback for a successful login

메소드 상세

CheckTimeout() 보호된 메소드

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
리턴 void

ForceLogout() 공개 메소드

Forces the logout of a connected client
public ForceLogout ( int Pid ) : bool
Pid int The players ID
리턴 bool

GpcmServer() 공개 메소드

Creates a new Gamespy Client Manager object
public GpcmServer ( ) : System
리턴 System

IsConnected() 공개 메소드

Returns whether the specified player is currently connected
public IsConnected ( int Pid ) : bool
Pid int The players ID
리턴 bool

Log() 공개 정적인 메소드

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
리턴 void

ProcessAccept() 보호된 메소드

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
리턴 void

Shutdown() 공개 메소드

Shutsdown the ClientManager server and socket
public Shutdown ( ) : void
리턴 void