aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/dnscachelib/dnscache.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/actors/dnscachelib/dnscache.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/actors/dnscachelib/dnscache.h')
-rw-r--r--library/cpp/actors/dnscachelib/dnscache.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/actors/dnscachelib/dnscache.h b/library/cpp/actors/dnscachelib/dnscache.h
index 3313a251a1..b7e199c3b5 100644
--- a/library/cpp/actors/dnscachelib/dnscache.h
+++ b/library/cpp/actors/dnscachelib/dnscache.h
@@ -21,7 +21,7 @@ public:
TDnsCache(bool allowIpv4 = true, bool allowIpv6 = true, time_t entry_lifetime = 1800, time_t neg_lifetime = 1, ui32 request_timeout = 500000);
~TDnsCache();
- TString GetHostByAddr(const NAddr::IRemoteAddr&);
+ TString GetHostByAddr(const NAddr::IRemoteAddr&);
// ip in network byte order
TIpHost Get(const TString& host);
@@ -43,7 +43,7 @@ protected:
private:
struct TGHBNContext {
TDnsCache* Owner;
- TString Hostname;
+ TString Hostname;
int Family;
};
@@ -56,23 +56,23 @@ private:
THost() noexcept {
}
- TVector<TIpHost> AddrsV4;
+ TVector<TIpHost> AddrsV4;
time_t ResolvedV4 = 0;
time_t NotFoundV4 = 0;
TAtomic InProgressV4 = 0;
- TVector<in6_addr> AddrsV6;
+ TVector<in6_addr> AddrsV6;
time_t ResolvedV6 = 0;
time_t NotFoundV6 = 0;
TAtomic InProgressV6 = 0;
- TString AddrsV4ToString() const;
- TString AddrsV6ToString() const;
+ TString AddrsV4ToString() const;
+ TString AddrsV6ToString() const;
bool IsStale(int family, const TDnsCache* ctx) const noexcept;
};
- typedef TMap<TString, THost> THostCache;
+ typedef TMap<TString, THost> THostCache;
struct TAddr {
TString Hostname;
@@ -96,7 +96,7 @@ private:
return false;
}
};
- typedef TMap<in6_addr, TAddr, TAddrCmp> TAddrCache;
+ typedef TMap<in6_addr, TAddr, TAddrCmp> TAddrCache;
const THost& Resolve(const TString&, int family, bool cacheOnly = false);