24 #include "ns3/application.h" 
   26 #include "ns3/callback.h" 
   27 #include "ns3/traced-callback.h" 
   50 class App: 
public Application
 
   53   static TypeId GetTypeId ();
 
   81   OnNack (Ptr<const Interest> interest);
 
   89   OnData (Ptr<const Data> contentObject);
 
  109   TracedCallback<Ptr<const Interest>,
 
  112   TracedCallback<Ptr<const Interest>,
 
  115   TracedCallback<Ptr<const Data>,
 
  119   TracedCallback<Ptr<const Interest>,
 
  122   TracedCallback<Ptr<const Data>,
 
bool m_active
Flag to indicate that application is active (set by StartApplication and StopApplication) ...
 
virtual void DoDispose()
Do cleanup when application is destroyed. 
 
TracedCallback< Ptr< const Interest >, Ptr< App >, Ptr< Face > > m_receivedNacks
App-level trace of received NACKs. 
 
virtual void StartApplication()
Called at time specified by Start. 
 
uint32_t GetId() const 
Get application ID (ID of applications face) 
 
TracedCallback< Ptr< const Interest >, Ptr< App >, Ptr< Face > > m_transmittedInterests
App-level trace of transmitted Interests. 
 
Base class that all NDN applications should be derived from. 
 
TracedCallback< Ptr< const Data >, Ptr< App >, Ptr< Face > > m_receivedDatas
App-level trace of received Data. 
 
virtual void OnNack(Ptr< const Interest > interest)
Method that will be called every time new NACK arrives. 
 
virtual void OnData(Ptr< const Data > contentObject)
Method that will be called every time new Data arrives. 
 
virtual void StopApplication()
Called at time specified by Stop. 
 
virtual void OnInterest(Ptr< const Interest > interest)
Method that will be called every time new Interest arrives. 
 
App()
Default constructor. 
 
Ptr< Face > m_face
automatically created application face through which application communicates 
 
TracedCallback< Ptr< const Interest >, Ptr< App >, Ptr< Face > > m_receivedInterests
App-level trace of received Interests. 
 
TracedCallback< Ptr< const Data >, Ptr< App >, Ptr< Face > > m_transmittedDatas
App-level trace of transmitted Data.