mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 03:44:00 +02:00
- inspired by brazil boy. added a temp block feature for server player to temp block players from the current game in the lobby
This commit is contained in:
@@ -230,6 +230,7 @@ protected:
|
||||
BroadCastSocketThread *broadCastThread;
|
||||
void startBroadCastThread();
|
||||
bool isBroadCastThreadRunning();
|
||||
vector<string> blockIPList;
|
||||
|
||||
public:
|
||||
ServerSocket();
|
||||
@@ -239,6 +240,12 @@ public:
|
||||
Socket *accept();
|
||||
void stopBroadCastThread();
|
||||
|
||||
void addIPAddressToBlockedList(string value);
|
||||
bool isIPAddressBlocked(string value) const;
|
||||
void removeBlockedIPAddress(string value);
|
||||
void clearBlockedIPAddress();
|
||||
bool hasBlockedIPAddresses() const;
|
||||
|
||||
void setBindPort(int port) { boundPort = port; }
|
||||
int getBindPort() const { return boundPort; }
|
||||
bool isPortBound() const { return portBound; }
|
||||
|
Reference in New Issue
Block a user