nfd::fw::AdmitLocalUnsolicitedDataPolicy Class Reference

admits unsolicited Data from local faces More...

#include <daemon/fw/unsolicited-data-policy.hpp>

+ Inheritance diagram for nfd::fw::AdmitLocalUnsolicitedDataPolicy:
+ Collaboration diagram for nfd::fw::AdmitLocalUnsolicitedDataPolicy:

Public Member Functions

UnsolicitedDataDecision decide (const Face &inFace, const Data &data) const final

Static Public Member Functions

static unique_ptr< UnsolicitedDataPolicycreate (const std::string &policyName)
static std::set< std::string > getPolicyNames ()
template<typename P >
static void registerPolicy (const std::string &policyName=P::POLICY_NAME)

Static Public Attributes

static const std::string POLICY_NAME

Detailed Description

admits unsolicited Data from local faces

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

Member Function Documentation

◆ create()

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

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

◆ decide()

UnsolicitedDataDecision nfd::fw::AdmitLocalUnsolicitedDataPolicy::decide ( const Face inFace,
const Data &  data 
) const

Implements nfd::fw::UnsolicitedDataPolicy.

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

◆ getPolicyNames()

std::set< std::string > nfd::fw::UnsolicitedDataPolicy::getPolicyNames ( )
a list of available policy names

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

◆ registerPolicy()

template<typename P >
static void nfd::fw::UnsolicitedDataPolicy::registerPolicy ( const std::string &  policyName = P::POLICY_NAME)

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

Member Data Documentation


const std::string nfd::fw::AdmitLocalUnsolicitedDataPolicy::POLICY_NAME

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