From 453e2f10dddf3b158de39810c1130203fd8d67eb Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 3 Jun 2007 14:24:37 +0000 Subject: 2007-06-03 Tatsuhiro Tsujikawa RequestGroup::getNextCommand() was renamed to createNextCommand(). Added its overloaded method. * src/RequestGroup.h (_numConcurrentCommand): New variable. (setNumConcurrentCommand): New function. * src/RequestGroup.cc Abort download if same file is being downloaded concurrently. * src/RequestGroup.h, src/RequestGroupMan.cc (isSameFileBeingDownloaded): New function. * src/HttpResponseCommand.cc (executeInternal) * src/FtpNegotiateCommand.cc (recvSize) * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition. * main.cc: Added help message for -i option. --- src/FileAllocationCommand.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/FileAllocationCommand.cc') diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc index ae9750cf..c334b0c5 100644 --- a/src/FileAllocationCommand.cc +++ b/src/FileAllocationCommand.cc @@ -52,9 +52,7 @@ bool FileAllocationCommand::executeInternal() _e->commands.push_back(_fileAllocationEntry->getNextDownloadCommand()); _fileAllocationEntry->setNextDownloadCommand(0); } else { - int32_t numCommandsToGenerate = 15; - Commands commands = _requestGroup->getNextCommand(_e, numCommandsToGenerate); - + Commands commands = _requestGroup->createNextCommand(_e); Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand(cuid, _req, _requestGroup, _e); commands.push_front(command); -- cgit