You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
509 B
C++
30 lines
509 B
C++
8 years ago
|
#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;
|
||
|
}
|