|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
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"
48 class App :
public Application {
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>>
Implementation of LinkService for ndnSIM application.
Copyright (c) 2011-2015 Regents of the University of California.
virtual void OnData(shared_ptr< const Data > data)
Method that will be called every time new Data arrives.
virtual void OnNack(shared_ptr< const lp::Nack > nack)
Method that will be called every time new Nack arrives.
bool m_active
Flag to indicate that application is active (set by StartApplication and StopApplication)
AppLinkService * m_appLink
App()
Default constructor.
virtual void StartApplication()
Called at time specified by Start.
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > m_receivedDatas
App-level trace of received Data.
virtual void DoInitialize()
virtual void OnInterest(shared_ptr< const Interest > interest)
Method that will be called every time new Interest arrives.
TracedCallback< shared_ptr< const lp::Nack >, Ptr< App >, shared_ptr< Face > > m_receivedNacks
App-level trace of received Nacks.
static TypeId GetTypeId()
Base class that all NDN applications should be derived from.
uint32_t GetId() const
Get application ID (ID of applications face)
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > m_transmittedInterests
App-level trace of transmitted Interests.
shared_ptr< Face > m_face
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > m_transmittedDatas
App-level trace of transmitted Data.
TracedCallback< shared_ptr< const lp::Nack >, Ptr< App >, shared_ptr< Face > > m_transmittedNacks
App-level trace of transmitted Nacks.
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 >)
void(* InterestTraceCallback)(shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face >)
void(* DataTraceCallback)(shared_ptr< const Data >, Ptr< App >, shared_ptr< Face >)
virtual void StopApplication()
Called at time specified by Stop.
Copyright (c) 2011-2015 Regents of the University of California.