userver
C++ Async Framework
Toggle main menu visibility
Documentation
API Groups
Namespaces
Reference
Class List
Class Index
File List
Macros
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
get_addr_info.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/net/blocking/get_addr_info.hpp
4
/// @brief Blocking Functions for getaddrinfo
5
6
#
include
<
vector
>
7
8
#
include
<
userver
/
engine
/
io
/
sockaddr
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
net::blocking {
13
14
/// @brief Resolve host and port via blocking syscall.
15
/// @note It is recommended to use clients::dns::Resolver if possible
16
/// @param host - hostname (or IP) to resolve
17
/// @param service_or_port - if this argument is a service name, it is
18
/// translated to the corresponding port number, otherwise treated as port
19
/// number.
20
std::vector<engine::
io
::Sockaddr>
GetAddrInfo
(std::string_view host,
const
char
* service_or_port);
21
22
}
// namespace net::blocking
23
24
USERVER_NAMESPACE_END
userver
net
blocking
get_addr_info.hpp
Generated on Wed Apr 30 2025 15:53:28 for userver by
Doxygen
1.13.2