From a5acd4c9a3b24c9d5af3a8f504e5af053fa7fa09 Mon Sep 17 00:00:00 2001 From: boris Date: Thu, 20 Dec 2018 21:38:04 +1300 Subject: yo is this loss --- csgo-loader/csgo-server/Server.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'csgo-loader/csgo-server/Server.cpp') diff --git a/csgo-loader/csgo-server/Server.cpp b/csgo-loader/csgo-server/Server.cpp index ca6deb4..bf8404d 100644 --- a/csgo-loader/csgo-server/Server.cpp +++ b/csgo-loader/csgo-server/Server.cpp @@ -1,7 +1,8 @@ #include #include -void ConnectionHandler(Networking::TCPConnection &Connection) { +void ConnectionHandler(Networking::TCPConnection &Connection) +{ Login::RemoteLoginServer LoginServer; ByteArray RawLoginHeader = Connection.ReceiveBytes(); @@ -11,11 +12,13 @@ void ConnectionHandler(Networking::TCPConnection &Connection) { Connection.SendBytes(RawServerResponse); } -int main() { +int main() +{ Networking::TCPServer Server; // Create an instance of the TCP server. - if(!Server.Start(3884)) { + if(!Server.Start(3884)) + { printf("[FAIL] Failed to initialise server. (%08lx)\n", WSAGetLastError()); system("pause"); return 1; @@ -25,7 +28,8 @@ int main() { Server += ConnectionHandler; // Accept incoming connections. - while(true) { + while(true) + { Server.AcceptConnection(); } -- cgit v1.2.3