MCPcopy Create free account
hub / github.com/aria2/aria2 / TrackerWatcherCommand

Method TrackerWatcherCommand

src/TrackerWatcherCommand.cc:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187TrackerWatcherCommand::TrackerWatcherCommand(cuid_t cuid,
188 RequestGroup* requestGroup,
189 DownloadEngine* e)
190 : Command(cuid),
191 requestGroup_(requestGroup),
192 e_(e),
193 udpTrackerClient_(e_->getBtRegistry()->getUDPTrackerClient())
194{
195 requestGroup_->increaseNumCommand();
196 if (udpTrackerClient_) {
197 udpTrackerClient_->increaseWatchers();
198 }
199}
200
201TrackerWatcherCommand::~TrackerWatcherCommand()
202{

Callers

nothing calls this directly

Calls 2

increaseNumCommandMethod · 0.80
increaseWatchersMethod · 0.80

Tested by

no test coverage detected