Added processEvents() call to TorrentManager and update clients to use it including adding a seed method to the FetchStratedegyManager to seed data.
Change-Id: I98e4c794c98ca35765df968c2cf7c4fe1e622595
diff --git a/src/sequential-data-fetcher.hpp b/src/sequential-data-fetcher.hpp
index ea6ce90..8687d9c 100644
--- a/src/sequential-data-fetcher.hpp
+++ b/src/sequential-data-fetcher.hpp
@@ -70,6 +70,9 @@
void
resume();
+ void
+ seed(const time::milliseconds& timeout = time::milliseconds::zero()) const;
+
protected:
std::vector<ndn::Name>
downloadTorrentFile();
@@ -98,6 +101,13 @@
shared_ptr<TorrentManager> m_manager;
};
+inline
+void
+SequentialDataFetcher::seed(const time::milliseconds& timeout) const
+{
+ m_manager->processEvents(timeout);
+}
+
} // namespace ntorrent
} // namespace ndn