unsolicited-data-policy.hpp File Reference
#include "face/face.hpp"
#include <functional>
#include <map>
#include <set>
+ Include dependency graph for unsolicited-data-policy.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nfd::fw::AdmitAllUnsolicitedDataPolicy
 Admits all unsolicited Data. More...
 
class  nfd::fw::AdmitLocalUnsolicitedDataPolicy
 Admits unsolicited Data from local faces. More...
 
class  nfd::fw::AdmitNetworkUnsolicitedDataPolicy
 Admits unsolicited Data from non-local faces. More...
 
class  nfd::fw::DropAllUnsolicitedDataPolicy
 Drops all unsolicited Data. More...
 
class  nfd::fw::UnsolicitedDataPolicy
 Determines how to process an unsolicited Data packet. More...
 

Namespaces

 nfd
 -status-http-server
 
 nfd::fw
 

Macros

#define NFD_REGISTER_UNSOLICITED_DATA_POLICY(P)
 Registers an unsolicited data policy. More...
 

Typedefs

using nfd::fw::DefaultUnsolicitedDataPolicy = DropAllUnsolicitedDataPolicy
 The default UnsolicitedDataPolicy. More...
 

Enumerations

enum class  nfd::fw::UnsolicitedDataDecision {
  nfd::fw::DROP ,
  nfd::fw::CACHE
}
 Decision made by UnsolicitedDataPolicy. More...
 

Functions

std::ostream & nfd::fw::operator<< (std::ostream &os, UnsolicitedDataDecision d)
 

Macro Definition Documentation

◆ NFD_REGISTER_UNSOLICITED_DATA_POLICY

#define NFD_REGISTER_UNSOLICITED_DATA_POLICY (   P)
Value:
static class NfdAuto ## P ## UnsolicitedDataPolicyRegistrationClass \
{ \
public: \
NfdAuto ## P ## UnsolicitedDataPolicyRegistrationClass() \
{ \
::nfd::fw::UnsolicitedDataPolicy::registerPolicy<P>(); \
} \
} g_nfdAuto ## P ## UnsolicitedDataPolicyRegistrationVariable

Registers an unsolicited data policy.

Parameters
PA subclass of nfd::fw::UnsolicitedDataPolicy. P must have a static const data member POLICY_NAME convertible to std::string_view that contains the policy name.

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