From c58f736bb91f55fb68151c5c7d977911f993b1ab Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 21 Jul 2011 23:42:41 +0900 Subject: BtRegistry now holds BitTorrent TCP server port. Because BitTorrent TCP server port is global configuration, it is not preferable that per download resource BtRuntime holds it. We also refactored and eliminated ugly static variable in PeerListenCommand. If TCP port is necessary, we inject it to them directly. --- src/DHTTaskFactory.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/DHTTaskFactory.h') diff --git a/src/DHTTaskFactory.h b/src/DHTTaskFactory.h index 3e953b76..c59f705b 100644 --- a/src/DHTTaskFactory.h +++ b/src/DHTTaskFactory.h @@ -41,7 +41,6 @@ namespace aria2 { class DownloadContext; -class BtRuntime; class PeerStorage; class DHTTask; class DHTNode; @@ -62,7 +61,7 @@ public: virtual SharedHandle createPeerLookupTask(const SharedHandle& ctx, - const SharedHandle& btRuntime, + uint16_t tcpPort, const SharedHandle& peerStorage) = 0; virtual SharedHandle -- cgit