face: use move semantics for sockets where possible
Change-Id: I2af595073f862c570c1ce0dcb3717f3d2b9cfd71
Refs: #2613
diff --git a/daemon/face/tcp-face.hpp b/daemon/face/tcp-face.hpp
index e4427de..f77b72d 100644
--- a/daemon/face/tcp-face.hpp
+++ b/daemon/face/tcp-face.hpp
@@ -36,8 +36,8 @@
class TcpFace : public StreamFace<boost::asio::ip::tcp>
{
public:
- TcpFace(const shared_ptr<protocol::socket>& socket,
- bool isOnDemand);
+ TcpFace(const FaceUri& remoteUri, const FaceUri& localUri,
+ protocol::socket socket, bool isOnDemand);
};
@@ -49,8 +49,8 @@
class TcpLocalFace : public StreamFace<boost::asio::ip::tcp, LocalFace>
{
public:
- TcpLocalFace(const shared_ptr<protocol::socket>& socket,
- bool isOnDemand);
+ TcpLocalFace(const FaceUri& remoteUri, const FaceUri& localUri,
+ protocol::socket socket, bool isOnDemand);
};