Add DNS TXT resolver (need one for Windows)
This commit is contained in:
parent
01e8fd0b07
commit
846f03504e
3 changed files with 71 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue