mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
handle ping and reply and domain server packets in avatar mixer
This commit is contained in:
parent
cf1f087b38
commit
66ccc9921b
1 changed files with 9 additions and 7 deletions
|
@ -118,13 +118,15 @@ int main(int argc, char* argv[])
|
|||
|
||||
while (true) {
|
||||
if (agentList.getAgentSocket().receive(agentAddress, packetData, &receivedBytes)) {
|
||||
if (packetData[0] == PACKET_HEADER_HEAD_DATA) {
|
||||
|
||||
if (agentList.addOrUpdateAgent(agentAddress, agentAddress, AGENT_TYPE_INTERFACE, agentList.getLastAgentId())) {
|
||||
agentList.increaseAgentId();
|
||||
}
|
||||
|
||||
agentList.updateAgentWithData(agentAddress, (void *)packetData, receivedBytes);
|
||||
switch (packetData[0]) {
|
||||
case PACKET_HEADER_HEAD_DATA:
|
||||
// this is positional data from an agent
|
||||
agentList.updateAgentWithData(agentAddress, (void *)packetData, receivedBytes);
|
||||
break;
|
||||
default:
|
||||
// hand this off to the AgentList
|
||||
agentList.processAgentData(agentAddress, (void *)packetData, receivedBytes);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue