From a81921f0fd4296f8def24665174062782b3480be Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 16 Feb 2018 17:53:36 +0100 Subject: Added reverse proxy (TCP --> ICN) functionality Change-Id: I2305aa11aea4a37d3d63c6399c49389f78dfd91c Signed-off-by: Mauro Sardara --- http-server/icn_response.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'http-server/icn_response.h') diff --git a/http-server/icn_response.h b/http-server/icn_response.h index 13a75629..7019590b 100644 --- a/http-server/icn_response.h +++ b/http-server/icn_response.h @@ -13,10 +13,9 @@ * limitations under the License. */ -#include "response.h" +#pragma once -#ifndef ICN_WEB_SERVER_ICNRESPONSE_H_ -#define ICN_WEB_SERVER_ICNRESPONSE_H_ +#include "response.h" namespace icn_httpserver { @@ -30,7 +29,9 @@ class IcnResponse std::string ndn_path, int response_id); - void send(const SendCallback &callback = nullptr); + void send(const SendCallback &callback = nullptr) override; + + void setResponseLifetime(const std::chrono::milliseconds &response_lifetime) override; private: std::string ndn_name_; @@ -40,5 +41,3 @@ class IcnResponse }; } // end namespace icn_httpserver - -#endif // ICN_WEB_SERVER_ICNRESPONSE_H_ -- cgit 1.2.3-korg