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/security/key-chain.hpp>
33 #include <ndn-cxx/mgmt/nfd/controller.hpp>
34 #include <ndn-cxx/mgmt/nfd/face-status.hpp>
35 #include <ndn-cxx/encoding/buffer-stream.hpp>
36 #include <ndn-cxx/util/face-uri.hpp>
40 namespace autoconfig {
45 class Base : boost::noncopyable
48 class Error :
public std::runtime_error
53 :
std::runtime_error(what)
76 Base(Face& face, KeyChain& keyChain,
const NextStageCallback& nextStageOnFailure);
87 onCanonizeSuccess(
const util::FaceUri& canonicalUri);
90 onCanonizeFailure(
const std::string& reason);
93 onHubConnectSuccess(
const nfd::ControlParameters& resp);
96 onHubConnectError(
const nfd::ControlResponse& response);
99 registerPrefix(
const Name& prefix, uint64_t faceId);
102 onPrefixRegistrationSuccess(
const nfd::ControlParameters& commandSuccessResult);
105 onPrefixRegistrationError(
const nfd::ControlResponse& response);
118 #endif // NFD_TOOLS_NDN_AUTOCONFIG_BASE_HPP
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...