face: use move semantics for sockets where possible
Change-Id: I2af595073f862c570c1ce0dcb3717f3d2b9cfd71
Refs: #2613
diff --git a/daemon/face/multicast-udp-face.hpp b/daemon/face/multicast-udp-face.hpp
index eff4394..7aab4a7 100644
--- a/daemon/face/multicast-udp-face.hpp
+++ b/daemon/face/multicast-udp-face.hpp
@@ -40,10 +40,8 @@
/**
* \brief Creates a UDP-based face for multicast communication
*/
- MulticastUdpFace(const shared_ptr<protocol::socket>& recvSocket,
- const shared_ptr<protocol::socket>& sendSocket,
- const protocol::endpoint& localEndpoint,
- const protocol::endpoint& multicastEndpoint);
+ MulticastUdpFace(const protocol::endpoint& multicastGroup, const FaceUri& localUri,
+ protocol::socket recvSocket, protocol::socket sendSocket);
const protocol::endpoint&
getMulticastGroup() const;
@@ -61,7 +59,7 @@
private:
protocol::endpoint m_multicastGroup;
- shared_ptr<protocol::socket> m_sendSocket;
+ protocol::socket m_sendSocket;
};
} // namespace nfd