remove debugging for DS and injector communication

This commit is contained in:
Stephen Birarda 2013-06-18 13:08:14 -07:00
parent 02eadd9046
commit 49b9471d0c
2 changed files with 0 additions and 6 deletions

View file

@ -292,10 +292,7 @@ Agent* AgentList::addOrUpdateAgent(sockaddr* publicSocket, sockaddr* localSocket
if (socketMatch(publicSocket, localSocket)) {
// likely debugging scenario with two agents on local network
// set the agent active right away
printf("Activating the public socket for agent with type %c\n", agentType);
newAgent->activatePublicSocket();
} else {
printf("No match for agent with type %c\n", agentType);
}
if (newAgent->getType() == AGENT_TYPE_VOXEL_SERVER ||

View file

@ -39,9 +39,6 @@ bool socketMatch(const sockaddr* first, const sockaddr* second) {
const sockaddr_in *firstIn = (const sockaddr_in *) first;
const sockaddr_in *secondIn = (const sockaddr_in *) second;
printf("First - %s, %d\n", inet_ntoa(firstIn->sin_addr), ntohs(firstIn->sin_port));
printf("Second - %s, %d\n", inet_ntoa(secondIn->sin_addr), ntohs(secondIn->sin_port));
return firstIn->sin_addr.s_addr == secondIn->sin_addr.s_addr
&& firstIn->sin_port == secondIn->sin_port;
} else {