diff --git a/Daemon.cpp b/Daemon.cpp index 81bbcdd5..fdb9bf3f 100644 --- a/Daemon.cpp +++ b/Daemon.cpp @@ -36,7 +36,7 @@ namespace i2p Daemon_Singleton_Private() {}; ~Daemon_Singleton_Private() {}; - std::unique_ptr httpServer; + std::unique_ptr httpServer; std::unique_ptr m_I2PControlService; #ifdef USE_UPNP @@ -202,7 +202,7 @@ namespace i2p std::string httpAddr; i2p::config::GetOption("http.address", httpAddr); uint16_t httpPort; i2p::config::GetOption("http.port", httpPort); LogPrint(eLogInfo, "Daemon: starting HTTP Server at ", httpAddr, ":", httpPort); - d.httpServer = std::unique_ptr(new i2p::util::HTTPServer(httpAddr, httpPort)); + d.httpServer = std::unique_ptr(new i2p::http::HTTPServer(httpAddr, httpPort)); d.httpServer->Start(); } diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 2c0f3ea5..a0a82ecb 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -26,10 +26,8 @@ // For image and info #include "version.h" -namespace i2p -{ -namespace util -{ +namespace i2p { +namespace http { const char *itoopieImage = "\"ICToopie (newSocket); conn->Receive (); } -} -} +} // http +} // i2p diff --git a/HTTPServer.h b/HTTPServer.h index e5187725..e53d95f2 100644 --- a/HTTPServer.h +++ b/HTTPServer.h @@ -1,10 +1,8 @@ #ifndef HTTP_SERVER_H__ #define HTTP_SERVER_H__ -namespace i2p -{ -namespace util -{ +namespace i2p { +namespace http { extern const char *itoopieImage; extern const char *itoopieFavicon; const size_t HTTP_CONNECTION_BUFFER_SIZE = 8192; @@ -124,7 +122,7 @@ namespace util protected: virtual void CreateConnection(std::shared_ptr newSocket); }; -} -} +} // http +} // i2p #endif /* HTTP_SERVER_H__ */