Add DNS TXT resolver (need one for Windows)

This commit is contained in:
Adam Ierymenko 2019-08-16 16:49:30 -07:00
parent 01e8fd0b07
commit 846f03504e
No known key found for this signature in database
GPG key ID: 1657198823E52A61
3 changed files with 71 additions and 20 deletions

View file

@ -199,14 +199,12 @@ public:
static int64_t getFileSize(const char *path);
/**
* Get IP (v4 and/or v6) addresses for a given host
*
* This is a blocking resolver.
*
* @param name Host name
* @return IP addresses in InetAddress sort order or empty vector if not found
* Get full DNS TXT results
*
* @param name DNS FQDN
* @return TXT record result(s) or empty on error or not found
*/
static std::vector<InetAddress> resolve(const char *name);
static std::vector<std::string> resolveTxt(const char *name);
/**
* @return Current time in milliseconds since epoch