Switch from NDNx to CCNx
Change-Id: Icc2e6dd95d9c4e0ba22b7efb9933c1db7194842e
diff --git a/src/fetch-manager.h b/src/fetch-manager.h
index ecf2286..06f6687 100644
--- a/src/fetch-manager.h
+++ b/src/fetch-manager.h
@@ -30,7 +30,7 @@
#include <stdint.h>
#include "scheduler.h"
#include "executor.h"
-#include "ccnx-wrapper.h"
+#include "ndnx-wrapper.h"
#include "fetch-task-db.h"
#include "fetcher.h"
@@ -44,12 +44,12 @@
PRIORITY_HIGH
};
- typedef boost::function<Ccnx::Name(const Ccnx::Name &)> Mapping;
- typedef boost::function<void(Ccnx::Name &deviceName, Ccnx::Name &baseName, uint64_t seq, Ccnx::PcoPtr pco)> SegmentCallback;
- typedef boost::function<void(Ccnx::Name &deviceName, Ccnx::Name &baseName)> FinishCallback;
- FetchManager (Ccnx::CcnxWrapperPtr ccnx,
+ typedef boost::function<Ndnx::Name(const Ndnx::Name &)> Mapping;
+ typedef boost::function<void(Ndnx::Name &deviceName, Ndnx::Name &baseName, uint64_t seq, Ndnx::PcoPtr pco)> SegmentCallback;
+ typedef boost::function<void(Ndnx::Name &deviceName, Ndnx::Name &baseName)> FinishCallback;
+ FetchManager (Ndnx::NdnxWrapperPtr ndnx,
const Mapping &mapping,
- const Ccnx::Name &broadcastForwardingHint,
+ const Ndnx::Name &broadcastForwardingHint,
uint32_t parallelFetches = 3,
const SegmentCallback &defaultSegmentCallback = SegmentCallback(),
const FinishCallback &defaultFinishCallback = FinishCallback(),
@@ -58,30 +58,30 @@
virtual ~FetchManager ();
void
- Enqueue (const Ccnx::Name &deviceName, const Ccnx::Name &baseName,
+ Enqueue (const Ndnx::Name &deviceName, const Ndnx::Name &baseName,
const SegmentCallback &segmentCallback, const FinishCallback &finishCallback,
uint64_t minSeqNo, uint64_t maxSeqNo, int priority=PRIORITY_NORMAL);
// Enqueue using default callbacks
void
- Enqueue (const Ccnx::Name &deviceName, const Ccnx::Name &baseName,
+ Enqueue (const Ndnx::Name &deviceName, const Ndnx::Name &baseName,
uint64_t minSeqNo, uint64_t maxSeqNo, int priority=PRIORITY_NORMAL);
// only for Fetcher
- inline Ccnx::CcnxWrapperPtr
- GetCcnx ();
+ inline Ndnx::NdnxWrapperPtr
+ GetNdnx ();
private:
// Fetch Events
void
- DidDataSegmentFetched (Fetcher &fetcher, uint64_t seqno, const Ccnx::Name &basename,
- const Ccnx::Name &name, Ccnx::PcoPtr data);
+ DidDataSegmentFetched (Fetcher &fetcher, uint64_t seqno, const Ndnx::Name &basename,
+ const Ndnx::Name &name, Ndnx::PcoPtr data);
void
DidNoDataTimeout (Fetcher &fetcher);
void
- DidFetchComplete (Fetcher &fetcher, const Ccnx::Name &deviceName, const Ccnx::Name &baseName);
+ DidFetchComplete (Fetcher &fetcher, const Ndnx::Name &deviceName, const Ndnx::Name &baseName);
void
ScheduleFetches ();
@@ -90,7 +90,7 @@
TimedWait (Fetcher &fetcher);
private:
- Ccnx::CcnxWrapperPtr m_ccnx;
+ Ndnx::NdnxWrapperPtr m_ndnx;
Mapping m_mapping;
uint32_t m_maxParallelFetches;
@@ -110,13 +110,13 @@
FinishCallback m_defaultFinishCallback;
FetchTaskDbPtr m_taskDb;
- const Ccnx::Name m_broadcastHint;
+ const Ndnx::Name m_broadcastHint;
};
-Ccnx::CcnxWrapperPtr
-FetchManager::GetCcnx ()
+Ndnx::NdnxWrapperPtr
+FetchManager::GetNdnx ()
{
- return m_ccnx;
+ return m_ndnx;
}
typedef boost::error_info<struct tag_errmsg, std::string> errmsg_info_str;