diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-13 15:17:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-13 15:17:08 +0000 |
| commit | 13021233680e3fb3650075e2a71c1f234acb1803 (patch) | |
| tree | e79c0138e86071486e18a0814df377b47050a0d0 /src/NameResolver.h | |
| parent | bfcc3006703924fade80cbf41b4d682481618690 (diff) | |
2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added the ability to load nodes from torrent file. These nodes are
added to the routing table when downloading that torrent.
* src/BtContext.h
* src/DefaultBtContext.{h, cc}
* src/DHTSetup.cc
* src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
hostname and port pair, and resolves all of them.
* src/NameResolver.{h, cc}: Added reset().
* src/RequestGroup.cc
* test/DefaultBtContextTest.cc
* test/MockBtContext.h
Removed assert() from DefaultBtContext and throw exception instead.
* src/DefaultBtContext.cc
Diffstat (limited to 'src/NameResolver.h')
| -rw-r--r-- | src/NameResolver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/NameResolver.h b/src/NameResolver.h index 5c4814df..85a3f26d 100644 --- a/src/NameResolver.h +++ b/src/NameResolver.h @@ -81,6 +81,7 @@ public: NameResolver(): status(STATUS_READY) { + // TODO evaluate return value ares_init(&channel); } @@ -117,6 +118,8 @@ public: } void setAddr(const std::string& addrString); + + void reset(); }; #else // ENABLE_ASYNC_DNS @@ -130,6 +133,8 @@ public: std::string getAddrString() const; void setAddr(const std::string& addrString); + + void reset(); }; #endif // ENABLE_ASYNC_DNS |
