aboutsummaryrefslogtreecommitdiffstats
path: root/http-server/icn_request.cc
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-06-05 18:43:52 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-06-05 20:32:17 +0200
commit4da1b7955fb3190c0e0646cfde99436aa140d271 (patch)
treebb9518b7aaf0c0493de03da83753d6a50f0aa9bf /http-server/icn_request.cc
parente8a980e1bc33adacb763066dc263f447656cb351 (diff)
- Added proxy function
- Changed interface between library and application - Support for different build type Change-Id: I34ae75057490eb887d353e53c6d013f88bead04f Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'http-server/icn_request.cc')
-rw-r--r--http-server/icn_request.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/http-server/icn_request.cc b/http-server/icn_request.cc
index 07d95a22..1709e917 100644
--- a/http-server/icn_request.cc
+++ b/http-server/icn_request.cc
@@ -17,19 +17,19 @@
namespace icn_httpserver {
-IcnRequest::IcnRequest(std::shared_ptr<icnet::ProducerSocket> producer)
- : producer_(producer) {
+IcnRequest::IcnRequest(std::shared_ptr<libl4::http::HTTPServerPublisher>& publisher)
+ : publisher_(publisher) {
time_t t;
time(&t);
srand((unsigned int) t);
request_id_ = rand();
}
-IcnRequest::IcnRequest(std::shared_ptr<icnet::ProducerSocket> producer,
+IcnRequest::IcnRequest(std::shared_ptr<libl4::http::HTTPServerPublisher>& publisher,
std::string name,
std::string path,
std::string method, std::string http_version)
- : IcnRequest(producer) {
+ : IcnRequest(publisher) {
this->name_ = name;
this->path_ = path;
this->method_ = method;
@@ -52,12 +52,12 @@ void IcnRequest::setRequest_id(int request_id) {
IcnRequest::request_id_ = request_id;
}
-const std::shared_ptr<icnet::ProducerSocket> &IcnRequest::getProducer() const {
- return producer_;
+const std::shared_ptr<libl4::http::HTTPServerPublisher> &IcnRequest::getHttpPublisher() const {
+ return publisher_;
}
-void IcnRequest::setProducer(const std::shared_ptr<icnet::ProducerSocket> &producer) {
- IcnRequest::producer_ = producer;
+void IcnRequest::setProducer(const std::shared_ptr<libl4::http::HTTPServerPublisher> &producer) {
+ IcnRequest::publisher_ = producer;
}
} // end namespace icn_httpserver