blob: d71a758a5ac37025213809ca6eaf13475a050940 (
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
|
#include <Server.hpp>
int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
{
// Open a debugging console.
Utils::OpenConsole();
// Create an instance of the TCP server.
Networking::TCPServer Server;
bool Result = Server.Start(SERVER_PORT);
if(Result)
{
for(;;)
Server.AcceptConnection();
}
if(!Result)
printf("[FAIL] Failed to initialise server. (%08lx)\n", WSAGetLastError());
system("pause");
}
|