26 #ifndef NFD_TOOLS_NDN_AUTOCONFIG_BASE_HPP
27 #define NFD_TOOLS_NDN_AUTOCONFIG_BASE_HPP
31 #include <ndn-cxx/face.hpp>
32 #include <ndn-cxx/mgmt/nfd/controller.hpp>
33 #include <ndn-cxx/mgmt/nfd/face-status.hpp>
34 #include <ndn-cxx/security/key-chain.hpp>
35 #include <ndn-cxx/util/face-uri.hpp>
39 namespace autoconfig {
41 using ndn::nfd::ControlParameters;
42 using ndn::nfd::ControlResponse;
43 using ndn::util::FaceUri;
48 class Base : boost::noncopyable
51 class Error :
public std::runtime_error
56 :
std::runtime_error(what)
79 Base(Face& face, KeyChain& keyChain,
const NextStageCallback& nextStageOnFailure);
90 onCanonizeSuccess(
const FaceUri& canonicalUri);
93 onCanonizeFailure(
const std::string& reason);
96 onHubConnectSuccess(
const ControlParameters& resp);
99 onHubConnectError(
const ControlResponse& response);
102 registerPrefix(
const Name& prefix, uint64_t faceId);
105 onPrefixRegistrationSuccess(
const ControlParameters& commandSuccessResult);
108 onPrefixRegistrationError(
const ControlResponse& response);
121 #endif // NFD_TOOLS_NDN_AUTOCONFIG_BASE_HPP
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...