diff --git a/src/server/main.cc b/src/server/main.cc index 1232f6c..52207c6 100644 --- a/src/server/main.cc +++ b/src/server/main.cc @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -39,6 +40,12 @@ int main() { while (true) { char buffer[1024] = {0}; recv(clientSocket, buffer, sizeof(buffer), 0); + + if (strlen(buffer) <= 0) { + cout << "Client seems to have just straight up left :(" << endl; + break; + } + cout << buffer << endl; }