mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 16:13:28 +02:00
Packet reply changed to constant in packetHeaders.h
This commit is contained in:
parent
032fff9d57
commit
b9b57b8cc0
1 changed files with 1 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue