⚠️ 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
config.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/clients/dns/config.hpp
4
/// @brief @copybrief clients::dns::ResolverConfig
5
6
#
include
<
chrono
>
7
#
include
<
string
>
8
#
include
<
vector
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
clients::dns {
13
14
/// Caching DNS resolver static configuration.
15
struct
ResolverConfig
{
16
/// hosts file path
17
std::string
file_path
{
"/etc/hosts"
};
18
19
/// hosts file update interval
20
std::chrono::milliseconds
file_update_interval
{
std
::
chrono
::
minutes
{5}};
21
22
/// Network query timeout
23
std::chrono::milliseconds
network_timeout
{
std
::
chrono
::
seconds
{1}};
24
25
/// Network query attempts
26
int
network_attempts
{1};
27
28
/// Custom name servers list (system-wide resolvers used if empty)
29
std
::
vector
<
std
::
string
>
network_custom_servers
;
30
31
/// Network cache ways
32
size_t
cache_ways
{16};
33
34
/// Network cache size per way
35
size_t
cache_size_per_way
{256};
36
37
/// Network cache upper reply TTL limit
38
std::chrono::milliseconds
cache_max_reply_ttl
{
std
::
chrono
::
minutes
{5}};
39
40
/// Network cache failure TTL
41
std::chrono::milliseconds
cache_failure_ttl
{
std
::
chrono
::
seconds
{5}};
42
};
43
44
}
// namespace clients::dns
45
46
USERVER_NAMESPACE_END
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
clients
dns
config.hpp
Generated on Wed May 15 2024 22:17:25 for userver by
Doxygen
1.10.0