Skip to content

Commit

Permalink
Switching some printfs to couts
Browse files Browse the repository at this point in the history
  • Loading branch information
grf14003 committed May 8, 2020
1 parent dc14af5 commit fadc4b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion bfs/implementations/breadcrumbs/algos/AlgoBreadcrumbs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ void AlgoBreadcrumbs::loop()

sendAttribute(msgCountAttrib);
}
Sleep(10);
}

bool AlgoBreadcrumbs::loopCondition()
Expand Down
7 changes: 3 additions & 4 deletions bfs/src/comms/AlgorithmServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit fadc4b2

Please sign in to comment.