Now dispatcher uses CcnxDisovery to maintain localPrefix
diff --git a/src/dispatcher.h b/src/dispatcher.h
index 3762f0c..3bb01b9 100644
--- a/src/dispatcher.h
+++ b/src/dispatcher.h
@@ -46,7 +46,7 @@
public:
// sharedFolder is the name to be used in NDN name;
// rootDir is the shared folder dir in local file system;
- Dispatcher(const boost::filesystem::path &path, const std::string &localUserName, const Ccnx::Name &localPrefix,
+ Dispatcher(const boost::filesystem::path &path, const std::string &localUserName,
const std::string &sharedFolder, const boost::filesystem::path &rootDir,
Ccnx::CcnxWrapperPtr ccnx, SchedulerPtr scheduler, int poolSize = 2);
~Dispatcher();
@@ -115,6 +115,9 @@
void
Did_FetchManager_FileFetchComplete_Execute (Ccnx::Name deviceName, Ccnx::Name fileBaseName);
+ void
+ Did_LocalPrefix_Updated (const Ccnx::Name &prefix);
+
private:
void
AssembleFile_Execute (const Ccnx::Name &deviceName, const Hash &filehash, const boost::filesystem::path &relativeFilepath);