NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::fw::UnsolicitedDataPolicy Class Referenceabstract

determines how to process an unsolicited Data More...

#include <unsolicited-data-policy.hpp>

Inheritance diagram for nfd::fw::UnsolicitedDataPolicy:
Collaboration diagram for nfd::fw::UnsolicitedDataPolicy:

Public Member Functions

virtual ~UnsolicitedDataPolicy ()=default
 
virtual UnsolicitedDataDecision decide (const Face &inFace, const Data &data) const =0
 

Static Public Member Functions

template<typename P >
static void registerPolicy (const std::string &key)
 
static unique_ptr< UnsolicitedDataPolicycreate (const std::string &key)
 

Detailed Description

determines how to process an unsolicited Data

An incoming Data is unsolicited if it does not match any PIT entry. This class assists forwarding pipelines to decide whether to drop an unsolicited Data or admit it into the ContentStore.

Definition at line 50 of file unsolicited-data-policy.hpp.

Constructor & Destructor Documentation

◆ ~UnsolicitedDataPolicy()

virtual nfd::fw::UnsolicitedDataPolicy::~UnsolicitedDataPolicy ( )
virtualdefault

Member Function Documentation

◆ decide()

virtual UnsolicitedDataDecision nfd::fw::UnsolicitedDataPolicy::decide ( const Face inFace,
const Data data 
) const
pure virtual

◆ registerPolicy()

template<typename P >
static void nfd::fw::UnsolicitedDataPolicy::registerPolicy ( const std::string &  key)
inlinestatic

Definition at line 61 of file unsolicited-data-policy.hpp.

◆ create()

unique_ptr< UnsolicitedDataPolicy > nfd::fw::UnsolicitedDataPolicy::create ( const std::string &  key)
static
Returns
an UnsolicitedDataPolicy identified by key, or nullptr if key is unknown

Definition at line 51 of file unsolicited-data-policy.cpp.

Referenced by nfd::TablesConfigSection::ensureConfigured().


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