NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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.

Referenced by nfd::ManagerBase::Error::Error().

nfd::ManagerBase::~ManagerBase ( )
virtual

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

Referenced by nfd::ManagerBase::Error::Error().

Member Function Documentation

void nfd::ManagerBase::onCommandValidationFailed ( const shared_ptr< const Interest > &  command,
const std::string &  error 
)
bool nfd::ManagerBase::extractParameters ( const Name::Component parameterComponent,
ControlParameters extractedParameters 
)
staticprotected
void nfd::ManagerBase::setResponse ( ControlResponse &  response,
uint32_t  code,
const std::string &  text 
)
inlineprotected
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::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::sendNack ( const Name name)
protected
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.

Referenced by nfd::ManagerBase::Error::Error().

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.

void nfd::ManagerBase::validate ( const Interest interest,
const ndn::OnInterestValidated onValidated,
const ndn::OnInterestValidationFailed onValidationFailed 
)
inlineprotected

Member Data Documentation

shared_ptr<InternalFace> nfd::ManagerBase::m_face
protected
ndn::KeyChain& nfd::ManagerBase::m_keyChain
protected

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

Referenced by nfd::FaceManager::onFaceRequest(), sendNack(), and sendResponse().


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