23 #include "ns3/ndnSIM/model/ndn-common.hpp" 24 #include "ns3/ndnSIM/model/ndn-app-link-service.hpp" 25 #include "ns3/ndnSIM/NFD/daemon/face/face.hpp" 27 #include "ns3/application.h" 29 #include "ns3/callback.h" 30 #include "ns3/traced-callback.h" 69 OnInterest(shared_ptr<const Interest> interest);
75 OnData(shared_ptr<const Data> data);
81 OnNack(shared_ptr<const lp::Nack> nack);
109 TracedCallback<shared_ptr<const Interest>, Ptr<App>, shared_ptr<Face>>
112 TracedCallback<shared_ptr<const Data>, Ptr<App>, shared_ptr<Face>>
115 TracedCallback<shared_ptr<const lp::Nack>, Ptr<App>, shared_ptr<Face>>
118 TracedCallback<shared_ptr<const Interest>, Ptr<App>, shared_ptr<Face>>
121 TracedCallback<shared_ptr<const Data>, Ptr<App>, shared_ptr<Face>>
124 TracedCallback<shared_ptr<const lp::Nack>, Ptr<App>, shared_ptr<Face>>
TracedCallback< shared_ptr< const lp::Nack >, Ptr< App >, shared_ptr< Face > > m_receivedNacks
App-level trace of received Nacks.
Copyright (c) 2011-2015 Regents of the University of California.
virtual void StopApplication()
Called at time specified by Stop.
Implementation of LinkService for ndnSIM application.
TracedCallback< shared_ptr< const lp::Nack >, Ptr< App >, shared_ptr< Face > > m_transmittedNacks
App-level trace of transmitted Nacks.
void(* InterestTraceCallback)(shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face >)
virtual void DoInitialize()
virtual void StartApplication()
Called at time specified by Start.
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > m_receivedInterests
App-level trace of received Interests.
void(* NackTraceCallback)(shared_ptr< const lp::Nack >, Ptr< App >, shared_ptr< Face >)
static TypeId GetTypeId()
virtual void OnInterest(shared_ptr< const Interest > interest)
Method that will be called every time new Interest arrives.
virtual void OnNack(shared_ptr< const lp::Nack > nack)
Method that will be called every time new Nack arrives.
Copyright (c) 2011-2015 Regents of the University of California.
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > m_transmittedInterests
App-level trace of transmitted Interests.
shared_ptr< Face > m_face
void(* DataTraceCallback)(shared_ptr< const Data >, Ptr< App >, shared_ptr< Face >)
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > m_transmittedDatas
App-level trace of transmitted Data.
AppLinkService * m_appLink
Base class that all NDN applications should be derived from.
App()
Default constructor.
uint32_t GetId() const
Get application ID (ID of applications face)
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > m_receivedDatas
App-level trace of received Data.
bool m_active
Flag to indicate that application is active (set by StartApplication and StopApplication) ...
virtual void OnData(shared_ptr< const Data > data)
Method that will be called every time new Data arrives.