This commit is contained in:
geeksville
2020-05-23 15:48:23 -07:00
parent e89fe2f7d9
commit fb3b62f8f0
9 changed files with 117 additions and 37 deletions

View File

@@ -92,6 +92,12 @@ class ReliableRouter : public FloodingRouter
*/
virtual void sniffReceived(const MeshPacket *p);
/**
* Try to find the pending packet record for this ID (or NULL if not found)
*/
PendingPacket *findPendingPacket(NodeNum from, PacketId id) { return findPendingPacket(GlobalPacketId(from, id)); }
PendingPacket *findPendingPacket(GlobalPacketId p);
private:
/**
* Send an ack or a nak packet back towards whoever sent idFrom