From 73aa9b71c1d8b5c5065d1e474f13601da3ca6b20 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 22 May 2007 15:03:32 +0000 Subject: started the major restructure of svn --- masterserver/src/main.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 masterserver/src/main.cpp (limited to 'masterserver/src/main.cpp') diff --git a/masterserver/src/main.cpp b/masterserver/src/main.cpp new file mode 100644 index 00000000..380830ad --- /dev/null +++ b/masterserver/src/main.cpp @@ -0,0 +1,29 @@ +#include +#include + +#include "masterserver.h" + +int main(int argc, char *argv[]) +{ + if (argc != 2) + { + puts("Usage: masterserver (this will bind the server to the port specified (both udp and tcp)."); + return -1; + } + + int port = atoi(argv[1]); + + CMasterServer masterServer; + masterServer.Init(port); + + while (1) + { + masterServer.Tick(); + + thread_sleep(10); + } + + masterServer.Shutdown(); + + return 0; +} -- cgit 1.4.1