diff options
| author | boris <wzn@moneybot.cc> | 2019-01-02 21:11:03 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2019-01-02 21:11:03 +1300 |
| commit | c0f1354a301ce2a2fc867a89fafdde4571c07c02 (patch) | |
| tree | ea628b53a41f7d532efe100b94a41e4ca0429767 /csgo-loader/csgo-server/Server.cpp | |
| parent | d1ec3d3bb3a87a08e1c9348ca6e482549ebde664 (diff) | |
6IX9INE "Billy" (WSHH Exclusive - Official Music Video)
Diffstat (limited to 'csgo-loader/csgo-server/Server.cpp')
| -rw-r--r-- | csgo-loader/csgo-server/Server.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/csgo-loader/csgo-server/Server.cpp b/csgo-loader/csgo-server/Server.cpp index 580c17a..a78bb9a 100644 --- a/csgo-loader/csgo-server/Server.cpp +++ b/csgo-loader/csgo-server/Server.cpp @@ -1,6 +1,16 @@ #include <Server.hpp>
-void ConnectionHandler(Networking::TCPConnection &Connection) { }
+void ConnectionHandler(Networking::TCPConnection &Connection) {
+ Login::RemoteLoginServer LoginServer;
+
+ ByteArray LoginHeader = Connection.ReceiveBytes();
+
+ if(!LoginServer.Start(LoginHeader))
+ return;
+
+ ByteArray LoginReply = LoginServer.GetResponse();
+ Connection.SendBytes(LoginReply);
+}
int __stdcall WinMain(HINSTANCE, HINSTANCE, char*, int)
{
|
