summaryrefslogtreecommitdiff
path: root/src/TrackerWatcherCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 14:47:13 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 14:47:13 +0000
commitf114c890961ef9a0f7666b077b40d22f39b6cdd3 (patch)
treeba0ce6530430b19e4419adc606e5725ddb72bb99 /src/TrackerWatcherCommand.cc
parentd4dfb6c4a8cfb2262d19a291e53870bf98e2f82a (diff)
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variable private. Added accessor funcs. * src/ActivePeerConnectionCommand.cc * src/ActivePeerConnectionCommand.h * src/CheckIntegrityDispatcherCommand.cc * src/DHTEntryPointNameResolveCommand.h * src/DHTInteractionCommand.h * src/FileAllocationDispatcherCommand.cc * src/LpdReceiveMessageCommand.h * src/PeerChokeCommand.cc * src/PeerChokeCommand.h * src/PeerListenCommand.cc * src/PeerListenCommand.h * src/SeedCheckCommand.cc * src/SeedCheckCommand.h * src/SequentialDispatcherCommand.h * src/SleepCommand.cc * src/SleepCommand.h * src/TrackerWatcherCommand.cc * src/TrackerWatcherCommand.h
Diffstat (limited to 'src/TrackerWatcherCommand.cc')
-rw-r--r--src/TrackerWatcherCommand.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/TrackerWatcherCommand.cc b/src/TrackerWatcherCommand.cc
index 38829411..682d0af1 100644
--- a/src/TrackerWatcherCommand.cc
+++ b/src/TrackerWatcherCommand.cc
@@ -72,7 +72,7 @@ TrackerWatcherCommand::TrackerWatcherCommand
(cuid_t cuid, RequestGroup* requestGroup, DownloadEngine* e):
Command(cuid),
_requestGroup(requestGroup),
- e(e)
+ _e(e)
{
_requestGroup->increaseNumCommand();
}
@@ -91,7 +91,7 @@ bool TrackerWatcherCommand::execute() {
return true;
} else {
_trackerRequestGroup->setForceHaltRequested(true);
- e->addCommand(this);
+ _e->addCommand(this);
return false;
}
}
@@ -106,13 +106,13 @@ bool TrackerWatcherCommand::execute() {
if(!_trackerRequestGroup.isNull()) {
std::vector<Command*> commands;
try {
- _trackerRequestGroup->createInitialCommand(commands, e);
+ _trackerRequestGroup->createInitialCommand(commands, _e);
} catch(RecoverableException& ex) {
getLogger()->error(EX_EXCEPTION_CAUGHT, ex);
std::for_each(commands.begin(), commands.end(), Deleter());
commands.clear();
}
- e->addCommand(commands);
+ _e->addCommand(commands);
if(getLogger()->debug()) {
getLogger()->debug("added tracker request command");
}
@@ -140,7 +140,7 @@ bool TrackerWatcherCommand::execute() {
_btAnnounce->resetAnnounce();
}
}
- e->addCommand(this);
+ _e->addCommand(this);
return false;
}
@@ -173,13 +173,13 @@ void TrackerWatcherCommand::processTrackerResponse
if(peer.isNull()) {
break;
}
- peer->usedBy(e->newCUID());
+ peer->usedBy(_e->newCUID());
PeerInitiateConnectionCommand* command =
new PeerInitiateConnectionCommand
- (peer->usedBy(), _requestGroup, peer, e, _btRuntime);
+ (peer->usedBy(), _requestGroup, peer, _e, _btRuntime);
command->setPeerStorage(_peerStorage);
command->setPieceStorage(_pieceStorage);
- e->addCommand(command);
+ _e->addCommand(command);
if(getLogger()->debug()) {
getLogger()->debug("CUID#%s - Adding new command CUID#%s",
util::itos(getCuid()).c_str(),