a retransmission suppression decision algorithm that suppresses retransmissions within a fixed duration More...
#include <retx-suppression-fixed.hpp>
Public Member Functions | |
RetxSuppressionFixed (const time::milliseconds &minRetxInterval=DEFAULT_MIN_RETX_INTERVAL) | |
virtual Result | decide (const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const override |
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppressed More... | |
Static Public Attributes | |
static const time::milliseconds | DEFAULT_MIN_RETX_INTERVAL |
Additional Inherited Members | |
Public Types inherited from nfd::fw::RetxSuppression | |
enum | Result { NEW, FORWARD, SUPPRESS } |
Protected Member Functions inherited from nfd::fw::RetxSuppression | |
time::steady_clock::TimePoint | getLastOutgoing (const pit::Entry &pitEntry) const |
a retransmission suppression decision algorithm that suppresses retransmissions within a fixed duration
Definition at line 37 of file retx-suppression-fixed.hpp.
|
explicit |
Definition at line 34 of file retx-suppression-fixed.cpp.
|
overridevirtual |
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppressed
Implements nfd::fw::RetxSuppression.
Definition at line 41 of file retx-suppression-fixed.cpp.
References nfd::fw::RetxSuppression::FORWARD, nfd::fw::RetxSuppression::getLastOutgoing(), nfd::fw::hasPendingOutRecords(), nfd::fw::RetxSuppression::NEW, ndn::time::steady_clock::now(), and nfd::fw::RetxSuppression::SUPPRESS.
Referenced by nfd::fw::AccessStrategy::afterReceiveInterest().
|
static |
Definition at line 51 of file retx-suppression-fixed.hpp.