summaryrefslogtreecommitdiff
path: root/src/DHTEntryPointNameResolveCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-01 02:03:22 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-01 02:03:22 +0900
commitd575e3cc7770c0fcadc07d327749374267120345 (patch)
treedbf0b32066df361615353ec20f09cdd62edec0ab /src/DHTEntryPointNameResolveCommand.h
parent497c1dd8c9da850158d07e5bd4a51701f7cbdeaf (diff)
Rewrite async DNS portion without exception
Diffstat (limited to 'src/DHTEntryPointNameResolveCommand.h')
-rw-r--r--src/DHTEntryPointNameResolveCommand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DHTEntryPointNameResolveCommand.h b/src/DHTEntryPointNameResolveCommand.h
index 5886f981..ea30deff 100644
--- a/src/DHTEntryPointNameResolveCommand.h
+++ b/src/DHTEntryPointNameResolveCommand.h
@@ -80,7 +80,8 @@ private:
void addPingTask(const std::pair<std::string, uint16_t>& addr);
#ifdef ENABLE_ASYNC_DNS
- bool resolveHostname(const std::string& hostname);
+ int resolveHostname(std::vector<std::string>& res,
+ const std::string& hostname);
#endif // ENABLE_ASYNC_DNS
public: