More bug fixes to complete basic operations of the application. Additionally implemented simple dump
option in application.
Change-Id: I3a47580af916482b0d901456455a9395d89048c7
diff --git a/src/sequential-data-fetcher.hpp b/src/sequential-data-fetcher.hpp
index 8687d9c..4b050db 100644
--- a/src/sequential-data-fetcher.hpp
+++ b/src/sequential-data-fetcher.hpp
@@ -56,7 +56,7 @@
* @brief Start the sequential data fetcher
*/
void
- start();
+ start(const time::milliseconds& timeout = time::milliseconds::zero());
/**
* @brief Pause the sequential data fetcher
@@ -70,11 +70,8 @@
void
resume();
- void
- seed(const time::milliseconds& timeout = time::milliseconds::zero()) const;
-
protected:
- std::vector<ndn::Name>
+ void
downloadTorrentFile();
void
@@ -95,19 +92,15 @@
virtual void
onManifestReceived(const std::vector<Name>& packetNames);
+ virtual void
+ onTorrentFileSegmentReceived(const std::vector<Name>& manifestNames);
+
private:
std::string m_dataPath;
ndn::Name m_torrentFileName;
shared_ptr<TorrentManager> m_manager;
};
-inline
-void
-SequentialDataFetcher::seed(const time::milliseconds& timeout) const
-{
- m_manager->processEvents(timeout);
-}
-
} // namespace ntorrent
} // namespace ndn