LeviLamina
Loading...
Searching...
No Matches
DnsCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { class IPAddress; }
8namespace webrtc { class flat_map; }
9// clang-format on
10
11namespace NetherNet {
12
13class DnsCache {
14public:
15 // member variables
16 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 DnsCache& operator=(DnsCache const&);
23 DnsCache(DnsCache const&);
24 DnsCache();
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCNAPI void
30 Add(::std::string_view hostname,
31 int family,
32 ::std::vector<::rtc::IPAddress> const& result,
33 ::std::chrono::steady_clock::time_point expiration);
34
35 MCNAPI bool TryGet(::std::string_view hostname, int family, ::std::vector<::rtc::IPAddress>* outResult);
36 // NOLINTEND
37};
38
39} // namespace NetherNet
Definition DnsCache.h:13
MCAPI bool TryGet(::std::string_view hostname, int family, ::std::vector<::rtc::IPAddress > *outResult)
MCAPI void Add(::std::string_view hostname, int family, ::std::vector<::rtc::IPAddress > const &result, ::std::chrono::steady_clock::time_point expiration)
Definition Alias.h:14