Use server manager to allow SCTP and TCP at the same time.

This commit is contained in:
lotodore
2007-11-16 22:34:38 +00:00
parent 3d4bc78e64
commit bc16e26616
10 changed files with 296 additions and 124 deletions
+3 -1
View File
@@ -24,6 +24,7 @@
#include <gui/generic/serverguiwrapper.h>
#include <net/socket_startup.h>
#include <core/loghelper.h>
#include <core/thread.h>
#include <csignal>
@@ -96,7 +97,8 @@ main(int argc, char *argv[])
myServerGuiInterface->getSession().startNetworkServer();
while (!g_pokerthTerminate)
{
if (myServerGuiInterface->getSession().waitForNetworkServer(100))
Thread::Msleep(100);
if (myServerGuiInterface->getSession().pollNetworkServerTerminated())
g_pokerthTerminate = true;
}
myServerGuiInterface->getSession().terminateNetworkServer();