Added Node class, and move most functionality from Face to Node. Make connect take a Node, not a Face.
diff --git a/ndn-cpp/transport/transport.hpp b/ndn-cpp/transport/transport.hpp
index 3246340..9159b99 100644
--- a/ndn-cpp/transport/transport.hpp
+++ b/ndn-cpp/transport/transport.hpp
@@ -10,14 +10,14 @@
namespace ndn {
-class Face;
+class Node;
class Transport {
public:
/**
- * Connect to the host specified in face.
- * @param face Not a shared_ptr because we assume that it will remain valid during the life of this Transport object.
+ * Connect to the host specified in node.
+ * @param node Not a shared_ptr because we assume that it will remain valid during the life of this Transport object.
*/
- virtual void connect(Face &face);
+ virtual void connect(Node &node);
/**
* Set data to the host
@@ -32,7 +32,7 @@
}
/**
- * Process any data to receive. For each element received, call face.onReceivedElement.
+ * Process any data to receive. For each element received, call node.onReceivedElement.
* This is non-blocking and will silently time out after a brief period if there is no data to receive.
* You should repeatedly call this from an event loop.
* @throw This may throw an exception for reading data or in the callback for processing the data. If you