1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 15:49:56 +00:00
openmw-tes3mp/apps/master/main.cpp
2017-04-23 13:39:43 +08:00

30 lines
No EOL
509 B
C++

#include <iostream>
#include <Kbhit.h>
#include <RakSleep.h>
#include "MasterServer.hpp"
using namespace RakNet;
using namespace std;
int main()
{
MasterServer masterServer(2000, 25560);
masterServer.Start();
/*while(true)
{
if(kbhit())
{
if(getch() == 'e')
{
cout << endl;
masterServer.Stop(true);
break;
}
}
RakSleep(100);
}*/
masterServer.Wait();
return 0;
}