20 streams::IOSocketStream stream;
21 std::unordered_map<std::string, std::unique_ptr<BaseExecutor>> statefulExecutors;
22 std::function<void()> cleanup;
28 bool webExceptionAcquired;
31 Client(SSL* ssl, SSL_CTX* context, SOCKET clientSocket, sockaddr address, std::function<
void()>&& cleanup);
33 Client(
const Client&) =
delete;
35 Client(Client&&)
noexcept =
delete;
37 Client& operator = (
const Client&) =
delete;
39 Client& operator = (Client&&)
noexcept =
delete;
44 web::BaseTCPServer& server,
50 threading::ThreadPool& threadPool
57 threading::ThreadPool threadPool;
58 std::vector<Client*> clients;
64 void clientConnection(
const std::string& ip, SOCKET clientSocket, sockaddr address, std::function<
void()>& cleanup)
override;
66 void onInvalidConnectionReceive()
override;
71 const json::JSONParser& configuration,
72 const std::vector<utility::JSONSettingsParser>& parsers,
73 const std::filesystem::path& assets,
74 const std::filesystem::path& pathToTemplates,
77 std::string_view port,
79 const std::vector<std::string>& pathToSources,