Added console server app. First try. Depends on qt for locale-specific stuff. Cannot start a game yet, only join is possible. Cannot run multiple games yet.
Not yet as service/daemon, because testing is easier with a simple console app.
This commit is contained in:
@@ -196,6 +196,17 @@ void Session::terminateNetworkServer()
|
||||
myNetServer = 0;
|
||||
}
|
||||
|
||||
void Session::waitForNetworkServer(unsigned timeoutMsec)
|
||||
{
|
||||
if (!myNetServer)
|
||||
return; // already terminated
|
||||
if (myNetServer->Join(timeoutMsec))
|
||||
{
|
||||
delete myNetServer;
|
||||
myNetServer = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void Session::sendClientPlayerAction()
|
||||
{
|
||||
if (!myNetClient)
|
||||
|
||||
Reference in New Issue
Block a user