Свойство | Тип | Описание | |
---|---|---|---|
Servers | GameServer>.ConcurrentDictionary |
Метод | Описание | |
---|---|---|
MasterServer ( int &Port, |
||
Shutdown ( ) : void |
Shutsdown the Master server and socket
|
Метод | Описание | |
---|---|---|
ProcessAccept ( |
Callback method for when the UDP Master socket recieves a connection
|
Метод | Описание | |
---|---|---|
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 | ||
Результат | System |
protected ProcessAccept ( |
||
Packet | ||
Результат | void |