diff options
Diffstat (limited to 'csgo-loader/csgo-server/Server.cpp')
| -rw-r--r-- | csgo-loader/csgo-server/Server.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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 <Networking/TCPServer.hpp>
#include <Login/RemoteLogin.hpp>
-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();
}
|
