face: move Channel and subclasses into nfd::face namespace
Change-Id: I163ef20e11b65d19d68585ec075fd3cd224a573b
diff --git a/daemon/face/udp-channel.cpp b/daemon/face/udp-channel.cpp
index b89a8ad..491ad82 100644
--- a/daemon/face/udp-channel.cpp
+++ b/daemon/face/udp-channel.cpp
@@ -29,10 +29,11 @@
#include "core/global-io.hpp"
namespace nfd {
+namespace face {
NFD_LOG_INIT("UdpChannel");
-using namespace boost::asio;
+namespace ip = boost::asio::ip;
UdpChannel::UdpChannel(const udp::Endpoint& localEndpoint,
const time::seconds& timeout)
@@ -136,7 +137,7 @@
onFaceCreated(face);
// dispatch the datagram to the face for processing
- static_cast<face::UnicastUdpTransport*>(face->getTransport())->receiveDatagram(m_inputBuffer, nBytesReceived, error);
+ static_cast<UnicastUdpTransport*>(face->getTransport())->receiveDatagram(m_inputBuffer, nBytesReceived, error);
this->waitForNewPeer(onFaceCreated, onReceiveFailed);
}
@@ -156,8 +157,8 @@
socket.bind(m_localEndpoint);
socket.connect(remoteEndpoint);
- auto linkService = make_unique<face::GenericLinkService>();
- auto transport = make_unique<face::UnicastUdpTransport>(std::move(socket), persistency, m_idleFaceTimeout);
+ auto linkService = make_unique<GenericLinkService>();
+ auto transport = make_unique<UnicastUdpTransport>(std::move(socket), persistency, m_idleFaceTimeout);
auto face = make_shared<Face>(std::move(linkService), std::move(transport));
m_channelFaces[remoteEndpoint] = face;
@@ -170,4 +171,5 @@
return {true, face};
}
+} // namespace face
} // namespace nfd