nlsr: refactor Adjacent to use FaceUri objects
Change-Id: Ib46f70570669c381572182eeea5c047a38a05104
refs: #4063
diff --git a/src/hello-protocol.cpp b/src/hello-protocol.cpp
index 2f27020..52e8997 100644
--- a/src/hello-protocol.cpp
+++ b/src/hello-protocol.cpp
@@ -72,7 +72,7 @@
// successful registration prompts a callback that sends the hello
// Interest to the new Face.
else {
- registerPrefixes((*it).getName(), (*it).getConnectingFaceUri(),
+ registerPrefixes((*it).getName(), (*it).getFaceUri().toString(),
(*it).getLinkCost(), ndn::time::milliseconds::max());
}
}
@@ -129,7 +129,7 @@
// If the originator of the Interest currently lacks a Face, we
// need to give it one.
else {
- registerPrefixes(adjacent->getName(), adjacent->getConnectingFaceUri(),
+ registerPrefixes(adjacent->getName(), adjacent->getFaceUri().toString(),
adjacent->getLinkCost(), ndn::time::milliseconds::max());
}
}
@@ -262,7 +262,7 @@
adjacent->setFaceId(commandSuccessResult.getFaceId());
ndn::Name broadcastKeyPrefix = DEFAULT_BROADCAST_PREFIX;
broadcastKeyPrefix.append("KEYS");
- std::string faceUri = adjacent->getConnectingFaceUri();
+ std::string faceUri = adjacent->getFaceUri().toString();
double linkCost = adjacent->getLinkCost();
m_nlsr.getFib().registerPrefix(m_nlsr.getConfParameter().getChronosyncPrefix(),
faceUri, linkCost, timeout,