mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:49:27 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into authentication
This commit is contained in:
commit
3bace43aae
2 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,9 @@ const char METAVOXEL_SERVER_LOGGING_NAME[] = "metavoxel-server";
|
||||||
void MetavoxelServer::run() {
|
void MetavoxelServer::run() {
|
||||||
commonInit(METAVOXEL_SERVER_LOGGING_NAME, NodeType::MetavoxelServer);
|
commonInit(METAVOXEL_SERVER_LOGGING_NAME, NodeType::MetavoxelServer);
|
||||||
|
|
||||||
|
NodeList* nodeList = NodeList::getInstance();
|
||||||
|
nodeList->addNodeTypeToInterestSet(NodeType::Agent);
|
||||||
|
|
||||||
_lastSend = QDateTime::currentMSecsSinceEpoch();
|
_lastSend = QDateTime::currentMSecsSinceEpoch();
|
||||||
_sendTimer.start(SEND_INTERVAL);
|
_sendTimer.start(SEND_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,6 +210,7 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
|
||||||
// send back a reply
|
// send back a reply
|
||||||
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
|
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
|
||||||
if (matchingNode) {
|
if (matchingNode) {
|
||||||
|
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
|
||||||
QByteArray replyPacket = constructPingReplyPacket(packet);
|
QByteArray replyPacket = constructPingReplyPacket(packet);
|
||||||
writeDatagram(replyPacket, matchingNode, senderSockAddr);
|
writeDatagram(replyPacket, matchingNode, senderSockAddr);
|
||||||
}
|
}
|
||||||
|
@ -220,6 +221,8 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
|
||||||
SharedNodePointer sendingNode = sendingNodeForPacket(packet);
|
SharedNodePointer sendingNode = sendingNodeForPacket(packet);
|
||||||
|
|
||||||
if (sendingNode) {
|
if (sendingNode) {
|
||||||
|
sendingNode->setLastHeardMicrostamp(usecTimestampNow());
|
||||||
|
|
||||||
// activate the appropriate socket for this node, if not yet updated
|
// activate the appropriate socket for this node, if not yet updated
|
||||||
activateSocketFromNodeCommunication(packet, sendingNode);
|
activateSocketFromNodeCommunication(packet, sendingNode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue