18 #ifndef NAF_CORE_SERVER
19 #define NAF_CORE_SERVER
22 #include <Poco/ThreadPool.h>
29 #include "Poco/Exception.h"
30 #include "Poco/Util/ServerApplication.h"
31 #include "Poco/Net/HTTPServer.h"
32 #include "Poco/Net/ServerSocket.h"
33 #include "Poco/Net/SecureServerSocket.h"
35 #include "core/handler_factory.h"
36 #include "tools/output_logger.h"
37 #include "tools/settings_manager.h"
40 using namespace Poco::Net;
41 using namespace Poco::Util;
55 using Ptr = std::shared_ptr<Server>;
59 bool get_use_ssl()
const {
return use_ssl_; }
61 void set_use_ssl(
bool use_ssl){ use_ssl_ = use_ssl; }
63 void initialize(Application&
self)
override;
64 void uninitialize()
override;
65 int main(
const std::vector<std::string>& args)
override;
68 void SetupParams_(HTTPServerParams::Ptr params);
72 std::string server_name_;
74 std::unique_ptr<HTTPServer> http_server_;
Definition: handler_factory.h:81