face: delete redundant protocol typedefs.
Change-Id: I32e1100e7395070a29ee813658aac82b63b6c4f2
diff --git a/daemon/face/udp-face.cpp b/daemon/face/udp-face.cpp
index 7de4d34..1cc0bc8 100644
--- a/daemon/face/udp-face.cpp
+++ b/daemon/face/udp-face.cpp
@@ -10,11 +10,8 @@
NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(DatagramFace, UdpFace::protocol, "UdpFace");
-UdpFace::UdpFace(const shared_ptr<UdpFace::protocol::socket>& socket,
- bool isOnDemand)
- : DatagramFace<protocol>(FaceUri(socket->remote_endpoint()),
- socket,
- isOnDemand)
+UdpFace::UdpFace(const shared_ptr<UdpFace::protocol::socket>& socket, bool isOnDemand)
+ : DatagramFace<protocol>(FaceUri(socket->remote_endpoint()), socket, isOnDemand)
{
}
@@ -23,10 +20,11 @@
std::size_t nBytesReceived,
const boost::system::error_code& error)
{
- NFD_LOG_DEBUG("handleFirstReceive");
- //checking if the received message size is too big.
- //This check is redundant, since in the actual implementation a packet
- //cannot be bigger than MAX_NDN_PACKET_SIZE
+ NFD_LOG_TRACE("handleFirstReceive");
+
+ // Checking if the received message size is too big.
+ // This check is redundant, since in the actual implementation
+ // a packet cannot be larger than MAX_NDN_PACKET_SIZE.
if (!error && (nBytesReceived > MAX_NDN_PACKET_SIZE))
{
NFD_LOG_WARN("[id:" << this->getId()
@@ -35,8 +33,8 @@
<< MAX_NDN_PACKET_SIZE );
return;
}
+
receiveDatagram(buffer, nBytesReceived, error);
}
-
} // namespace nfd