userver: userver/hostinfo/blocking/get_hostname.hpp Source File
Loading...
Searching...
No Matches
get_hostname.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/hostinfo/blocking/get_hostname.hpp
4/// @brief @copybrief hostinfo::blocking::GetRealHostName
5/// @ingroup userver_universal
6
7#include <string>
8
9USERVER_NAMESPACE_BEGIN
10
11/// @brief Blocking host information queries (hostname, cgroups, etc.).
12namespace hostinfo::blocking {
13
14/// @brief Returns host name.
15/// @warning This is a blocking function.
16std::string GetRealHostName();
17
18} // namespace hostinfo::blocking
19
20USERVER_NAMESPACE_END