mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:51:17 +02:00
add the ping reply header
This commit is contained in:
parent
f018d8e323
commit
6f8808e565
2 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,7 @@ void AgentList::processAgentData(sockaddr *senderAddress, void *packetData, size
|
||||||
agentSocket.send(senderAddress, reply, 1);
|
agentSocket.send(senderAddress, reply, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'R': {
|
case PACKET_HEADER_PING_REPLY: {
|
||||||
// ping reply from another agent
|
// ping reply from another agent
|
||||||
//std::cout << "Got ping reply from " << inet_ntoa(((sockaddr_in *)senderAddress)->sin_addr) << "\n";
|
//std::cout << "Got ping reply from " << inet_ntoa(((sockaddr_in *)senderAddress)->sin_addr) << "\n";
|
||||||
handlePingReply(senderAddress);
|
handlePingReply(senderAddress);
|
||||||
|
|
|
@ -11,5 +11,6 @@
|
||||||
|
|
||||||
const char PACKET_HEADER_DOMAIN = 'D';
|
const char PACKET_HEADER_DOMAIN = 'D';
|
||||||
const char PACKET_HEADER_PING = 'P';
|
const char PACKET_HEADER_PING = 'P';
|
||||||
|
const char PACKET_HEADER_PING_REPLY = 'R';
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue