|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
32 , m_dispatcher(dispatcher)
39 , m_dispatcher(dispatcher)
40 , m_authenticator(&authenticator)
80 ManagerBase::makeAuthorization(
const std::string& verb)
82 BOOST_ASSERT(m_authenticator !=
nullptr);
87 ManagerBase::validateParameters(
const ControlCommand& command,
95 catch (
const ControlCommand::ArgumentError&) {
102 ManagerBase::handleCommand(shared_ptr<ControlCommand> command,
111 command->applyDefaultsToRequest(parameters);
112 handler(*command, prefix, interest, parameters, done);
Block blockFromValue() const
std::function< void(const std::string &requester)> AcceptContinuation
a function to be called if authorization is successful
ndn::mgmt::Authorization makeAuthorization(const std::string &module, const std::string &verb)
std::function< void(const ControlResponse &resp)> CommandContinuation
a function to be called after ControlCommandHandler completes
std::function< void(const Name &prefix, const Interest &interest, StatusDatasetContext &context)> StatusDatasetHandler
a function to handle a StatusDataset request
void registerStatusDatasetHandler(const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler)
std::function< void(const Block ¬ification)> PostNotification
a function to post a notification
base class for a struct that contains ControlCommand parameters
ManagerBase(const std::string &module, Dispatcher &dispatcher)
void addStatusDataset(const PartialName &relPrefix, Authorization authorize, StatusDatasetHandler handle)
register a StatusDataset or a prefix under which StatusDatasets can be requested
Represents an absolute name.
Copyright (c) 2011-2015 Regents of the University of California.
const KeyLocator & getKeyLocator() const
Get KeyLocator.
ndn::mgmt::PostNotification registerNotificationStream(const std::string &verb)
Represents a SignatureInfo TLV element.
Authorization makeAcceptAllAuthorization()
return an Authorization that accepts all Interests, with empty string as requester
std::function< void(const Name &prefix, const Interest &interest, const ControlParameters *params, const AcceptContinuation &accept, const RejectContinuation &reject)> Authorization
a function that performs authorization
const ssize_t POS_SIG_INFO
Represents an Interest packet.
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
const Component & at(ssize_t i) const
Returns an immutable reference to the component at the specified index, with bounds checking.
std::function< void(const Name &prefix, const Interest &interest, const ControlParameters ¶ms, const CommandContinuation &done)> ControlCommandHandler
a function to handle an authorized ControlCommand
represents a dispatcher on server side of NFD Management protocol
PostNotification addNotificationStream(const PartialName &relPrefix)
register a NotificationStream
const Name & getName() const
Get nested Name element.
const Name & getName() const noexcept
Provides ControlCommand authorization according to NFD configuration file.
represents an error in TLV encoding or decoding
void extractRequester(const Interest &interest, ndn::mgmt::AcceptContinuation accept)
Extracts the requester from a ControlCommand request.
bool hasKeyLocator() const
Check if KeyLocator exists.