aboutsummaryrefslogtreecommitdiffstats
path: root/Input/ICNConnectionConsumerApi.h
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-03-22 11:04:20 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-03-22 11:36:21 +0100
commitb5fc2106912f0ed3168972caee33b45ee6bb4b53 (patch)
tree4340be4fdab0c0d54c36f041d69421bc6ff41e05 /Input/ICNConnectionConsumerApi.h
parent78089ad6898f15bc6a716eb39e3f6087dfd9f553 (diff)
[HICN-8] Update viper video player to use hicn sockets over HTTP
Change-Id: I0aa727e513e3ffcf3286cecc7e7c43237da5155f Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'Input/ICNConnectionConsumerApi.h')
-rw-r--r--Input/ICNConnectionConsumerApi.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Input/ICNConnectionConsumerApi.h b/Input/ICNConnectionConsumerApi.h
index 9a5f8a47..c05c5244 100644
--- a/Input/ICNConnectionConsumerApi.h
+++ b/Input/ICNConnectionConsumerApi.h
@@ -17,7 +17,8 @@
#define QTPLAYER_INPUT_ICNCONNECTIONCONSUMERAPI_H_
#if defined(HICNET)
-#include <hicnet/hicnet_http_facade.h>
+#include <hicn/transport/http/facade.h>
+#include <hicn/transport/protocols/download_observer.h>
#else
#include <icnet/icnet_http_facade.h>
#endif
@@ -45,7 +46,6 @@
#include <errno.h>
#include "../Portable/MultiThreading.h"
-#include <boost/exception/diagnostic_information.hpp>
//logging purpose
#include <chrono>
@@ -56,7 +56,13 @@ namespace libdash {
namespace framework {
namespace input {
+#if defined(HICNET)
+class ICNConnectionConsumerApi : public IICNConnection, public transport::protocol::IcnObserver{
+#else
class ICNConnectionConsumerApi : public IICNConnection, public libl4::transport::IcnObserver{
+#endif
+
+
public:
ICNConnectionConsumerApi(double alpha, float beta, float drop);
virtual ~ICNConnectionConsumerApi();
@@ -81,7 +87,6 @@ public:
virtual void SetBeta(float beta);
virtual void SetDrop(float drop);
- //libl4::transport::IcnObserver
virtual void notifyStats(double throughput);
virtual void notifyDownloadTime(double downloadingTime);