diff options
| author | boris <wzn@moneybot.cc> | 2018-12-20 21:38:04 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-12-20 21:38:04 +1300 |
| commit | a5acd4c9a3b24c9d5af3a8f504e5af053fa7fa09 (patch) | |
| tree | 27bc30d3f35e5daaaa15ee6de066119df8d352c7 /csgo-loader/csgo-server/Server.cpp | |
| parent | 77b52da44b263df4884be2f35f885d8edccbb6fa (diff) | |
yo is this loss
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();
}
|
