mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 09:33:29 +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);
|
||||
break;
|
||||
}
|
||||
case 'R': {
|
||||
case PACKET_HEADER_PING_REPLY: {
|
||||
// ping reply from another agent
|
||||
//std::cout << "Got ping reply from " << inet_ntoa(((sockaddr_in *)senderAddress)->sin_addr) << "\n";
|
||||
handlePingReply(senderAddress);
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
|
||||
const char PACKET_HEADER_DOMAIN = 'D';
|
||||
const char PACKET_HEADER_PING = 'P';
|
||||
const char PACKET_HEADER_PING_REPLY = 'R';
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue