26 #ifndef NFD_TOOLS_NDN_AUTOCONFIG_PROCEDURE_HPP
27 #define NFD_TOOLS_NDN_AUTOCONFIG_PROCEDURE_HPP
33 #include <ndn-cxx/face.hpp>
34 #include <ndn-cxx/mgmt/nfd/controller.hpp>
35 #include <ndn-cxx/security/key-chain.hpp>
41 std::string
ndnFchUrl =
"http://ndn-fch.named-data.net";
47 Procedure(Face& face, KeyChain& keyChain);
61 boost::asio::io_context&
64 return m_face.getIoContext();
69 makeStages(
const Options& options);
72 connect(
const FaceUri& hubFaceUri);
75 registerPrefixes(uint64_t hubFaceId,
size_t index = 0);
86 std::vector<unique_ptr<Stage>> m_stages;
91 nfd::Controller m_controller;
Procedure(Face &face, KeyChain &keyChain)
signal::Signal< Procedure, bool > onComplete
Signal emitted when the procedure completes.
void initialize(const Options &options)
boost::asio::io_context & getIoContext() const noexcept
void runOnce()
Run the HUB discovery procedure once.
virtual ~Procedure()=default
#define NFD_VIRTUAL_WITH_TESTS
#define NFD_PROTECTED_WITH_TESTS_ELSE_PRIVATE
std::string ndnFchUrl
HTTP base URL of NDN-FCH service.