add the ping reply header

This commit is contained in:
Stephen Birarda 2013-04-08 18:25:21 -07:00
parent f018d8e323
commit 6f8808e565
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -11,5 +11,6 @@
const char PACKET_HEADER_DOMAIN = 'D';
const char PACKET_HEADER_PING = 'P';
const char PACKET_HEADER_PING_REPLY = 'R';
#endif