NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::Face::Impl Class Reference

implementation detail of Face More...

#include <face-impl.hpp>

Inheritance diagram for ndn::Face::Impl:
Collaboration diagram for ndn::Face::Impl:

Public Member Functions

 Impl (Face &face, KeyChain &keyChain)
 
void expressInterest (detail::RecordId id, shared_ptr< const Interest > interest, const DataCallback &afterSatisfied, const NackCallback &afterNacked, const TimeoutCallback &afterTimeout)
 
void asyncRemovePendingInterest (detail::RecordId id)
 
void removeAllPendingInterests ()
 
bool satisfyPendingInterests (const Data &data)
 
optional< lp::NacknackPendingInterests (const lp::Nack &nack)
 
void setInterestFilter (detail::RecordId id, const InterestFilter &filter, const InterestCallback &onInterest)
 
void asyncUnsetInterestFilter (detail::RecordId id)
 
void processIncomingInterest (shared_ptr< const Interest > interest)
 
void putData (const Data &data)
 
void putNack (const lp::Nack &nack)
 
detail::RecordId registerPrefix (const Name &prefix, const RegisterPrefixSuccessCallback &onSuccess, const RegisterPrefixFailureCallback &onFailure, uint64_t flags, const nfd::CommandOptions &options, const optional< InterestFilter > &filter, const InterestCallback &onInterest)
 
void asyncUnregisterPrefix (detail::RecordId id, const UnregisterPrefixSuccessCallback &onSuccess, const UnregisterPrefixFailureCallback &onFailure)
 
void ensureConnected (bool wantResume)
 
void shutdown ()
 

Detailed Description

implementation detail of Face

Definition at line 60 of file face-impl.hpp.

Constructor & Destructor Documentation

◆ Impl()

Member Function Documentation

◆ expressInterest()

void ndn::Face::Impl::expressInterest ( detail::RecordId  id,
shared_ptr< const Interest interest,
const DataCallback afterSatisfied,
const NackCallback afterNacked,
const TimeoutCallback afterTimeout 
)
inline

◆ asyncRemovePendingInterest()

void ndn::Face::Impl::asyncRemovePendingInterest ( detail::RecordId  id)
inline

Definition at line 110 of file face-impl.hpp.

References ndn::scheduler::Scheduler::schedule().

◆ removeAllPendingInterests()

void ndn::Face::Impl::removeAllPendingInterests ( )
inline

Definition at line 121 of file face-impl.hpp.

References ndn::detail::RecordContainer< T >::clear().

◆ satisfyPendingInterests()

bool ndn::Face::Impl::satisfyPendingInterests ( const Data data)
inline
Returns
whether the Data should be sent to the forwarder, if it does not come from the forwarder

Definition at line 129 of file face-impl.hpp.

References ndn::APP, ndn::PendingInterest::getInterest(), ndn::PendingInterest::getOrigin(), ndn::PendingInterest::invokeDataCallback(), NDN_LOG_DEBUG, and ndn::detail::RecordContainer< T >::removeIf().

Referenced by putData().

◆ nackPendingInterests()

optional<lp::Nack> ndn::Face::Impl::nackPendingInterests ( const lp::Nack nack)
inline

◆ setInterestFilter()

void ndn::Face::Impl::setInterestFilter ( detail::RecordId  id,
const InterestFilter filter,
const InterestCallback onInterest 
)
inline

Definition at line 187 of file face-impl.hpp.

References NDN_LOG_INFO, and ndn::detail::RecordContainer< T >::put().

◆ asyncUnsetInterestFilter()

void ndn::Face::Impl::asyncUnsetInterestFilter ( detail::RecordId  id)
inline

Definition at line 194 of file face-impl.hpp.

References ndn::scheduler::Scheduler::schedule().

◆ processIncomingInterest()

void ndn::Face::Impl::processIncomingInterest ( shared_ptr< const Interest interest)
inline

◆ putData()

void ndn::Face::Impl::putData ( const Data data)
inline

◆ putNack()

◆ registerPrefix()

detail::RecordId ndn::Face::Impl::registerPrefix ( const Name prefix,
const RegisterPrefixSuccessCallback onSuccess,
const RegisterPrefixFailureCallback onFailure,
uint64_t  flags,
const nfd::CommandOptions options,
const optional< InterestFilter > &  filter,
const InterestCallback onInterest 
)
inline

◆ asyncUnregisterPrefix()

void ndn::Face::Impl::asyncUnregisterPrefix ( detail::RecordId  id,
const UnregisterPrefixSuccessCallback onSuccess,
const UnregisterPrefixFailureCallback onFailure 
)
inline

Definition at line 289 of file face-impl.hpp.

References ndn::scheduler::Scheduler::schedule().

◆ ensureConnected()

void ndn::Face::Impl::ensureConnected ( bool  wantResume)
inline

Definition at line 303 of file face-impl.hpp.

Referenced by expressInterest(), putData(), and putNack().

◆ shutdown()


The documentation for this class was generated from the following file: