mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 22:09:06 +02:00
add stubs for new send methods in LNL
This commit is contained in:
parent
61c4e6d72e
commit
ac6c8c9c3a
2 changed files with 19 additions and 13 deletions
|
@ -508,18 +508,18 @@ SharedNodePointer LimitedNodeList::addOrUpdateNode(const QUuid& uuid, NodeType_t
|
|||
}
|
||||
}
|
||||
|
||||
unsigned LimitedNodeList::broadcastToNodes(const QByteArray& packet, const NodeSet& destinationNodeTypes) {
|
||||
unsigned n = 0;
|
||||
|
||||
eachNode([&](const SharedNodePointer& node){
|
||||
if (destinationNodeTypes.contains(node->getType())) {
|
||||
writeDatagram(packet, node);
|
||||
++n;
|
||||
}
|
||||
});
|
||||
|
||||
return n;
|
||||
}
|
||||
// unsigned LimitedNodeList::broadcastToNodes(PacketList& packetList, const NodeSet& destinationNodeTypes) {
|
||||
// unsigned n = 0;
|
||||
//
|
||||
// eachNode([&](const SharedNodePointer& node){
|
||||
// if (destinationNodeTypes.contains(node->getType())) {
|
||||
// writeDatagram(packet, node);
|
||||
// ++n;
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// return n;
|
||||
// }
|
||||
|
||||
NLPacket&& LimitedNodeList::constructPingPacket(PingType_t pingType) {
|
||||
int packetSize = sizeof(PingType_t) + sizeof(quint64);
|
||||
|
|
|
@ -140,6 +140,12 @@ public:
|
|||
//
|
||||
// qint64 writeUnverifiedDatagram(const char* data, qint64 size, const SharedNodePointer& destinationNode,
|
||||
// const HifiSockAddr& overridenSockAddr = HifiSockAddr());
|
||||
//
|
||||
|
||||
qint64 sendPacket(NLPacket&& packet, const SharedNodePointer& destinationNode) {};
|
||||
qint64 sendPacket(NLPacket&& packet, const HifiSockAddr& sockAddr) {};
|
||||
qint64 sendPacketList(PacketList& packetList, const SharedNodePointer& destinationNode) {};
|
||||
qint64 sendPacketList(PacketList& packetList, const HifiSockAddr& sockAddr) {};
|
||||
|
||||
void (*linkedDataCreateCallback)(Node *);
|
||||
|
||||
|
@ -164,7 +170,7 @@ public:
|
|||
int updateNodeWithDataFromPacket(const SharedNodePointer& matchingNode, const QByteArray& packet);
|
||||
int findNodeAndUpdateWithDataFromPacket(const QByteArray& packet);
|
||||
|
||||
unsigned broadcastToNodes(const QByteArray& packet, const NodeSet& destinationNodeTypes);
|
||||
unsigned broadcastToNodes(PacketList& packetList, const NodeSet& destinationNodeTypes) {};
|
||||
SharedNodePointer soloNodeOfType(char nodeType);
|
||||
|
||||
void getPacketStats(float &packetsPerSecond, float &bytesPerSecond);
|
||||
|
|
Loading…
Reference in a new issue