helper for consumer retransmission suppression More...
#include <retx-suppression.hpp>
Public Types | |
enum | Result { NEW, FORWARD, SUPPRESS } |
Public Member Functions | |
virtual Result | decide (const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const =0 |
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppressed More... | |
Protected Member Functions | |
time::steady_clock::TimePoint | getLastOutgoing (const pit::Entry &pitEntry) const |
helper for consumer retransmission suppression
Definition at line 36 of file retx-suppression.hpp.
Enumerator | |
---|---|
NEW |
Interest is new (not a retransmission) |
FORWARD |
Interest is retransmission and should be forwarded. |
SUPPRESS |
Interest is retransmission and should be suppressed. |
Definition at line 39 of file retx-suppression.hpp.
|
pure virtual |
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppressed
Implemented in nfd::fw::RetxSuppressionExponential, and nfd::fw::RetxSuppressionFixed.
|
protected |
Definition at line 32 of file retx-suppression.cpp.
References nfd::pit::FaceRecord::getLastRenewed(), and nfd::pit::Entry::getOutRecords().
Referenced by nfd::fw::RetxSuppressionFixed::decide(), and nfd::fw::RetxSuppressionExponential::decide().