mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 22:17:38 +03:00
2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Don't connect server before checking file integrity at startup, if filesize and output file path are known. * src/AbstractCommand.cc * src/StreamFileAllocationEntry.cc * src/Metalink2RequestGroup.cc * src/RequestGroup.{h, cc} * src/HttpResponseCommand.cc * src/FtpNegotiationCommand.cc Added DownloadFailureException. If it is thrown, RequestGroup should halt. * src/AbstractCommand.cc * src/DownloadFailureException.h * src/RequestGroup.cc Catch RecoverableException, instead of DlAbortEx. * src/RequestGroupMan.cc * src/FillRequestGroupCommand.cc * src/MetaFileUtil.cc * src/IteratableChunkChecksumValidator.cc Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup:: getGID()) * src/CheckIntegrityCommand.cc * src/message.h Print gid instead of idx. * src/RequestGroupMan.cc Removed exception throwers declaration. * src/DirectDiskAdaptor.{h, cc} * src/SocketCore.{h, cc} * src/MultiDiskAdaptor.{h, cc} * src/HttpConnection.{h, cc} * src/HttpResponse.{h, cc} * src/DiskAdaptor.{h, cc} * src/CopyDiskAdaptor.{h, cc} * src/MultiDiskAdaptor.{h, cc} * src/HttpHeaderProcessor.{h, cc} * src/AbstractSingleDiskAdaptor.{h, cc} * src/Util.{h, cc} * test/UtilTest.cc * src/DefaultDiskWriter.{h, cc} * src/FtpConnection.{h, cc} * src/AbstractDiskWriter.{h, cc} Removed duplicate code. * src/StreamCheckIntegrityEntry.cc Removed unnecessary include. * src/DiskWriter.h Included Exception.h * src/option_processing.cc Included 2 files and added doc * src/TrackerWatcherCommand.cc * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
This commit is contained in:
parent
76b9093d09
commit
b5ad009809
48 changed files with 451 additions and 386 deletions
|
@ -37,7 +37,6 @@
|
|||
|
||||
#include "DiskAdaptor.h"
|
||||
#include "DiskWriter.h"
|
||||
#include "DlAbortEx.h"
|
||||
|
||||
class AbstractSingleDiskAdaptor : public DiskAdaptor {
|
||||
protected:
|
||||
|
@ -48,27 +47,27 @@ public:
|
|||
|
||||
virtual ~AbstractSingleDiskAdaptor() {}
|
||||
|
||||
virtual void initAndOpenFile() throw(DlAbortEx*);
|
||||
virtual void initAndOpenFile();
|
||||
|
||||
virtual void openFile() throw(DlAbortEx*);
|
||||
virtual void openFile();
|
||||
|
||||
virtual void closeFile();
|
||||
|
||||
virtual void openExistingFile() throw(DlAbortEx*);
|
||||
virtual void openExistingFile();
|
||||
|
||||
virtual void writeData(const unsigned char* data, int32_t len,
|
||||
int64_t offset) throw(DlAbortEx*);
|
||||
int64_t offset);
|
||||
|
||||
virtual int32_t readData(unsigned char* data, int32_t len, int64_t offset) throw(DlAbortEx*);
|
||||
virtual int32_t readData(unsigned char* data, int32_t len, int64_t offset);
|
||||
|
||||
virtual bool fileExists();
|
||||
|
||||
virtual int64_t size() const throw(DlAbortEx*)
|
||||
virtual int64_t size() const
|
||||
{
|
||||
return diskWriter->size();
|
||||
}
|
||||
|
||||
virtual void truncate(int64_t length) throw(DlAbortEx*)
|
||||
virtual void truncate(int64_t length)
|
||||
{
|
||||
diskWriter->truncate(length);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue