Adding broadcast hint as a parameter to FetchManager
This hint must be consistent with the one used by content server, but it
was not the case before (and was defined independently twice anyways).
Another change in this commit: broadcast forwarding hint does not
contain application name anymore. Not sure if we need to return it back
or not.
Change-Id: I685620ba1ec74a641015c91f1d6e7b5ff5969215
diff --git a/src/dispatcher.cc b/src/dispatcher.cc
index fadc224..6beb7c3 100644
--- a/src/dispatcher.cc
+++ b/src/dispatcher.cc
@@ -73,11 +73,15 @@
bind(&Dispatcher::Did_SyncLog_StateChange, this, _1), ccnx, DEFAULT_SYNC_INTEREST_INTERVAL);
FetchTaskDbPtr actionTaskDb = make_shared<FetchTaskDb>(m_rootDir, "action");
- m_actionFetcher = make_shared<FetchManager> (m_ccnx, bind (&SyncLog::LookupLocator, &*m_syncLog, _1), 3,
+ m_actionFetcher = make_shared<FetchManager> (m_ccnx, bind (&SyncLog::LookupLocator, &*m_syncLog, _1),
+ Name(BROADCAST_DOMAIN), // no appname suffix now
+ 3,
bind (&Dispatcher::Did_FetchManager_ActionFetch, this, _1, _2, _3, _4), FetchManager::FinishCallback(), actionTaskDb);
FetchTaskDbPtr fileTaskDb = make_shared<FetchTaskDb>(m_rootDir, "file");
- m_fileFetcher = make_shared<FetchManager> (m_ccnx, bind (&SyncLog::LookupLocator, &*m_syncLog, _1), 3,
+ m_fileFetcher = make_shared<FetchManager> (m_ccnx, bind (&SyncLog::LookupLocator, &*m_syncLog, _1),
+ Name(BROADCAST_DOMAIN), // no appname suffix now
+ 3,
bind (&Dispatcher::Did_FetchManager_FileSegmentFetch, this, _1, _2, _3, _4),
bind (&Dispatcher::Did_FetchManager_FileFetchComplete, this, _1, _2),
fileTaskDb);