mgmt: Added skeleton for InternalFace
refs: #1137
Change-Id: I5aab5a9cac8da5f31603fb755b934347b63045eb
diff --git a/daemon/mgmt/internal-face.cpp b/daemon/mgmt/internal-face.cpp
new file mode 100644
index 0000000..cd66b4a
--- /dev/null
+++ b/daemon/mgmt/internal-face.cpp
@@ -0,0 +1,56 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/**
+ * Copyright (C) 2014 Named Data Networking Project
+ * See COPYING for copyright and distribution information.
+ */
+
+#include "internal-face.hpp"
+
+namespace nfd {
+
+const FaceId INTERNAL_FACE_FACEID = 0;
+
+InternalFace::InternalFace()
+ : Face(INTERNAL_FACE_FACEID)
+{
+
+}
+
+void
+InternalFace::sendInterest(const Interest& interest)
+{
+ static const Name prefixRegPrefix("/localhost/nfd/prefixreg");
+ const Name& interestName = interest.getName();
+
+ if (prefixRegPrefix.isPrefixOf(interestName))
+ {
+ //invoke FibManager
+ }
+ //Drop Interest
+}
+
+void
+InternalFace::sendData(const Data& data)
+{
+
+}
+
+void
+InternalFace::setInterestFilter(const Name& filter,
+ OnInterest onInterest)
+{
+
+}
+
+void
+InternalFace::put(const Data& data)
+{
+ onReceiveData(data);
+}
+
+InternalFace::~InternalFace()
+{
+
+}
+
+} // namespace nfd