tools: Add NDN-FCH stage (service to get "closest" NDN hub) to ndn-autoconfig
Change-Id: Ia2b0bf93d3d25b45713eeba58924e64871715bdb
Refs: #3800
diff --git a/tools/ndn-autoconfig/base.cpp b/tools/ndn-autoconfig/base.cpp
index c95eb21..35c6f56 100644
--- a/tools/ndn-autoconfig/base.cpp
+++ b/tools/ndn-autoconfig/base.cpp
@@ -41,6 +41,7 @@
Base::connectToHub(const std::string& uri)
{
FaceUri faceUri(uri);
+ std::cerr << "About to connect to: " << uri << std::endl;
faceUri.canonize(bind(&Base::onCanonizeSuccess, this, _1),
bind(&Base::onCanonizeFailure, this, _1),
@@ -52,8 +53,6 @@
void
Base::onCanonizeSuccess(const FaceUri& canonicalUri)
{
- std::cerr << "About to connect to: " << canonicalUri.toString() << std::endl;
-
m_controller.start<ndn::nfd::FaceCreateCommand>(
ControlParameters().setUri(canonicalUri.toString()),
bind(&Base::onHubConnectSuccess, this, _1),