ServerFrameCounter++;
}
+void ExitNetworkServer(int exit_value)
+{
+ Error(ERR_NETWORK_SERVER, "exiting network server");
+
+ exit(exit_value);
+}
+
/* the following is not used for a standalone server;
the pointer points to an integer containing the port-number */
int NetworkServerThread(void *ptr)
if (port == 0)
port = DEFAULT_SERVER_PORT;
+ // if only running the network server, exit on Ctrl-C
+ if (serveronly)
+ signal(SIGINT, ExitNetworkServer);
+
if (!serveronly)
onceonly = 1;