Program Listing for File util.hpp
↰ Return to documentation for file (include/proxy/util.hpp)
/*
Copyright 2018-2025, Barcelona Supercomputing Center (BSC), Spain
Copyright 2015-2025, Johannes Gutenberg Universitaet Mainz, Germany
This software was partially supported by the
EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu).
This software was partially supported by the
ADA-FS project under the SPPEXA project funded by the DFG.
This software was partially supported by the
the European Union’s Horizon 2020 JTI-EuroHPC research and
innovation programme, by the project ADMIRE (Project ID: 956748,
admire-eurohpc.eu)
This project was partially promoted by the Ministry for Digital Transformation
and the Civil Service, within the framework of the Recovery,
Transformation and Resilience Plan - Funded by the European Union
-NextGenerationEU.
SPDX-License-Identifier: MIT
*/
#ifndef GEKKOFS_PROXY_UTIL_HPP
#define GEKKOFS_PROXY_UTIL_HPP
#include <string>
#include <vector>
namespace gkfs {
namespace util {
bool
is_proxy_already_running();
void
create_proxy_pid_file();
void
remove_proxy_pid_file();
bool
check_for_hosts_file(const std::string& hostfile);
std::vector<std::pair<std::string, std::string>>
read_hosts_file(const std::string& hostfile);
void
connect_to_hosts(const std::vector<std::pair<std::string, std::string>>& hosts);
} // namespace util
} // namespace gkfs
#endif // GEKKOFS_PROXY_UTIL_HPP