diff --git a/src/Socket.cpp b/src/Socket.cpp index b117076..33eb990 100644 --- a/src/Socket.cpp +++ b/src/Socket.cpp @@ -58,6 +58,7 @@ int Socket::winAccept(){ continue; } log.info("Client connected"); + // handling client starts here closesocket(clientSocket); } return 0; diff --git a/src/main.cpp b/src/main.cpp index 29891be..e387ddd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,6 +2,7 @@ #include "Socket.hpp" #include +#include bool running = false; @@ -16,7 +17,7 @@ int main() { socket.winBind(); socket.winListen(); - socket.running = true; + socket.running = true; socket.winAccept(); return 0;