Skip to content
Snippets Groups Projects
Commit ac18a709 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[EchoServer] Log if 'quit' was received

parent 3b748b1d
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ auto main(int argc, char* argv[]) -> int {
if (unlikely(bytes_recv == 5 && strncmp("quit\n", buf, bytes_recv) == 0)) {
quit = true;
std::cout << "Echoserver received 'quit' command from client" << std::endl;
Runtime::getRuntime()->initiateTermination();
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment