[ndnSIM] fw: Extend forwarding pipelines with beforeSatisfyInterest and beforeExpirePendingInterest signals
Change-Id: I7d8277c3c53b0b6ef791b90c9c93de216b459ad2
Refs: #2361, #2362
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index 8c6f1df..084c2af 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -182,6 +182,17 @@
m_csFromNdnSim = cs;
}
+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
*/
@@ -299,6 +310,7 @@
StrategyChoice m_strategyChoice;
DeadNonceList m_deadNonceList;
NetworkRegionTable m_networkRegionTable;
+ shared_ptr<Face> m_csFace;
ns3::Ptr<ns3::ndn::ContentStore> m_csFromNdnSim;