From 3acdbf38c903215f12bfc726d89887f245c28106 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 30 Mar 2014 08:40:53 -0400 Subject: [PATCH] moved itoopieImage inside HTTPConnection --- HTTPServer.cpp | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++ HTTPServer.h | 9 +++-- 2 files changed, 103 insertions(+), 3 deletions(-) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index b7a2989a..27e6f0a1 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -13,6 +13,103 @@ namespace i2p { namespace util { + + const std::string HTTPConnection::itoopieImage = + "\"\""; + namespace misc_strings { diff --git a/HTTPServer.h b/HTTPServer.h index 4968c2f4..df9ca4e7 100644 --- a/HTTPServer.h +++ b/HTTPServer.h @@ -11,12 +11,10 @@ namespace i2p { namespace util { - const std::string itoopieImage = "\"\""; - class HTTPConnection { - protected: + struct header { std::string name; @@ -70,8 +68,13 @@ namespace util reply m_Reply; protected: + virtual void HandleDestinationRequest(const std::string& address, const std::string& uri); virtual void RunRequest (); + + private: + + static const std::string itoopieImage; }; class HTTPServer