Property | Type | Description | |
---|---|---|---|
ConnectionId | int | ||
Created | System.DateTime |
Property | Type | Description | |
---|---|---|---|
Crc |
Method | Description | |
---|---|---|
Disconnect ( int code ) : void |
Logs the client out of the game client, and closes the stream Codes: 0 => Client sends the "logout" command 1 => The login timer elapsed and the client wasnt logged in or this object was disposed, forcefully disconnected 2 => Invalid login query, or username was incorrect 3 => Incorrect Password 4 => An error occured while trying to login the client (could be database related) 5 => Cant create account, username exists already 6 => Error Creating new account in database 7 => Invalid query for account creation, or an exception was thrown while trying to create account 8 => Remote Connection closed the Stream or was un-readchable 9 => Forced server shutdown [No events called, database sessions are not updated, and EventArgs are disposed] |
|
Dispose ( ) : void |
Disposes of the client object. The connection is no longer closed here and the Disconnect even is NO LONGER fired
|
|
Equals ( object Obj ) : bool | ||
GetHashCode ( ) : int | ||
GpcmClient ( |
Constructor
|
|
ProcessLogin ( string>.Dictionary |
This method verifies the login information sent by the client, and returns encrypted data for the client to verify as well
|
|
SendKeepAlive ( ) : void |
Polls the connection, and checks for drops
|
|
SendServerChallenge ( ) : void |
This method starts off by sending a random string 10 characters in length, known as the Server challenge key. This is used by the client to return a client challenge key, which is used to validate login information later.
|
Method | Description | |
---|---|---|
ConvertToKeyValue ( string parts ) : string>.Dictionary |
Converts a recived parameter array from the client string to a keyValue pair dictionary
|
|
CreateNewUser ( string>.Dictionary |
Whenever the "newuser" command is recieved, this method is called to add the new users information into the database
|
|
GenerateProof ( string challenge1, string challenge2 ) : string |
Generates an MD5 hash, which is used to verify the clients login information
|
|
GenerateRandomString ( int length ) : string |
Generates a random alpha-numeric string
|
|
GenerateSig ( ) : string |
Generates a random signature
|
|
SendProfile ( ) : void |
This method is called when the client requests for the Account profile
|
|
Stream_DataReceived ( string message ) : void |
Event called when a complete message has been recieved
|
|
Stream_OnDisconnect ( ) : void |
Event fired when the stream disconnects. Even though its 1 line, we un-register it at one point, so it needs to be here
|
|
UpdateUser ( string>.Dictionary |
Updates the Users Country code when sent by the client
|
public Disconnect ( int code ) : void | ||
code | int | /// The disconnect code. If set to 9, the OnDisconect event will not be called, the database /// will not be updated to reset everyone's session code, and the EventArgs objects will NOT /// be returned to the IO pool. You should only set to 9 for a planned server shutdown. /// |
return | void |
public GpcmClient ( |
||
ConnectionStream | ||
ConnectionId | int | |
return | System |
public ProcessLogin ( string>.Dictionary |
||
Recv | string>.Dictionary | |
return | void |
protected static Crc16,BF2Statistics.Utilities Crc | ||
return |