diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-10-31 11:54:54 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-10-31 11:54:54 +0000 |
| commit | 20c8ce4128bb226d252159e135f8e0d3d0387bee (patch) | |
| tree | f35c632cef4a94f433cc1f8e2bddfe64ad7598ed /src/DHTPeerAnnounceStorage.h | |
| parent | 0dcb41da49c41f0f76bb538b93796a4d0dda2146 (diff) | |
2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
receive get_peers request for torrent which the client is now
downloading.
* src/BtSetup.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceEntry.h
* src/DHTPeerAnnounceStorage.cc
* src/DHTPeerAnnounceStorage.h
* src/RequestGroup.cc
* test/DHTPeerAnnounceEntryTest.cc
* test/DHTPeerAnnounceStorageTest.cc
Diffstat (limited to 'src/DHTPeerAnnounceStorage.h')
| -rw-r--r-- | src/DHTPeerAnnounceStorage.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/DHTPeerAnnounceStorage.h b/src/DHTPeerAnnounceStorage.h index 0d9ce87c..8b08b839 100644 --- a/src/DHTPeerAnnounceStorage.h +++ b/src/DHTPeerAnnounceStorage.h @@ -41,7 +41,6 @@ namespace aria2 { -class PeerStorage; class Peer; class DHTPeerAnnounceEntry; class DHTTaskQueue; @@ -67,14 +66,6 @@ public: void addPeerAnnounce(const unsigned char* infoHash, const std::string& ipaddr, uint16_t port); - // add peer announce as localhost downloading the content - void addPeerAnnounce(const unsigned char* infoHash, - const SharedHandle<PeerStorage>& peerStorage); - - // Call DHTPeerAnnounceEntry::clearLocal() for infoHash if found. - // If DHTPeerAnnounceEntry is empty, it is erased. - void removeLocalPeerAnnounce(const unsigned char* infoHash); - bool contains(const unsigned char* infoHash) const; void getPeers(std::deque<SharedHandle<Peer> >& peers, |
