More bug fixes to complete basic operations of the application. Additionally implemented simple dump
option in application.
Change-Id: I3a47580af916482b0d901456455a9395d89048c7
diff --git a/src/fetching-strategy-manager.hpp b/src/fetching-strategy-manager.hpp
index a34afa0..b81faf2 100644
--- a/src/fetching-strategy-manager.hpp
+++ b/src/fetching-strategy-manager.hpp
@@ -46,7 +46,7 @@
* @brief Method called to start the torrent downloading
*/
virtual void
- start() = 0;
+ start(const time::milliseconds& timeout = time::milliseconds::zero()) = 0;
/**
* @brief Method called to pause the torrent downloading
@@ -67,13 +67,6 @@
struct status {
double downloadedPercent;
};
- /**
- * @brief Seed downloaded data for the specified timeout.
- * By default this will go into an infinite loop.
- */
- virtual void
- seed(const time::milliseconds& timeout = time::milliseconds::zero()) const = 0;
-
private:
/**
* @brief Callback to be called when data is received
@@ -88,6 +81,12 @@
onDataRetrievalFailure(const ndn::Interest& interest, const std::string& errorCode) = 0;
/**
+ * @brief Callback to be called when a torrent file segment is received
+ */
+ virtual void
+ onTorrentFileSegmentReceived(const std::vector<Name>& manifestNames) = 0;
+
+ /**
* @brief Callback to be called when a file manifest is received
*/
virtual void