summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-server/Server.hpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2019-01-09 20:51:16 +1300
committerboris <wzn@moneybot.cc>2019-01-09 20:51:16 +1300
commit4db29589a61f2e7cb663c5734f911c02206c7997 (patch)
tree38ec6f25fe1b807ba76e28720badf4a70a87601c /csgo-loader/csgo-server/Server.hpp
parent1fbe9543b16fc6edacfc1e1dca75f5938ebb08a3 (diff)
whole buncha shit
FIXME: loader currently corrupts heap on injection because i am retarded
Diffstat (limited to 'csgo-loader/csgo-server/Server.hpp')
-rw-r--r--csgo-loader/csgo-server/Server.hpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/csgo-loader/csgo-server/Server.hpp b/csgo-loader/csgo-server/Server.hpp
index af07bb0..90def2a 100644
--- a/csgo-loader/csgo-server/Server.hpp
+++ b/csgo-loader/csgo-server/Server.hpp
@@ -5,6 +5,10 @@
// PLEASE UPDATE THEM ACCORDINGLY.
#define SERVER_PORT 0xF2C // Hexadecimal representation of the server port.
+#define CLIENT_HEADER 0x4D42310A
+#define MODULE_HEADER 0x4D42320A
+#define BANREQ_HEADER 0x4D42330A
+
// Core functionality
#include <Networking/TCPServer.hpp>
#include <Networking/WebSocket.hpp>
@@ -13,7 +17,19 @@
#include <Login/RemoteLogin.hpp>
#include <RemoteCode/FileReader.hpp>
-#include <RemoteCode/RemoteInjectionServer.hpp>
+//#include <RemoteCode/RemoteInjectionServer.hpp>
+
+// Let's separate up the connection handlers :)
+namespace Handler
+{
+ // Branches
+ void OnClientConnection(Networking::TCPConnection &Connection);
+ void OnModuleConnection(Networking::TCPConnection &Connection);
+ void OnBanReqConnection(Networking::TCPConnection &Connection);
+
+ // Default handler
+ void OnReceiveConnection(Networking::TCPConnection &Connection);
+}
// It looked nasty in Server.cpp, so I'm putting it here.
namespace Utils