diff --git a/bfs/implementations/breadcrumbs/algos/AlgoBreadcrumbs.cpp b/bfs/implementations/breadcrumbs/algos/AlgoBreadcrumbs.cpp index dd7bdf3..0ced946 100644 --- a/bfs/implementations/breadcrumbs/algos/AlgoBreadcrumbs.cpp +++ b/bfs/implementations/breadcrumbs/algos/AlgoBreadcrumbs.cpp @@ -19,7 +19,6 @@ void AlgoBreadcrumbs::loop() sendAttribute(msgCountAttrib); } - Sleep(10); } bool AlgoBreadcrumbs::loopCondition() diff --git a/bfs/src/comms/AlgorithmServer.cpp b/bfs/src/comms/AlgorithmServer.cpp index c0f72f3..cee6fe9 100644 --- a/bfs/src/comms/AlgorithmServer.cpp +++ b/bfs/src/comms/AlgorithmServer.cpp @@ -78,11 +78,10 @@ void AlgorithmServer::serverThreadRuntime() // Accept a client socket while (continueThread) { - fprintf(stderr, "Listening for clients...\n"); + cout << "Listening for clients..." << endl; ClientSocket = accept(ListenSocket, NULL, NULL); - fprintf(stderr, "Hello new client!\n"); if (ClientSocket == INVALID_SOCKET) { - printf("accept failed with error: %d\n", WSAGetLastError()); + cout << "accept failed with error: " << WSAGetLastError() << endl; AcceptFailures++; if (AcceptFailures >= MAX_ACCEPT_FAILURES) break; @@ -115,7 +114,7 @@ void AlgorithmServer::serverThreadRuntime() client->startComms(); } else { - printf("Client attempted connection when (%d) clients are already connected", numClients); + cout << "Client attempted connection when at the client limit " << numClients << " clients are already connected" << endl; } unlockClientThreadsMutex(); }