⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
userver
C++ Async Framework v2.0
Documentation
API Groups
Namespaces
Reference
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
y
Variables
k
n
r
u
w
Typedefs
c
d
h
m
n
o
p
s
t
u
v
Enumerations
a
b
c
d
f
h
i
l
o
p
r
s
t
u
v
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Symbols
File List
File Members
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
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_and_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,
21
const
char
* service_or_port);
22
23
}
// namespace net::blocking
24
25
USERVER_NAMESPACE_END
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
net
blocking
get_addr_info.hpp
Generated on Wed May 15 2024 22:20:00 for userver by
Doxygen
1.10.0