Changing Closure API. No need for so many pointers...
diff --git a/src/fetcher.cc b/src/fetcher.cc
index c015407..6745518 100644
--- a/src/fetcher.cc
+++ b/src/fetcher.cc
@@ -20,6 +20,8 @@
*/
#include "fetcher.h"
+#include "fetch-manager.h"
+
#include <boost/make_shared.hpp>
#include <boost/ref.hpp>
#include <boost/throw_exception.hpp>
@@ -52,3 +54,19 @@
{
m_active = true;
}
+
+void
+Fetcher::OnData (uint32_t seqno, const Ccnx::Name &name, const Ccnx::Bytes &)
+{
+ // bla bla
+ if (0)
+ {
+ m_active = false;
+ m_fetchManager.DidFetchComplete (*this);
+ }
+}
+
+void
+Fetcher::OnTimeout (uint32_t seqno, const Ccnx::Name &name)
+{
+}