diff options
author | 2017-06-29 15:27:40 +0200 | |
---|---|---|
committer | 2017-06-29 15:27:40 +0200 | |
commit | 2e126cfa7d1c82a758b14133cc67e0ff7af1f11e (patch) | |
tree | f4b524933fe09e95e1f548b93b60f6b3e9952663 /Input | |
parent | 015dd155a50c2b78b381a9b5c28c012bc1dbd0ed (diff) |
Reinstating adaptation logics that require downloading time
Change-Id: I772c67fb7cde42c5a21673fbd7c450e3b51a9959
Signed-off-by: Jacques Samain <jsamain+fdio@cisco.com>
Diffstat (limited to 'Input')
-rw-r--r-- | Input/ICNConnectionConsumerApi.cpp | 6 | ||||
-rw-r--r-- | Input/ICNConnectionConsumerApi.h | 3 |
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; |