From 9b5225dcb1978ec1b5525e5cf6c220b68cdeb162 Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Mon, 9 Mar 2026 16:51:33 +0100 Subject: [PATCH] Removed old include, beginning to handle player identification packet --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3d4422f..75598ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,6 @@ #include "Logger.hpp" #include "Socket.hpp" -#include #include using namespace std; @@ -23,11 +22,12 @@ int main() { * This is where client handling starts. * RECEIVING CLIENT PACKET * 1. Receive raw bytes, - * 2. Parse bytes from packet, - * 3. Put into components understandable for server. + * 2. Parse bytes from packet, put into components understandable for server. */ char buffer[131] = {}; buffer[0] = recv(clientSocket, buffer, sizeof(buffer), 0); + uint8_t packID = buffer[0]; + uint8_t protVer = buffer [1]; } return 0;