aboutsummaryrefslogtreecommitdiffstats
path: root/Input
diff options
context:
space:
mode:
Diffstat (limited to 'Input')
-rw-r--r--Input/ICNConnectionConsumerApi.cpp6
-rw-r--r--Input/ICNConnectionConsumerApi.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/Input/ICNConnectionConsumerApi.cpp b/Input/ICNConnectionConsumerApi.cpp
index d5048cba..e6715e68 100644
--- a/Input/ICNConnectionConsumerApi.cpp
+++ b/Input/ICNConnectionConsumerApi.cpp
@@ -182,6 +182,12 @@ void ICNConnectionConsumerApi::notifyStats(double winSize)
Debug("ICNConnection:\tNotificationICPDL\t%f\t%f\n", winSize, speed);
}
+void ICNConnectionConsumerApi::notifyDownloadTime(double downloadingTime)
+{
+ //downloadingTime is in microseconds, dnltime should be in seconds
+ this->dnltime = downloadingTime / 1000000;
+}
+
void ICNConnectionConsumerApi::SetBeta(float beta)
{
this->beta = beta;
diff --git a/Input/ICNConnectionConsumerApi.h b/Input/ICNConnectionConsumerApi.h
index 240ebcaa..9a5f8a47 100644
--- a/Input/ICNConnectionConsumerApi.h
+++ b/Input/ICNConnectionConsumerApi.h
@@ -80,7 +80,10 @@ public:
const std::vector<dash::metrics::IHTTPTransaction *> &GetHTTPTransactionList() const;
virtual void SetBeta(float beta);
virtual void SetDrop(float drop);
+
+ //libl4::transport::IcnObserver
virtual void notifyStats(double throughput);
+ virtual void notifyDownloadTime(double downloadingTime);
private:
libl4::http::HTTPClientConnection *hTTPClientConnection;