face: Face::getLocalUri
refs #1396
Change-Id: Icf02ae0a4136b6da3f6388cdce2f861bec44e940
diff --git a/daemon/face/unix-stream-face.cpp b/daemon/face/unix-stream-face.cpp
index 2753f57..1343729 100644
--- a/daemon/face/unix-stream-face.cpp
+++ b/daemon/face/unix-stream-face.cpp
@@ -15,8 +15,13 @@
UnixStreamFace::protocol, LocalFace,
"UnixStreamFace");
+BOOST_STATIC_ASSERT((boost::is_same<UnixStreamFace::protocol::socket::native_handle_type,
+ int>::value));
+
UnixStreamFace::UnixStreamFace(const shared_ptr<UnixStreamFace::protocol::socket>& socket)
- : StreamFace<protocol, LocalFace>(FaceUri(socket->local_endpoint()), socket, true)
+ : StreamFace<protocol, LocalFace>(FaceUri::fromFd(socket->native_handle()),
+ FaceUri(socket->local_endpoint()),
+ socket, true)
{
}