userver: userver/hostinfo/blocking/get_hostname.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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
11namespace hostinfo::blocking {
12
13/// @brief Returns host name.
14/// @warning This is a blocking function.
15std::string GetRealHostName();
16
17} // namespace hostinfo::blocking
18
19USERVER_NAMESPACE_END