Property | Type | Description | |
---|---|---|---|
Servers | GameServer>.ConcurrentDictionary |
Method | Description | |
---|---|---|
MasterServer ( int &Port, |
||
Shutdown ( ) : void |
Shutsdown the Master server and socket
|
Method | Description | |
---|---|---|
ProcessAccept ( |
Callback method for when the UDP Master socket recieves a connection
|
Method | Description | |
---|---|---|
CheckServers ( ) : void |
Executed every 5 seconds or so... Removes all servers that haven't reported in awhile, assuming they are offline
|
|
ParseServerDetails ( |
Executed every 60 seconds per server (Every 3rd ping), the BF2 server sends a full list of data that describes its current state, and this method is used to parse that data, and update the server in the Servers list
|
|
ValidateServer ( |
When a server sends data initially, it needs to be validated with a validation code. Once that has happened, this method is called, and it allows the server to be seen in the Serverlist. This method also corrects local IP addresses by converting them to External IP addresses, so that external clients get a good IP to connect to.
|
public MasterServer ( int &Port, |
||
Port | int | |
DebugLog | ||
return | System |
protected ProcessAccept ( |
||
Packet | ||
return | void |