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:
16  std::function<void(std::vector<std::string> const&)>;
17  using DnsTextCompleteCallback = std::function<void(void)>;
18  virtual void SendDnsTextRequest(std::string hostname,
20  DnsTextCompleteCallback) = 0;
21 
22  virtual ~DnsTxtLookup() noexcept;
23 };
24 } // namespace ipfs::ctx
25 
26 #endif // IPFS_CHROMIUM_DNS_TXT_LOOKUP_H
Definition: dns_txt_lookup.h:11
std::function< void(std::vector< std::string > const &)> DnsTextResultsCallback
Definition: dns_txt_lookup.h:16