diff options
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();
}
|
