face: Skeleton implementation for the TCP protocol (face, channel, factory)
refs: #1132, #1133, #1134, #1135
Change-Id: I4a5935a078c7289dc6ea9b33f358f1a578c4405c
diff --git a/daemon/face/tcp-channel.hpp b/daemon/face/tcp-channel.hpp
new file mode 100644
index 0000000..50846a9
--- /dev/null
+++ b/daemon/face/tcp-channel.hpp
@@ -0,0 +1,38 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/**
+ * Copyright (C) 2014 Named Data Networking Project
+ * See COPYING for copyright and distribution information.
+ */
+
+#ifndef NFD_FACE_TCP_CHANNEL_HPP
+#define NFD_FACE_TCP_CHANNEL_HPP
+
+// #include "session-based-channel.hpp"
+
+#include "common.hpp"
+// #include <boost/asio/ip/tcp.hpp>
+
+namespace tcp {
+typedef boost::asio::ip::tcp::endpoint Endpoint;
+} // namespace tcp
+
+namespace ndn {
+
+class TcpChannel // : protected SessionBasedChannel
+{
+public:
+ TcpChannel(boost::asio::io_service& ioService, const tcp::Endpoint& endpoint);
+
+ void
+ listen(const tcp::Endpoint& endpoint);
+
+ void
+ connect(const tcp::Endpoint& endpoint);
+
+private:
+ tcp::Endpoint m_localEndpoint;
+};
+
+} // namespace ndn
+
+#endif // NFD_FACE_TCP_CHANNEL_HPP