[ndnSIM] fw: Add beforeSatisfyInterest and beforeExpirePendingInterest signals
The beforeExpirePendingInterest signal, in addition to actually timed out
interests, also includes NACKed interests.
Change-Id: I01b3a6e9f6090673c864d29065fd6d182fc251c4
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index 2da7c87..39cc0b8 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -165,6 +165,17 @@
return m_networkRegionTable;
}
+public:
+ /** \brief trigger before PIT entry is satisfied
+ * \sa Strategy::beforeSatisfyInterest
+ */
+ signal::Signal<Forwarder, pit::Entry, Face, Data> beforeSatisfyInterest;
+
+ /** \brief trigger before PIT entry expires
+ * \sa Strategy::beforeExpirePendingInterest
+ */
+ signal::Signal<Forwarder, pit::Entry> beforeExpirePendingInterest;
+
PUBLIC_WITH_TESTS_ELSE_PRIVATE: // pipelines
/** \brief incoming Interest pipeline
*/
@@ -272,6 +283,7 @@
StrategyChoice m_strategyChoice;
DeadNonceList m_deadNonceList;
NetworkRegionTable m_networkRegionTable;
+ shared_ptr<Face> m_csFace;
// allow Strategy (base class) to enter pipelines
friend class fw::Strategy;