Added simple server. Added session establishment (only test code). Added sender thread.

This commit is contained in:
lotodore
2007-02-25 23:16:26 +00:00
parent 06ed84cb7b
commit d4855a2ca2
17 changed files with 582 additions and 8 deletions
+5
View File
@@ -25,6 +25,7 @@ class GuiInterface;
class Game;
class ConfigFile;
class ClientThread;
class ServerThread;
class Session{
public:
@@ -39,6 +40,9 @@ public:
void startNetworkClient(const std::string &serverAddress, unsigned serverPort, bool ipv6, const std::string &pwd);
void terminateNetworkClient();
void startNetworkServer();
void terminateNetworkServer();
void setActualGameID(const int& theValue) { actualGameID = theValue; }
int getActualGameID() const { return actualGameID; }
@@ -49,6 +53,7 @@ private:
int actualGameID;
ClientThread *myNetClient;
ServerThread *myNetServer;
Game *actualGame;
GuiInterface *myGui;