diff options
| author | boris <wzn@moneybot.cc> | 2018-12-29 20:59:57 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2018-12-29 20:59:57 +1300 |
| commit | bdb6ac5f940008bcd836e3c5f0a708f4b8f04865 (patch) | |
| tree | 9d3ba5e0816dfd6295f8e38e1a865d061f1168e1 /csgo-loader/csgo-server/Server.cpp | |
| parent | 81a3987fc17f99d2092018ac266882f4533cc27e (diff) | |
protection shit
Diffstat (limited to 'csgo-loader/csgo-server/Server.cpp')
| -rw-r--r-- | csgo-loader/csgo-server/Server.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/csgo-loader/csgo-server/Server.cpp b/csgo-loader/csgo-server/Server.cpp index d71a758..3b6bdea 100644 --- a/csgo-loader/csgo-server/Server.cpp +++ b/csgo-loader/csgo-server/Server.cpp @@ -1,5 +1,10 @@ #include <Server.hpp>
+void ConnectionHandler(Networking::TCPConnection &)
+{
+
+}
+
int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
{
// Open a debugging console.
@@ -13,6 +18,10 @@ int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int) if(Result)
{
+ // Attach our connection handler.
+ Server += ConnectionHandler;
+
+ // Accept any incoming connections.
for(;;)
Server.AcceptConnection();
}
|
