map<string, string> getHostIPs()No comment in the header yet.
API
CallOnDestructionclassDefaultRouteDetectionErrorstructexecute_resultstructInstanceLimiterstructNonCanonicalInputstructRateLimiterclassSemaphorestructA simple blocking semaphore.SharedSemaphorestructA simple copyable blocking semaphore.Versionstructmap<string, string> getHostIPs()No comment in the header yet.
string getInterfaceIP(const string& interface)No comment in the header yet.
string getDefaultRouteNetworkInterface()No comment in the header yet.
string getIpFromHostname(const string& hostname)No comment in the header yet.
execute_result execute(
const std::string& cmd,
const std::string& prefix = "",
const std::string& input = "",
int sig = -1
)Execute given command in forked process and capture stdout output and exit code.
cmdinprefixininputinexecute_result execute(
const std::string& cmd,
const std::string& prefix,
const std::string& input,
int sig,
std::chrono::milliseconds timeout
)Same as above, but kill the child process (SIGKILL) if it runs longer than timeout. A timeout of zero means no limit.
template<typename ... T>
auto ToString(T&&... t) -> std::stringconcatenates a variable number of args with the << operator via a stringstream
tauto ToStrVector(
const int argc,
char*const* argv,
const bool dropProgramName = true
) -> std::vector< std::string >convert command line arguments from main function to vector of strings
bool StrStartsWith(std::string const& str, std::string const& start)No comment in the header yet.
bool StrEndsWith(std::string const& str, std::string const& end)No comment in the header yet.
string Uuid()No comment in the header yet.
size_t UuidHash()No comment in the header yet.