This commit is contained in:
geeksville
2020-05-27 15:31:32 -07:00
parent da2ef0ac61
commit f56ff2ca20
5 changed files with 37 additions and 12 deletions

View File

@@ -103,6 +103,11 @@ class ReliableRouter : public FloodingRouter
*/
virtual bool shouldFilterReceived(const MeshPacket *p);
/**
* Add p to the list of packets to retransmit occasionally. We will free it once we stop retransmitting.
*/
PendingPacket *startRetransmission(MeshPacket *p);
private:
/**
* Send an ack or a nak packet back towards whoever sent idFrom
@@ -117,11 +122,6 @@ class ReliableRouter : public FloodingRouter
bool stopRetransmission(NodeNum from, PacketId id);
bool stopRetransmission(GlobalPacketId p);
/**
* Add p to the list of packets to retransmit occasionally. We will free it once we stop retransmitting.
*/
void startRetransmission(MeshPacket *p);
/**
* Do any retransmissions that are scheduled (FIXME - for the time being called from loop)
*/