face: deduplicate callback typedefs between Channel and ProtocolFactory
This should have been part of commit 1d7e7afd381b91b6194d516826294b7f41f78745
Change-Id: I61623152180d4df288fc7dd3c225518e438d2bda
Refs: #3258
diff --git a/daemon/face/udp-channel.cpp b/daemon/face/udp-channel.cpp
index a1ff92c..d3791e4 100644
--- a/daemon/face/udp-channel.cpp
+++ b/daemon/face/udp-channel.cpp
@@ -45,7 +45,7 @@
void
UdpChannel::listen(const FaceCreatedCallback& onFaceCreated,
- const ConnectFailedCallback& onReceiveFailed)
+ const FaceCreationFailedCallback& onReceiveFailed)
{
if (isListening()) {
NFD_LOG_WARN("[" << m_localEndpoint << "] Already listening");
@@ -70,7 +70,7 @@
UdpChannel::connect(const udp::Endpoint& remoteEndpoint,
ndn::nfd::FacePersistency persistency,
const FaceCreatedCallback& onFaceCreated,
- const ConnectFailedCallback& onConnectFailed)
+ const FaceCreationFailedCallback& onConnectFailed)
{
shared_ptr<face::LpFaceWrapper> face;
try {
@@ -136,7 +136,7 @@
UdpChannel::handleNewPeer(const boost::system::error_code& error,
size_t nBytesReceived,
const FaceCreatedCallback& onFaceCreated,
- const ConnectFailedCallback& onReceiveFailed)
+ const FaceCreationFailedCallback& onReceiveFailed)
{
if (error) {
if (error == boost::asio::error::operation_aborted) // when the socket is closed by someone