mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 21:57:10 +02:00
remove debugging for DS and injector communication
This commit is contained in:
parent
02eadd9046
commit
49b9471d0c
2 changed files with 0 additions and 6 deletions
|
@ -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 ||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue