blob: 380830ad695c5065632bca47397330741b0e8d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <cstdio>
#include <cstdlib>
#include "masterserver.h"
int main(int argc, char *argv[])
{
if (argc != 2)
{
puts("Usage: masterserver <port> (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;
}
|