aboutsummaryrefslogtreecommitdiffstats
path: root/Input/ICNConnectionConsumerApi.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2020-02-18 16:53:12 +0100
committerMauro Sardara <msardara@cisco.com>2020-02-18 15:57:02 +0000
commit0f41a0646ab2083b7ed64c61ac5175f325e7ad3e (patch)
tree538613f382f94a5ef36cc2d19ac247d665a1ee57 /Input/ICNConnectionConsumerApi.h
parent0b2f5c75cfeb33b233c02866e848e3d94de48ee7 (diff)
[HICN-529] Fix viper API to work with hicn and cicn.
Change-Id: I9715c29855302ee747313a95897e645d86218c7f Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'Input/ICNConnectionConsumerApi.h')
-rw-r--r--Input/ICNConnectionConsumerApi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Input/ICNConnectionConsumerApi.h b/Input/ICNConnectionConsumerApi.h
index c4e89926..539e2e0f 100644
--- a/Input/ICNConnectionConsumerApi.h
+++ b/Input/ICNConnectionConsumerApi.h
@@ -96,7 +96,11 @@ public:
private:
libl4::http::HTTPClientConnection *hTTPClientConnection;
- libl4::http::HTTPResponse response;
+#ifdef HICNET
+ libl4::http::HTTPPayload response;
+#else
+ std::shared_ptr<libl4::http::HTTPResponse> response;
+#endif
float beta;
float drop;
std::string v6FirstWord;