determines how to process an unsolicited Data More...
#include <unsolicited-data-policy.hpp>
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 &policyName=P::POLICY_NAME) |
static unique_ptr< UnsolicitedDataPolicy > | create (const std::string &policyName) |
static std::set< std::string > | getPolicyNames () |
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.
|
virtualdefault |
|
pure virtual |
|
inlinestatic |
Definition at line 62 of file unsolicited-data-policy.hpp.
|
static |
policyName
, or nullptr if policyName
is unknown Definition at line 53 of file unsolicited-data-policy.cpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
|
static |
Definition at line 61 of file unsolicited-data-policy.cpp.
References nfd::fw::DropAllUnsolicitedDataPolicy::POLICY_NAME.