1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-07-14 20:47:10 +02:00

Update POCO library.

This commit is contained in:
Sandu Liviu Catalin
2023-03-23 20:19:11 +02:00
parent 8d15f4b6e9
commit 233fc103f9
2521 changed files with 257092 additions and 72789 deletions
@@ -66,11 +66,11 @@ class TimeRequestHandler: public HTTPRequestHandler
/// Return a HTML document with the current date and time.
{
public:
TimeRequestHandler(const std::string& format):
TimeRequestHandler(const std::string& format):
_format(format)
{
}
void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
{
Application& app = Application::instance();
@@ -86,7 +86,7 @@ public:
{
app.logger().information("No client certificate available.");
}
Timestamp now;
std::string dt(DateTimeFormatter::format(now, _format));
@@ -100,7 +100,7 @@ public:
ostr << dt;
ostr << "</p></body></html>";
}
private:
std::string _format;
};
@@ -121,7 +121,7 @@ public:
else
return 0;
}
private:
std::string _format;
};
@@ -151,7 +151,7 @@ public:
{
Poco::Net::initializeSSL();
}
~HTTPSTimeServer()
{
Poco::Net::uninitializeSSL();
@@ -163,7 +163,7 @@ protected:
loadConfiguration(); // load default configuration files, if present
ServerApplication::initialize(self);
}
void uninitialize()
{
ServerApplication::uninitialize();
@@ -172,7 +172,7 @@ protected:
void defineOptions(OptionSet& options)
{
ServerApplication::defineOptions(options);
options.addOption(
Option("help", "h", "display help information on command line arguments")
.required(false)
@@ -207,7 +207,7 @@ protected:
// get parameters from configuration file
unsigned short port = (unsigned short) config().getInt("HTTPSTimeServer.port", 9443);
std::string format(config().getString("HTTPSTimeServer.format", DateTimeFormat::SORTABLE_FORMAT));
// set-up a server socket
SecureServerSocket svs(port);
// set-up a HTTPServer instance
@@ -221,7 +221,7 @@ protected:
}
return Application::EXIT_OK;
}
private:
bool _helpRequested;
};