A simple Interest-sink applia simple Interest-sink application. More...
#include <ndn-producer.hpp>
Public Member Functions | |
Producer () | |
virtual void | OnInterest (shared_ptr< const Interest > interest) |
Method that will be called every time new Interest arrives. More... | |
Public Member Functions inherited from ns3::ndn::App | |
App () | |
Default constructor. More... | |
virtual | ~App () |
uint32_t | GetId () const |
Get application ID (ID of applications face) More... | |
virtual void | OnData (shared_ptr< const Data > data) |
Method that will be called every time new Data arrives. More... | |
virtual void | OnNack (shared_ptr< const lp::Nack > nack) |
Method that will be called every time new Nack arrives. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::ndn::App | |
static TypeId | GetTypeId () |
Protected Member Functions | |
virtual void | StartApplication () |
Called at time specified by Start. More... | |
virtual void | StopApplication () |
Called at time specified by Stop. More... | |
Protected Member Functions inherited from ns3::ndn::App | |
virtual void | DoInitialize () |
virtual void | DoDispose () |
Additional Inherited Members | |
Public Types inherited from ns3::ndn::App | |
typedef void(* | InterestTraceCallback) (shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face >) |
typedef void(* | DataTraceCallback) (shared_ptr< const Data >, Ptr< App >, shared_ptr< Face >) |
Protected Attributes inherited from ns3::ndn::App | |
bool | m_active |
Flag to indicate that application is active (set by StartApplication and StopApplication) More... | |
shared_ptr< Face > | m_face |
AppLinkService * | m_appLink |
uint32_t | m_appId |
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > | m_receivedInterests |
App-level trace of received Interests. More... | |
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > | m_receivedDatas |
App-level trace of received Data. More... | |
TracedCallback< shared_ptr< const Interest >, Ptr< App >, shared_ptr< Face > > | m_transmittedInterests |
App-level trace of transmitted Interests. More... | |
TracedCallback< shared_ptr< const Data >, Ptr< App >, shared_ptr< Face > > | m_transmittedDatas |
App-level trace of transmitted Data. More... | |
A simple Interest-sink applia simple Interest-sink application.
A simple Interest-sink applia simple Interest-sink application, which replying every incoming Interest with Data packet with a specified size and name same as in Interest.cation, which replying every incoming Interest with Data packet with a specified size and name same as in Interest.
ns3::ndn::Producer is accessible through the following paths with Config::Set and Config::Connect:
No TraceSources are defined for this type.
Size of this type is 576 bytes (on a 64-bit architecture).
Definition at line 43 of file ndn-producer.hpp.
ns3::ndn::Producer::Producer | ( | ) |
Definition at line 71 of file ndn-producer.cpp.
|
static |
Definition at line 41 of file ndn-producer.cpp.
References ns3::ndn::MakeNameAccessor(), and ns3::ndn::MakeNameChecker().
|
virtual |
Method that will be called every time new Interest arrives.
Reimplemented from ns3::ndn::App.
Definition at line 95 of file ndn-producer.cpp.
References ns3::ndn::App::GetId(), ns3::ndn::App::m_active, ns3::ndn::App::m_appLink, ns3::ndn::App::m_face, ns3::ndn::App::m_transmittedDatas, ns3::ndn::Name, ndn::encoding::nonNegativeIntegerBlock(), ns3::ndn::App::OnInterest(), ns3::ndn::AppLinkService::onReceiveData(), ndn::tlv::SignatureInfo, and ndn::tlv::SignatureValue.
|
protectedvirtual |
Called at time specified by Start.
Reimplemented from ns3::ndn::App.
Definition at line 78 of file ndn-producer.cpp.
References ns3::ndn::FibHelper::AddRoute(), ns3::ndn::App::m_face, and ns3::ndn::App::StartApplication().
|
protectedvirtual |
Called at time specified by Stop.
Reimplemented from ns3::ndn::App.
Definition at line 87 of file ndn-producer.cpp.
References ns3::ndn::App::StopApplication().