From 473e4b514ff411a1d4372f29eccea616d7ea4c60 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 5 Jun 2017 18:59:26 +0200 Subject: - Changed library icnet - application interface Change-Id: I25112ab1e1401a21ed2530d3874a7b4bf740ec5d Signed-off-by: Mauro Sardara --- Input/ICNConnectionConsumerApi.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'Input/ICNConnectionConsumerApi.h') diff --git a/Input/ICNConnectionConsumerApi.h b/Input/ICNConnectionConsumerApi.h index a62f6b01..0ee5cba7 100644 --- a/Input/ICNConnectionConsumerApi.h +++ b/Input/ICNConnectionConsumerApi.h @@ -16,6 +16,13 @@ #ifndef QTPLAYER_INPUT_ICNCONNECTIONCONSUMERAPI_H_ #define QTPLAYER_INPUT_ICNCONNECTIONCONSUMERAPI_H_ +#if defined(HICNET) +#include +#else +#include +#endif + +#include #include "../Portable/Networking.h" #include "IICNConnection.h" #include "../debug.h" @@ -30,8 +37,7 @@ #include #include #include -#include -#include + #include #include #include @@ -50,7 +56,7 @@ namespace libdash { namespace framework { namespace input { -class ICNConnectionConsumerApi : public IICNConnection, public icnet::IcnObserver { +class ICNConnectionConsumerApi : public IICNConnection { public: ICNConnectionConsumerApi(double alpha, float beta, float drop); virtual ~ICNConnectionConsumerApi(); @@ -69,10 +75,6 @@ public: virtual double GetDownloadingTime(); - void processPayload(icnet::ConsumerSocket& , const uint8_t*, size_t); - - bool onPacket(icnet::ConsumerSocket& , const icnet::ContentObject&); - const std::vector &GetTCPConnectionList() const; const std::vector &GetHTTPTransactionList() const; @@ -81,6 +83,8 @@ public: virtual void notifyStats(double throughput); private: + libl4::http::HTTPClientConnection *hTTPClientConnection; + libl4::http::HTTPResponse response; float beta; float drop; uint64_t i_chunksize; @@ -89,8 +93,6 @@ private: /**< number of content objects we missed in ICNBlock */ std::string m_name; - icnet::ccnx::Name m_recv_name; - icnet::ccnx::Portal m_portal; int m_first; bool m_isFinished; uint64_t m_nextSeg; @@ -109,7 +111,6 @@ private: unsigned int nchunks; // XXX chunks=-1 means: download the whole file! bool output; bool report_path; - icnet::ConsumerSocket* myConsumer; bool res; std::vector mdata; char* deezData; -- cgit 1.2.3-korg