face/tcp: Implementing mock version of TcpFace
The real version should avoid all exceptions in the processing path,
enable lazy decoding of Interest/Data packets, and implement
LocalControlHeader processing and association with Interest/Data
packets.
Change-Id: Ied907b3d10b7110a1dcc05d0d6d3c0dd277df8e1
refs: #1132, #1133, #1134, #1135
diff --git a/daemon/face/tcp-face.hpp b/daemon/face/tcp-face.hpp
index 86ec086..3d2bb53 100644
--- a/daemon/face/tcp-face.hpp
+++ b/daemon/face/tcp-face.hpp
@@ -19,7 +19,10 @@
class TcpFace : public StreamFace<boost::asio::ip::tcp>
{
public:
- TcpFace(FaceId id, const shared_ptr<protocol::socket>& socket);
+ typedef boost::asio::ip::tcp protocol;
+
+ TcpFace(FaceId id,
+ const shared_ptr<protocol::socket>& socket);
// from Face
virtual void
@@ -27,9 +30,6 @@
virtual void
sendData(const Data& data);
-
-private:
- shared_ptr<protocol::socket> m_socket;
};
} // namespace ndn