ipfs-chromium
dns_txt_lookup.h
1 #ifndef IPFS_CHROMIUM_DNS_TXT_LOOKUP_H
2 #define IPFS_CHROMIUM_DNS_TXT_LOOKUP_H
3 
4 #include <functional>
5 #include <string>
6 
7 namespace ipfs::ctx {
11 class DnsTxtLookup {
12  public:
13  using DnsTextResultsCallback =
14  std::function<void(std::vector<std::string> const&)>;
15  using DnsTextCompleteCallback = std::function<void(void)>;
16  virtual void SendDnsTextRequest(std::string hostname,
17  DnsTextResultsCallback,
18  DnsTextCompleteCallback) = 0;
19 
20  virtual ~DnsTxtLookup() noexcept;
21 };
22 } // namespace ipfs::ctx
23 
24 #endif // IPFS_CHROMIUM_DNS_TXT_LOOKUP_H
Definition: dns_txt_lookup.h:11