mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +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: {
|
case PACKET_HEADER_PING: {
|
||||||
// ping from another agent
|
// ping from another agent
|
||||||
//std::cout << "Got ping from " << inet_ntoa(((sockaddr_in *)senderAddress)->sin_addr) << "\n";
|
//std::cout << "Got ping from " << inet_ntoa(((sockaddr_in *)senderAddress)->sin_addr) << "\n";
|
||||||
char reply[] = "R";
|
agentSocket.send(senderAddress, &PACKET_HEADER_PING_REPLY, 1);
|
||||||
agentSocket.send(senderAddress, reply, 1);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PACKET_HEADER_PING_REPLY: {
|
case PACKET_HEADER_PING_REPLY: {
|
||||||
|
|
Loading…
Reference in a new issue