Refactored DNS TXT resolver code

This commit is contained in:
SChernykh
2023-05-12 10:35:13 +02:00
parent 9aa748e628
commit 4fa344a0f7
3 changed files with 92 additions and 62 deletions

View File

@@ -296,6 +296,11 @@ struct Callback
};
};
bool get_dns_txt_records_base(const std::string& host, Callback<void, const char*, size_t>::Base&& callback);
template<typename T>
FORCEINLINE bool get_dns_txt_records(const std::string& host, T&& callback) { return get_dns_txt_records_base(host, Callback<void, const char*, size_t>::Derived<T>(std::move(callback))); }
} // namespace p2pool
void memory_tracking_start();