24 std::unique_ptr<BaseLoadBalancerHeuristic> heuristic;
29 ServerData(
const ServerData&) =
delete;
31 ServerData(ServerData&&)
noexcept =
default;
33 ServerData& operator = (
const ServerData&) =
delete;
35 ServerData& operator = (ServerData&&)
noexcept =
default;
37 ~ServerData() =
default;
41 std::vector<ServerData> allServers;
42 std::shared_ptr<ResourceExecutor> resources;
46 void clientConnection(
const std::string& ip, SOCKET clientSocket, sockaddr addr, std::function<
void()>& cleanup)
override;
51 std::string_view ip, std::string_view port, DWORD timeout,
bool serversHTTPS,
52 std::string_view heuristicName,
const std::vector<HMODULE>& loadSources,
53 const std::unordered_map<std::string, std::vector<int64_t>>& allServers,
54 const json::JSONParser& configuration,
const std::filesystem::path& assets, uint64_t cachingSize,
const std::filesystem::path& pathToTemplates