- 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:
Mark Vejvoda
2011-04-13 04:04:08 +00:00
parent 7bf40db4ce
commit 1858240879
5 changed files with 106 additions and 4 deletions

View File

@@ -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; }