From b9b57b8cc0fa73d3737dd2fea63b61dbd817a9b3 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Mon, 8 Apr 2013 20:10:19 -0700 Subject: [PATCH] Packet reply changed to constant in packetHeaders.h --- shared/src/AgentList.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/src/AgentList.cpp b/shared/src/AgentList.cpp index 221942e5dc..c3f4183fcd 100644 --- a/shared/src/AgentList.cpp +++ b/shared/src/AgentList.cpp @@ -82,8 +82,7 @@ void AgentList::processAgentData(sockaddr *senderAddress, void *packetData, size case PACKET_HEADER_PING: { // ping from another agent //std::cout << "Got ping from " << inet_ntoa(((sockaddr_in *)senderAddress)->sin_addr) << "\n"; - char reply[] = "R"; - agentSocket.send(senderAddress, reply, 1); + agentSocket.send(senderAddress, &PACKET_HEADER_PING_REPLY, 1); break; } case PACKET_HEADER_PING_REPLY: {