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