NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nfd::ManagerBase Class Reference

#include <manager-base.hpp>

Inheritance diagram for nfd::ManagerBase:
Collaboration diagram for nfd::ManagerBase:

Classes

struct  Error
 

Public Member Functions

 ManagerBase (shared_ptr< InternalFace > face, const std::string &privilege, ndn::KeyChain &keyChain)
 
virtual ~ManagerBase ()
 
void onCommandValidationFailed (const shared_ptr< const Interest > &command, const std::string &error)
 

Protected Member Functions

void setResponse (ControlResponse &response, uint32_t code, const std::string &text)
 
void setResponse (ControlResponse &response, uint32_t code, const std::string &text, const Block &body)
 
void sendResponse (const Name &name, const ControlResponse &response)
 
void sendResponse (const Name &name, uint32_t code, const std::string &text)
 
void sendResponse (const Name &name, uint32_t code, const std::string &text, const Block &body)
 
void sendNack (const Name &name)
 
virtual bool validateParameters (const ControlCommand &command, ControlParameters &parameters)
 
void addInterestRule (const std::string &regex, const ndn::IdentityCertificate &certificate)
 
void addInterestRule (const std::string &regex, const Name &keyName, const ndn::PublicKey &publicKey)
 
void validate (const Interest &interest, const ndn::OnInterestValidated &onValidated, const ndn::OnInterestValidationFailed &onValidationFailed)
 

Static Protected Member Functions

static bool extractParameters (const Name::Component &parameterComponent, ControlParameters &extractedParameters)
 

Protected Attributes

shared_ptr< InternalFacem_face
 
ndn::KeyChain & m_keyChain
 

Detailed Description

Definition at line 46 of file manager-base.hpp.

Constructor & Destructor Documentation

nfd::ManagerBase::ManagerBase ( shared_ptr< InternalFace face,
const std::string &  privilege,
ndn::KeyChain &  keyChain 
)

Definition at line 33 of file manager-base.cpp.

nfd::ManagerBase::~ManagerBase ( )
virtual

Definition at line 41 of file manager-base.cpp.

Member Function Documentation

void nfd::ManagerBase::addInterestRule ( const std::string &  regex,
const ndn::IdentityCertificate &  certificate 
)
inlineprotected

Definition at line 144 of file manager-base.hpp.

References m_face.

void nfd::ManagerBase::addInterestRule ( const std::string &  regex,
const Name &  keyName,
const ndn::PublicKey &  publicKey 
)
inlineprotected

Definition at line 151 of file manager-base.hpp.

References m_face.

bool nfd::ManagerBase::extractParameters ( const Name::Component &  parameterComponent,
ControlParameters &  extractedParameters 
)
staticprotected

Definition at line 47 of file manager-base.cpp.

References NFD_LOG_DEBUG.

void nfd::ManagerBase::onCommandValidationFailed ( const shared_ptr< const Interest > &  command,
const std::string &  error 
)
void nfd::ManagerBase::sendNack ( const Name &  name)
protected

Definition at line 103 of file manager-base.cpp.

References m_face, m_keyChain, and NFD_LOG_DEBUG.

void nfd::ManagerBase::sendResponse ( const Name &  name,
const ControlResponse &  response 
)
protected
void nfd::ManagerBase::sendResponse ( const Name &  name,
uint32_t  code,
const std::string &  text 
)
protected

Definition at line 65 of file manager-base.cpp.

References sendResponse().

void nfd::ManagerBase::sendResponse ( const Name &  name,
uint32_t  code,
const std::string &  text,
const Block &  body 
)
protected

Definition at line 74 of file manager-base.cpp.

References sendResponse().

void nfd::ManagerBase::setResponse ( ControlResponse &  response,
uint32_t  code,
const std::string &  text 
)
inlineprotected

Definition at line 125 of file manager-base.hpp.

Referenced by setResponse().

void nfd::ManagerBase::setResponse ( ControlResponse &  response,
uint32_t  code,
const std::string &  text,
const Block &  body 
)
inlineprotected

Definition at line 134 of file manager-base.hpp.

References setResponse().

void nfd::ManagerBase::validate ( const Interest &  interest,
const ndn::OnInterestValidated &  onValidated,
const ndn::OnInterestValidationFailed &  onValidationFailed 
)
inlineprotected
bool nfd::ManagerBase::validateParameters ( const ControlCommand &  command,
ControlParameters &  parameters 
)
protectedvirtual

Definition at line 118 of file manager-base.cpp.

Member Data Documentation

shared_ptr<InternalFace> nfd::ManagerBase::m_face
protected

Definition at line 120 of file manager-base.hpp.

Referenced by addInterestRule(), sendNack(), sendResponse(), and validate().

ndn::KeyChain& nfd::ManagerBase::m_keyChain
protected

Definition at line 121 of file manager-base.hpp.

Referenced by sendNack(), and sendResponse().


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