Small note

This commit is contained in:
dawidg81 2026-03-08 15:53:52 +01:00
commit 0df1192679
2 changed files with 3 additions and 1 deletions

View file

@ -58,6 +58,7 @@ int Socket::winAccept(){
continue; continue;
} }
log.info("Client connected"); log.info("Client connected");
// handling client starts here
closesocket(clientSocket); closesocket(clientSocket);
} }
return 0; return 0;

View file

@ -2,6 +2,7 @@
#include "Socket.hpp" #include "Socket.hpp"
#include <winsock.h> #include <winsock.h>
#include <thread>
bool running = false; bool running = false;
@ -16,7 +17,7 @@ int main() {
socket.winBind(); socket.winBind();
socket.winListen(); socket.winListen();
socket.running = true; socket.running = true;
socket.winAccept(); socket.winAccept();
return 0; return 0;