2006-02-17 13:35:04 +00:00
|
|
|
bin_PROGRAMS = aria2c
|
2007-10-11 16:58:24 +00:00
|
|
|
aria2c_SOURCES = main.cc\
|
|
|
|
option_processing.cc\
|
2008-11-13 13:40:40 +00:00
|
|
|
version_usage.cc\
|
|
|
|
download_helper.cc download_helper.h
|
2006-07-19 17:07:45 +00:00
|
|
|
SRCS = Socket.h\
|
2006-02-17 14:47:45 +00:00
|
|
|
SocketCore.cc SocketCore.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
BinaryStream.h\
|
2006-07-19 17:07:45 +00:00
|
|
|
Command.cc Command.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
AbstractCommand.cc AbstractCommand.h\
|
|
|
|
InitiateConnectionCommandFactory.cc InitiateConnectionCommandFactory.h\
|
|
|
|
DownloadCommand.cc DownloadCommand.h\
|
|
|
|
HttpInitiateConnectionCommand.cc HttpInitiateConnectionCommand.h\
|
|
|
|
HttpRequestCommand.cc HttpRequestCommand.h\
|
|
|
|
HttpResponseCommand.cc HttpResponseCommand.h\
|
|
|
|
HttpProxyRequestCommand.cc HttpProxyRequestCommand.h\
|
|
|
|
HttpProxyResponseCommand.cc HttpProxyResponseCommand.h\
|
|
|
|
HttpDownloadCommand.cc HttpDownloadCommand.h\
|
2006-02-21 12:27:17 +00:00
|
|
|
HttpHeader.cc HttpHeader.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
HttpConnection.cc HttpConnection.h\
|
2006-02-21 12:27:17 +00:00
|
|
|
FtpConnection.cc FtpConnection.h\
|
|
|
|
FtpInitiateConnectionCommand.cc FtpInitiateConnectionCommand.h\
|
|
|
|
FtpNegotiationCommand.cc FtpNegotiationCommand.h\
|
|
|
|
FtpDownloadCommand.cc FtpDownloadCommand.h\
|
|
|
|
FtpTunnelRequestCommand.cc FtpTunnelRequestCommand.h\
|
|
|
|
FtpTunnelResponseCommand.cc FtpTunnelResponseCommand.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
SleepCommand.cc SleepCommand.h\
|
|
|
|
DownloadEngine.cc DownloadEngine.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
Segment.h\
|
|
|
|
GrowSegment.cc GrowSegment.h\
|
|
|
|
PiecedSegment.cc PiecedSegment.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
SegmentMan.cc SegmentMan.h\
|
|
|
|
Util.cc Util.h\
|
|
|
|
Request.cc Request.h\
|
|
|
|
common.h\
|
|
|
|
message.h\
|
2007-11-21 16:14:40 +00:00
|
|
|
Exception.cc Exception.h\
|
2007-01-11 16:32:31 +00:00
|
|
|
FatalException.h\
|
|
|
|
RecoverableException.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
DlAbortEx.h\
|
|
|
|
DlRetryEx.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
DownloadFailureException.h\
|
2009-07-18 08:30:37 +00:00
|
|
|
Logger.cc Logger.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
SimpleLogger.cc SimpleLogger.h\
|
|
|
|
DiskWriter.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
DiskWriterFactory.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
AbstractDiskWriter.cc AbstractDiskWriter.h\
|
2007-01-08 00:13:25 +00:00
|
|
|
DefaultDiskWriter.cc DefaultDiskWriter.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
DefaultDiskWriterFactory.cc DefaultDiskWriterFactory.h\
|
2006-02-17 13:35:04 +00:00
|
|
|
File.cc File.h\
|
|
|
|
Option.cc Option.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
Base64.cc Base64.h\
|
2006-07-04 10:57:56 +00:00
|
|
|
LogFactory.cc LogFactory.h\
|
2006-08-07 16:28:41 +00:00
|
|
|
TimeA2.cc TimeA2.h\
|
2006-07-30 12:58:27 +00:00
|
|
|
SharedHandle.h\
|
2006-12-24 06:25:21 +00:00
|
|
|
HandleRegistry.h\
|
2006-08-07 16:05:00 +00:00
|
|
|
FeatureConfig.cc FeatureConfig.h\
|
|
|
|
DownloadEngineFactory.cc DownloadEngineFactory.h\
|
2006-09-19 14:52:59 +00:00
|
|
|
SpeedCalc.cc SpeedCalc.h\
|
2006-09-23 12:27:16 +00:00
|
|
|
PeerStat.h\
|
2006-12-24 06:25:21 +00:00
|
|
|
BitfieldMan.cc BitfieldMan.h\
|
|
|
|
BitfieldManFactory.cc BitfieldManFactory.h\
|
|
|
|
Randomizer.h\
|
2007-01-08 00:13:25 +00:00
|
|
|
SimpleRandomizer.cc SimpleRandomizer.h\
|
2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To handle Segment as SegmentHandle:
* src/AbstractCommand.cc (execute): Rewritten.
* src/SegmentMan.h: Segment -> SegmentHandle
Introducded HttpResponse class, HttpRequest class to improve
code
extensiveness and make it clear:
* src/HttpDownloadCommand.cc: transfer encoders are now managed
by
HttpResponse class.
* src/HttpRequest.h, src/HttpRequest.cc: New class.
* src/HttpResponse.h, src/HttpResponse.cc: New class.
* src/HttpConnection.cc: Contruction of http request were moved
to
HttpRequest class.
* src/HttpResponseCommand.h, src/HttpResponseCommand.cc:
Refactored.
* src/HttpRequestCommand.cc (executeInternal): Rewritten.
* src/HttpAuthConfig.h: New class.
* src/Range.h: New class.
To make FtpTunnel{Request, Response}Command and
HttpProxy{Request, Response}Command derived from
AbstractProxy{Request, Response}Command:
* src/FtpTunnelResponseCommand.h,
src/FtpTunnelResponseCommand.cc:
Derived from AbstractProxyRequestCommand class.
* src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
Derived from AbstractProxyResponseCommand class.
* src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
Derived from AbstractProxyRequestCommand class.
* src/HttpProxyResponseCommand.h,
src/HttpProxyResponseCommand.cc:
Derived from AbstractProxyResponseCommand class.
* src/AbstractProxyRequestCommand.h,
src/AbstractProxyRequestCommand.cc
: New class.
* src/AbstractProxyResponseCommand.h,
src/AbstractProxyResponseCommand.cc: New class.
To add netrc support:
* src/Netrc.h, src/Netrc.cc: New class.
* src/Util.h, src/Util.cc (split): New function.
* src/HttpHeader.cc (getRange): Fixed so that it inspects
"Content-Range" header instead of "Range" header.
* src/HttpHeader.h
(getStatus): Removed.
(setStatus): Removed.
* src/Segment.h
(getPositionToWrite): New function.
2007-03-15 15:07:18 +00:00
|
|
|
HttpResponse.cc HttpResponse.h\
|
|
|
|
HttpRequest.cc HttpRequest.h\
|
|
|
|
Range.h\
|
|
|
|
AbstractProxyRequestCommand.cc AbstractProxyRequestCommand.h\
|
|
|
|
AbstractProxyResponseCommand.cc AbstractProxyResponseCommand.h\
|
2007-03-21 10:19:23 +00:00
|
|
|
Netrc.cc Netrc.h\
|
|
|
|
AuthConfig.cc AuthConfig.h\
|
|
|
|
AuthResolver.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
AbstractAuthResolver.cc AbstractAuthResolver.h\
|
2007-03-21 10:19:23 +00:00
|
|
|
DefaultAuthResolver.cc DefaultAuthResolver.h\
|
|
|
|
NetrcAuthResolver.cc NetrcAuthResolver.h\
|
2007-10-30 12:48:01 +00:00
|
|
|
AuthConfigFactory.cc AuthConfigFactory.h\
|
2007-03-26 12:16:57 +00:00
|
|
|
OptionParser.cc OptionParser.h\
|
2007-03-28 15:08:22 +00:00
|
|
|
OptionHandlerFactory.cc OptionHandlerFactory.h\
|
2008-09-22 09:26:57 +00:00
|
|
|
OptionHandler.cc OptionHandler.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
OptionHandlerImpl.h\
|
|
|
|
NameMatchOptionHandler.h\
|
2007-05-20 13:51:52 +00:00
|
|
|
NameResolver.cc NameResolver.h\
|
|
|
|
RequestGroup.cc RequestGroup.h\
|
|
|
|
RequestGroupMan.cc RequestGroupMan.h\
|
2009-01-24 09:00:36 +00:00
|
|
|
FileAllocationMan.h\
|
2007-05-20 13:51:52 +00:00
|
|
|
FileAllocationCommand.cc FileAllocationCommand.h\
|
|
|
|
FillRequestGroupCommand.cc FillRequestGroupCommand.h\
|
|
|
|
FileAllocationDispatcherCommand.cc FileAllocationDispatcherCommand.h\
|
|
|
|
FileAllocationEntry.cc FileAllocationEntry.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
StreamFileAllocationEntry.cc StreamFileAllocationEntry.h\
|
2007-05-20 13:51:52 +00:00
|
|
|
MultiUrlRequestInfo.cc MultiUrlRequestInfo.h\
|
2007-07-05 15:45:03 +00:00
|
|
|
UriListParser.cc UriListParser.h\
|
2007-05-20 13:51:52 +00:00
|
|
|
SegmentManFactory.h\
|
|
|
|
AbstractSegmentManFactory.h\
|
2007-05-31 15:56:20 +00:00
|
|
|
DefaultSegmentManFactory.cc DefaultSegmentManFactory.h\
|
|
|
|
RealtimeCommand.cc RealtimeCommand.h\
|
2007-06-05 11:37:25 +00:00
|
|
|
ProgressAwareEntry.h\
|
2007-06-10 07:55:43 +00:00
|
|
|
RequestGroupEntry.cc RequestGroupEntry.h\
|
|
|
|
Cookie.cc Cookie.h\
|
|
|
|
CookieParser.cc CookieParser.h\
|
2007-06-30 09:52:39 +00:00
|
|
|
HttpHeaderProcessor.cc HttpHeaderProcessor.h\
|
2007-07-23 13:04:48 +00:00
|
|
|
FileEntry.cc FileEntry.h\
|
2007-08-28 11:51:20 +00:00
|
|
|
Platform.cc Platform.h\
|
|
|
|
PStringDatum.h\
|
|
|
|
PStringSegment.cc PStringSegment.h\
|
|
|
|
PStringNumLoop.h\
|
|
|
|
PStringSelect.h\
|
|
|
|
PStringVisitor.h\
|
|
|
|
PStringBuildVisitor.cc PStringBuildVisitor.h\
|
|
|
|
ParameterizedStringParser.cc ParameterizedStringParser.h\
|
|
|
|
FixedWidthNumberDecorator.h\
|
|
|
|
NumberDecorator.h\
|
2007-09-03 10:32:19 +00:00
|
|
|
AlphaNumberDecorator.h\
|
|
|
|
TimeBasedCommand.cc TimeBasedCommand.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
AutoSaveCommand.cc AutoSaveCommand.h\
|
2007-11-14 10:10:38 +00:00
|
|
|
PieceStorage.h\
|
|
|
|
DefaultPieceStorage.cc DefaultPieceStorage.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
UnknownLengthPieceStorage.cc UnknownLengthPieceStorage.h\
|
2009-05-06 07:49:22 +00:00
|
|
|
PieceStatMan.cc PieceStatMan.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
StatCalc.h\
|
|
|
|
ConsoleStatCalc.cc ConsoleStatCalc.h\
|
|
|
|
TransferStat.cc TransferStat.h\
|
|
|
|
Dependency.h\
|
|
|
|
BtProgressInfoFile.h\
|
|
|
|
DefaultBtProgressInfoFile.cc DefaultBtProgressInfoFile.h\
|
|
|
|
NullProgressInfoFile.h\
|
|
|
|
FileAllocationIterator.h\
|
|
|
|
SingleFileAllocationIterator.cc SingleFileAllocationIterator.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
RequestGroupCriteria.h\
|
2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Rewritten to add content-type support.
* src/DownloadHandler.{h, cc}
* src/BtPostDownloadHandler.{h, cc}
* test/BtPostDownloadHandlerTest.cc
* src/MetalinkPostDownloadHandler.{h, cc}
* test/MetalinkPostDownloadHandlerTest.cc
* src/PostDownloadHandler.{h, cc}
* src/DownloadHandlerConstants.{h, cc}
* src/RequestGroup.cc
* src/HttpResponseCommand.cc
* src/FtpNegotiationCommand.cc
* src/SingleFileDownloadContext.{h, cc}
* src/RequestGroup.h
* src/RequestGroupCriteria.h
* src/ContentTypeRequestGroupCriteria.h
Added 'mem' option value for --follow-metalink,
--follow-torrent.
If it is give, metalink/torrent file is not written to the disk,
but
just is kept in memory. Parsing is occurred on memory.
* src/MetalinkHelper.{h, cc}
* src/MetalinkProcessor.h
* src/Xml2MetalinkProcessor.{h, cc}
* test/Xml2MetalinkProcessorTest.cc
* src/DownloadHandlerFactory.{h, cc}
* test/DownloadHandlerFactoryTest.cc
* src/PreDownloadHandler.{h, cc}
* src/OptionHandlerFactory.cc
* src/DefaultBtContext.{h, cc}
* test/DefaultBtContextTest.cc
* src/version_usage.cc
* src/Metalink2RequestGroup.{h, cc}
* src/RequestGroup.{h, cc}
* src/a2functional.h
* test/a2functionalTest.cc
* src/MemoryBufferPreDownloadHandler.{h, cc}
* src/OptionHandlerImpl.h
* src/prefs.h
* src/Util.{h, cc}
* test/UtilTest.cc
Keep DownloadResult rather than RequestGroup after downloads to
reduce
memory usage.
* src/RequestGroupMan.{h, cc}
* src/DownloadEngine.cc
* src/BtDependency.{h, cc}: Changed the type of dependee from
WeakHandle to SharedHandle because WeakHandle could be null.
* src/RequestGroup.{h, cc}
* src/DownloadEngineFactory.cc
* src/DownloadResult.h
Set totalLength after download finished
* src/UnknownLengthPieceStorage.{h, cc}
Keep torrent file specified in metalink in memory.
* src/Metalink2RequestGroup.cc
* src/BtDependency.cc
* src/TrueRequestGroupCriteria.h
Fixed the bug: seekg is used where seekp should be used.
* src/ByteArrayDiskWriter.cc
* test/ByteArraydiskWriterTest.cc
2007-11-27 12:27:10 +00:00
|
|
|
ContentTypeRequestGroupCriteria.cc ContentTypeRequestGroupCriteria.h\
|
|
|
|
DownloadHandler.cc DownloadHandler.h\
|
|
|
|
DownloadHandlerConstants.cc DownloadHandlerConstants.h\
|
|
|
|
DownloadHandlerFactory.cc DownloadHandlerFactory.h\
|
|
|
|
MemoryBufferPreDownloadHandler.cc MemoryBufferPreDownloadHandler.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
HaveEraseCommand.cc HaveEraseCommand.h\
|
2007-11-14 10:10:38 +00:00
|
|
|
Piece.cc Piece.h\
|
2009-01-24 10:40:42 +00:00
|
|
|
CheckIntegrityMan.h\
|
2007-11-14 10:10:38 +00:00
|
|
|
CheckIntegrityEntry.cc CheckIntegrityEntry.h\
|
|
|
|
PieceHashCheckIntegrityEntry.cc PieceHashCheckIntegrityEntry.h\
|
|
|
|
StreamCheckIntegrityEntry.cc StreamCheckIntegrityEntry.h\
|
|
|
|
IteratableValidator.h\
|
|
|
|
DiskAdaptor.cc DiskAdaptor.h\
|
|
|
|
AbstractSingleDiskAdaptor.cc AbstractSingleDiskAdaptor.h\
|
|
|
|
DirectDiskAdaptor.cc DirectDiskAdaptor.h\
|
|
|
|
MultiDiskAdaptor.cc MultiDiskAdaptor.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
PeerSessionResource.cc PeerSessionResource.h\
|
2007-11-14 10:10:38 +00:00
|
|
|
BtRegistry.cc BtRegistry.h\
|
|
|
|
MultiFileAllocationIterator.cc MultiFileAllocationIterator.h\
|
2007-12-05 14:54:53 +00:00
|
|
|
PeerConnection.cc PeerConnection.h\
|
2007-12-12 13:53:33 +00:00
|
|
|
ByteArrayDiskWriter.cc ByteArrayDiskWriter.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
ByteArrayDiskWriterFactory.cc ByteArrayDiskWriterFactory.h\
|
2008-07-12 13:35:35 +00:00
|
|
|
DownloadContext.cc DownloadContext.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
TimedHaltCommand.cc TimedHaltCommand.h\
|
|
|
|
CUIDCounter.h\
|
|
|
|
DNSCache.h\
|
|
|
|
DownloadResult.h\
|
|
|
|
Sequence.h\
|
|
|
|
IntSequence.h\
|
|
|
|
PostDownloadHandler.h\
|
|
|
|
PreDownloadHandler.h\
|
|
|
|
SingletonHolder.h\
|
|
|
|
TrueRequestGroupCriteria.h\
|
|
|
|
a2algo.h\
|
|
|
|
a2functional.h\
|
|
|
|
a2io.h\
|
|
|
|
a2netcompat.h\
|
|
|
|
a2time.h\
|
|
|
|
array_fun.h\
|
|
|
|
help_tags.h\
|
2008-05-19 10:25:38 +00:00
|
|
|
prefs.cc prefs.h\
|
2008-04-13 13:30:12 +00:00
|
|
|
usage_text.h\
|
2008-04-22 10:29:48 +00:00
|
|
|
ProtocolDetector.cc ProtocolDetector.h\
|
2008-04-26 05:58:49 +00:00
|
|
|
NullStatCalc.h\
|
2008-05-06 15:24:07 +00:00
|
|
|
StringFormat.cc StringFormat.h\
|
2008-05-10 04:57:33 +00:00
|
|
|
HttpSkipResponseCommand.cc HttpSkipResponseCommand.h\
|
2008-05-09 14:44:28 +00:00
|
|
|
InitiateConnectionCommand.cc InitiateConnectionCommand.h\
|
2008-05-13 14:15:23 +00:00
|
|
|
FtpFinishDownloadCommand.cc FtpFinishDownloadCommand.h\
|
2008-05-17 12:51:54 +00:00
|
|
|
A2STR.cc A2STR.h\
|
2008-06-29 14:29:36 +00:00
|
|
|
RarestPieceSelector.cc RarestPieceSelector.h\
|
2008-07-01 11:38:25 +00:00
|
|
|
Decoder.h\
|
2008-07-12 13:35:35 +00:00
|
|
|
ChunkedDecoder.cc ChunkedDecoder.h\
|
2008-08-04 17:06:47 +00:00
|
|
|
Signature.cc Signature.h\
|
|
|
|
ServerStat.cc ServerStat.h\
|
|
|
|
ServerStatMan.cc ServerStatMan.h\
|
|
|
|
URISelector.h\
|
2009-01-12 12:27:34 +00:00
|
|
|
AdaptiveURISelector.cc AdaptiveURISelector.h\
|
2008-08-04 17:06:47 +00:00
|
|
|
InOrderURISelector.cc InOrderURISelector.h\
|
2009-03-13 12:44:58 +00:00
|
|
|
FeedbackURISelector.cc FeedbackURISelector.h\
|
2008-09-01 13:46:03 +00:00
|
|
|
NsCookieParser.cc NsCookieParser.h\
|
2008-09-13 16:32:47 +00:00
|
|
|
CookieStorage.cc CookieStorage.h\
|
2008-09-26 16:05:45 +00:00
|
|
|
SocketBuffer.cc SocketBuffer.h\
|
2008-12-09 14:43:11 +00:00
|
|
|
OptionHandlerException.cc OptionHandlerException.h\
|
2009-01-15 15:23:16 +00:00
|
|
|
URIResult.cc URIResult.h\
|
|
|
|
EventPoll.h\
|
2009-01-24 09:00:36 +00:00
|
|
|
SelectEventPoll.cc SelectEventPoll.h\
|
2009-01-24 09:49:37 +00:00
|
|
|
SequentialPicker.h\
|
2009-01-25 09:58:40 +00:00
|
|
|
SequentialDispatcherCommand.h\
|
2009-01-31 14:34:29 +00:00
|
|
|
PieceSelector.h\
|
2009-03-28 13:29:38 +00:00
|
|
|
LongestSequencePieceSelector.cc LongestSequencePieceSelector.h\
|
2009-04-27 11:45:22 +00:00
|
|
|
bitfield.h\
|
2009-06-23 15:35:45 +00:00
|
|
|
BDE.cc BDE.h\
|
2009-06-29 08:42:58 +00:00
|
|
|
CreateRequestCommand.cc CreateRequestCommand.h\
|
|
|
|
DownloadResultCode.h
|
2009-01-15 15:23:16 +00:00
|
|
|
|
2009-05-08 07:58:50 +00:00
|
|
|
if ENABLE_XML_RPC
|
|
|
|
SRCS += XmlRpcRequestParserController.cc XmlRpcRequestParserController.h\
|
|
|
|
XmlRpcRequestParserStateMachine.cc XmlRpcRequestParserStateMachine.h\
|
|
|
|
XmlRpcRequestParserState.h\
|
|
|
|
XmlRpcRequestParserStateImpl.cc XmlRpcRequestParserStateImpl.h\
|
|
|
|
XmlRpcElements.cc XmlRpcElements.h\
|
|
|
|
XmlRpcRequest.h\
|
|
|
|
XmlRpcRequestProcessor.h\
|
|
|
|
HttpServerBodyCommand.cc HttpServerBodyCommand.h\
|
|
|
|
XmlRpcMethod.cc XmlRpcMethod.h\
|
|
|
|
XmlRpcMethodImpl.cc XmlRpcMethodImpl.h\
|
2009-05-09 14:01:35 +00:00
|
|
|
XmlRpcMethodFactory.cc XmlRpcMethodFactory.h\
|
2009-05-14 12:59:52 +00:00
|
|
|
XmlRpcResponse.cc XmlRpcResponse.h\
|
2009-05-09 14:01:35 +00:00
|
|
|
HttpListenCommand.cc HttpListenCommand.h\
|
|
|
|
HttpServerCommand.cc HttpServerCommand.h\
|
|
|
|
HttpServerResponseCommand.cc HttpServerResponseCommand.h\
|
|
|
|
HttpServer.cc HttpServer.h
|
2009-05-08 07:58:50 +00:00
|
|
|
|
|
|
|
if HAVE_LIBXML2
|
|
|
|
SRCS += Xml2XmlRpcRequestProcessor.cc Xml2XmlRpcRequestProcessor.h
|
|
|
|
endif # HAVE_LIBXML2
|
|
|
|
|
|
|
|
if HAVE_LIBEXPAT
|
|
|
|
SRCS += ExpatXmlRpcRequestProcessor.cc ExpatXmlRpcRequestProcessor.h
|
|
|
|
endif # HAVE_LIBEXPAT
|
|
|
|
|
2009-05-15 08:21:55 +00:00
|
|
|
endif # ENABLE_XML_RPC
|
|
|
|
|
2009-03-25 05:43:07 +00:00
|
|
|
if HAVE_POSIX_FALLOCATE
|
|
|
|
SRCS += FallocFileAllocationIterator.cc FallocFileAllocationIterator.h
|
|
|
|
endif # HAVE_POSIX_FALLOCATE
|
|
|
|
|
2009-01-15 15:23:16 +00:00
|
|
|
if HAVE_EPOLL
|
|
|
|
SRCS += EpollEventPoll.cc EpollEventPoll.h
|
|
|
|
endif # HAVE_EPOLL
|
2008-06-29 14:29:36 +00:00
|
|
|
|
2008-11-08 10:48:02 +00:00
|
|
|
if ENABLE_SSL
|
|
|
|
SRCS += TLSContext.h
|
|
|
|
endif # ENABLE_SSL
|
|
|
|
|
|
|
|
if HAVE_LIBGNUTLS
|
|
|
|
SRCS += LibgnutlsTLSContext.cc LibgnutlsTLSContext.h
|
|
|
|
endif # HAVE_LIBGNUTLS
|
|
|
|
|
|
|
|
if HAVE_LIBSSL
|
|
|
|
SRCS += LibsslTLSContext.cc LibsslTLSContext.h
|
|
|
|
endif # HAVE_LIBSSL
|
|
|
|
|
2008-06-29 14:29:36 +00:00
|
|
|
if HAVE_LIBZ
|
|
|
|
SRCS += GZipDecoder.cc GZipDecoder.h
|
|
|
|
endif # HAVE_LIBZ
|
2008-05-08 11:18:36 +00:00
|
|
|
|
2008-08-17 10:44:12 +00:00
|
|
|
if HAVE_SQLITE3
|
|
|
|
SRCS += Sqlite3MozCookieParser.cc Sqlite3MozCookieParser.h
|
|
|
|
endif # HAVE_SQLITE3
|
|
|
|
|
2008-05-08 11:18:36 +00:00
|
|
|
if ENABLE_ASYNC_DNS
|
|
|
|
SRCS += AsyncNameResolver.cc AsyncNameResolver.h
|
|
|
|
endif # ENABLE_ASYNC_DNS
|
2006-07-04 10:57:56 +00:00
|
|
|
|
2007-07-04 16:04:57 +00:00
|
|
|
if ENABLE_MESSAGE_DIGEST
|
2007-10-11 16:58:24 +00:00
|
|
|
SRCS += IteratableChunkChecksumValidator.cc IteratableChunkChecksumValidator.h\
|
2007-07-04 16:04:57 +00:00
|
|
|
IteratableChecksumValidator.cc IteratableChecksumValidator.h\
|
2009-01-24 10:40:42 +00:00
|
|
|
CheckIntegrityDispatcherCommand.cc CheckIntegrityDispatcherCommand.h\
|
2007-07-04 16:04:57 +00:00
|
|
|
CheckIntegrityCommand.cc CheckIntegrityCommand.h\
|
2007-11-12 11:28:16 +00:00
|
|
|
ChecksumCheckIntegrityEntry.cc ChecksumCheckIntegrityEntry.h\
|
2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
MessageDigestHelper is introduced in order to simplify the use
of message digest. Removed repeated code.
The message digest algorithm is now specified by string, like
"sha1",
"md5".
* src/messageDigest.{h, cc}
* src/MessageDigestHelper.{h, cc}: New class.
* src/DefaultPieceStorage.cc
* src/DefaultBtContext.{h, cc}
(computeFastSet): New function.
(setInfoHash): Added for unit testing.
(setNumPieces): Added for unit testing.
* src/DefaultBtInteractive.cc
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Checksum.h
* src/message.h
* src/IteratableChecksumValidator.h
* src/ChunkChecksumValidator.{h, cc}: Use
IteratableChecksumValidator
inside it.
* src/SegmentMan.{h, cc}
(checkIntegrity): Removed.
* src/IteratableChunkChecksumValidator.{h, cc}
* src/Util.h
(sha1Sum): Removed.
(simpleMessageDigest): Removed.
(fileChecksum): Removed.
(computeFastSet): Removed.
* src/ShaVisitor.cc
* src/ChunkChecksum.h
* src/DownloadCommand.cc
Removed messageDigest virtual functions.
* src/MultiDiskAdaptor.{h, cc}
* src/DiskAdaptor.h
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* src/DiskAdaptorWriter.h
* src/AbstractSingleDiskAdaptor.{h, cc}
* src/AbstractDiskWriter.{h, cc}
Fixed comilation error when message digest is disabled.
* src/MetalinkEntry.{h, cc}
* src/MetalinkRequestInfo.cc
Removed srandom and random.
* src/SimpleRandomizer.h
Added size() virtual function to DiskAdaptor
* src/MultiDiskAdaptor.h
Fixed the bug that causes that files are not opened correctly in
multi-file torrent.
* src/TorrentRequestInfo.cc
* src/MultiDiskAdaptor.cc
Added SHA256 support
* src/messageDigest.cc
* src/Xml2MetalinkProcessor.cc
Show supported message digest algorithms
* src/main.cc
Updated contact info.
* src/main.cc
2007-08-08 14:40:11 +00:00
|
|
|
messageDigest.cc messageDigest.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
MessageDigestHelper.cc MessageDigestHelper.h\
|
|
|
|
Checksum.h\
|
|
|
|
ChunkChecksum.h
|
2007-07-04 16:04:57 +00:00
|
|
|
endif # ENABLE_MESSAGE_DIGEST
|
|
|
|
|
2006-07-04 10:57:56 +00:00
|
|
|
if ENABLE_BITTORRENT
|
2009-09-29 14:52:42 +00:00
|
|
|
SRCS += PeerAbstractCommand.cc PeerAbstractCommand.h\
|
2006-03-21 14:12:51 +00:00
|
|
|
PeerInitiateConnectionCommand.cc PeerInitiateConnectionCommand.h\
|
|
|
|
PeerInteractionCommand.cc PeerInteractionCommand.h\
|
|
|
|
Peer.cc Peer.h\
|
|
|
|
PeerListenCommand.cc PeerListenCommand.h\
|
|
|
|
RequestSlot.cc RequestSlot.h\
|
2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* configure.in: Added gnutls support. Added several CPP macros.
* m4/openssl.m4: Added.
* src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
readData(), peekData(). Added gnutls support.
* src/HttpDownloadCommand.cc: Removed SleepCommand.h
* src/TrackerWatcherCommand.{h,cc}: Added. This command creates
TrackerInitCommand periodicaly(TorrentMan::minInterval).
* src/TorrentMan.cc: Remove downloadedSize == 0 check from
save().
Instead, added a check for whether setup method has executed
successfully.
* src/TorrentMan.h: Added member vaiable setupComplete. Updated
DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to
300.
* src/Makefile.am: Updated.
* src/messageDigest.h: Added. This is a macro calculating SHA1
digest
using whether OpenSSL or gcrypt, depending on the result of
configure
script.
* src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by
using
messageDigest.h.
* src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
* src/PeerListenCommand.cc: Added log about port binded
successfully.
Fixed memory leak.
* src/main.cc: Added gnutls support. Replaced LIB_SSL with
ENABLE_BITTORRENT where they are not related to OpenSSL but
BitTorrent.
Removed instantiation of TrackerInitCommand. Instead,
TrackerWatcherCommand is instantiated and pushed to the command
queue.
* src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL
with
ENABLE_SSL.
* src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
* src/RequestSlotMan.cc:
(deleteCompletedRequestSlot)
If a piece is already acquired by another command, delete the
request
slots for the piece.
* src/TrackerUpdateCommand.cc:
(execute)
Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to
warn.
Added a check whether peer list is null.
Fixed the bug that causes sending completed event to the tracker
several times.
* src/TrackerInitCommand.cc:
(execute)
Fixed the bug that causes sending completed event to the tracker
several times.
* src/AbstractDiskWriter.{h,cc}: Removed direct dependency on
OpenSSL
by using messageDigest.h.
2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* PeerConnection.cc: Replaced log message "keep-alive" with
"keep alive".
* PeerInteractionCommand.{h,cc}: Close connection if peer is
choking
localhost long time.
* TorrentMan.cc: When adding new peer with duplicate = true, if
the
number of peer list is equal to or grater than MAX_PEER_LIST,
delete
at most 100 failure entry from the list. If with duplicate =
false,
MAX_PEER_LIST is not checked.
* PeerListenCommand.cc: Fixed the argument order of log message.
2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
Added warn().
* SimpleLogger.h: Moved enum LEVEL to Logger.h.
Implemented warn().
Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated
code.
2006-03-27 14:47:26 +00:00
|
|
|
TrackerWatcherCommand.cc TrackerWatcherCommand.h\
|
2006-05-09 15:54:14 +00:00
|
|
|
PeerChokeCommand.cc PeerChokeCommand.h\
|
2006-08-27 12:49:17 +00:00
|
|
|
SeedCriteria.h\
|
|
|
|
TimeSeedCriteria.h\
|
|
|
|
ShareRatioSeedCriteria.h\
|
|
|
|
UnionSeedCriteria.h\
|
2006-10-01 11:29:14 +00:00
|
|
|
SeedCheckCommand.cc SeedCheckCommand.h\
|
|
|
|
PeerListProcessor.h\
|
2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To divide TorrentMan into 6 classes: BtContext, BtRuntime,
PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
* src/TrackerWatcherComand.h: Made subclass of
BtContextAwareCommand.
* src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
* src/PeerAbstractCommand.h: Made subclass of
BtContextAwareCommand.
* src/PeerAbstractCommand.cc: Use btRuntime.
* src/BtContextAwareCommand.h: New class.
* src/FileEntry.h: Added accessor methods for following
variables.
(path): Made private.
(length): Made private.
(offset): Made private.
(extracted): Made private.
(requested): Made private.
(FileEntries): New definition.
(FileEntryHandle): New definition.
* src/FileEntry.cc: New file.
* src/HaveEraseCommand.h: Made subclass of
BtContextAwareCommand.
* src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
* src/PeerChokeCommand.h: Made subclass of
BtContextAwareCommand.
* src/PeerChokeCommand.cc: Use btRuntime, peerStorage,
pieceStorage.
* src/PieceStorage.h: New file.
* src/PeerInteractionCommand.h: Use btContext.
* src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
btRuntime.
* src/DefaultBtProgressInfoFile.h: New file.
* src/DefaultBtProgressInfoFile.cc: New file.
* src/File.cc
(Util.h): New include.
(mkdirs): New function.
* src/MultiDiskAdaptor.h
(mkdir): New function.
* src/PeerListProcessor.h
(Peers): Removed.
* src/PeerInteraction.h
(torrentMan): Removed.
(btContext): New variable.
(peerStorage): New variable.
(pieceStorage): New variable.
(btAnnounce): New variable.
(getTorrentMan): Removed.
(getBtContext): New function.
* src/PeerInteraction.cc: Use btContext, peerStorage,
pieceStorage,
btAnnounce.
* src/HandshakeMessage.h
(TorrentMan.h): Removed.
* src/HandshakeMessage.cc: Use btContext.
* src/DefaultBtAnnounce.cc: New file.
* src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
* src/DefaultPieceStorage.cc: New file.
* src/DefaultBtContext.h: New file.
* src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
Use the accessor methods of FileEntry.
* src/CookieBox.cc: Updated to use Util::slice().
* src/PieceMessage.cc: Use btContext, pieceStorage.
* src/common.h (SharedHandle.h): New include.
* src/PeerMessage.cc (PeerMessage): Added btContext,
peerStorage,
pieceStorage.
* src/TorrentAutoSaveCommand.h: Made subclass of
BtContextAwareCommand.
* src/DiskAdaptor.h
(topDir): Removed.
(getFileEntryFromPath): Changed the return type to
FileEntryHandle.
(setTopDir): Removed.
(getTopDir): Removed.
* src/BtContext.h: New file.
* src/DefaultPeerStorage.h: New file.
* src/PieceMessage.h (TorrentMan.h): Removed.
* src/RequestMessage.h (TorrentMan.h): Removed.
* src/TorrentDownloadEngine.h
(uploadLength): New variable.
(btContext): New variable.
(btRuntime): New variable.
(pieceStorage): New variable.
(peerStorage): New variable.
(btAnnounce): New variable.
(btProgressInfoFile): New variable.
(torrentMan): Removed.
(setBtContext): New function.
* src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime,
pieceStorage,
peerStorage, btAnnounce, btProgressInfoFile.
* src/Piece.h
(toString): New function.
(Pieces): New type definition.
* src/Peer.h
(active): New variable.
(Peer): Added active.
(activate): Set active to true.
(deactivate): Set active to false.
(isActive): New function.
(Peers): New type definition.
* src/DirectDiskAdaptor.cc
(getFilePath): Use the accessor methods of FileEntry.
* src/TorrentConsoleDownloadEngine.h
(afterEachIteration): New function.
* src/TorrentConsoleDownloadEngine.cc
(haltRequested): New variable.
(sendStatistics): Use pieceStorage, btRuntime.
(afterEachIteration): New function.
* src/AnnounceList: AnnounceTier->AnnounceTierHandle.
* src/Directry.h
(Directory): New function.
(DirectoryHandle): New type definition.
* src/BtProgressInfoFile.h: New file.
* src/RequestMessage.cc: Use pieceStorage.
* src/BtRuntime.h: New file.
* src/DefaultBtContext.cc: New file.
* src/BitfieldMan.h
(getCompletedLength): New function(private).
(getCompletedLength): New function.
(getFilteredCompletedLength): New function.
* src/BitfieldMan.h
(getCompletedLength): New function(private).
(getCompletedLength): New function.
(getFilteredCompletedLength): New function.
* src/MultiDiskAdaptor.cc
(mkdir): New function.
(openFile): Call mkdir().
(initAndOpenFile): Call mkdir().
* src/CancelMessage.h
(TorrentMan.h): Removed.
* src/RejectMessage.h
(TorrentMan.h): Removed.
* src/DownloadEngineFactory.cc
(DefaultPieceStorage.h): New include.
(DefaultPeerStorage.h): New include.
(DefaultBtAnnounce.h): New include.
(DefaultBtProgressInfoFile.h): New include.
(newTorrentConsoleEngine): Rewritten.
* src/ShareRatioSeedCriteria.h
(torrentMan): Removed.
(btContext): New variable.
(peerStorage): New variable.
(btRuntime): New variable.
(evaluate): Use btContext, btRuntime, peerStorage.
* src/AnnounceTier.h: New file.
* src/BtAnnounce.h: New file.
* src/BtRegistry.h: New file.
* src/PeerInitiateConnectionCommand.h: Added btContext.
* src/PeerConnection.h (TorrentMan.h): Removed.
* src/PeerMessageFactory.cc: Use btContext, pieceStorage.
* src/Util.h
(slice): Added an argument.
* src/Util.cc
(slice): Added an argument to control whether trim is made or
not.
* src/PeerStorage.h: New file.
* src/BtRegistry.cc: New file.
* src/TrackerUpdateCommand.h: Made subclass of
BtContextAwareCommand.
* src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
* src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
* src/PeerListenCommand.cc: Use btRuntime, peerStorage,
btContext.
* src/TorrentRequestInfo.h
(e): Removed.
(showFileEntry): Added an argument.
(getDownloadEngine): Return 0.
* src/DefaultBtAnnounce.h: New file.
* src/TorrentAutoSaveCommand.cc: Use btRuntime,
btProgressInfoFile.
* src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
* src/PeerMessageFactory.h
(btContext): New variable.
(pieceStorage): New variable.
* src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage,
btContext,
btAnnounce.
* src/DiskAdaptor.cc
(DiskAdaptor): Removed topDir.
(~DiskAdaptor): Removed topDir.
* src/PeerListenCommand.h: Made subclass of
BtContextAwareCommand.
* src/SeedCheckCommand.h: Made subclass of
BtContextAwareCommand.
* src/File.h (mkdirs): New function.
* src/DefaultPeerStorage): New file.
* src/DownloadEngineFactory.h
(newTorrentConsoleEngine): Use btContext.
* src/BtContextAwareCommand.cc: New file.
* src/PeerInitiateConnectionCommand.cc: Use btRuntime,
peerStorage.
* src/PeerMessage.h
(btContext): New variable.
(peerStorage): New variable.
(pieceStorage): New variable.
(setBtContext): New function.
* src/Directry.cc
(Directory): New function.
(createDir): Do nothing if name.size() == 0.
* src/AnnounceList.h
(AnnounceTier): Removed.
(AnnounceTiers): Removed.
* src/DefaultPieceStorage.h: New file.
* src/Piece.cc (toString): New function.
To fix typo:
* src/main.cc (showVersion): Fixed typo.
To fix compile warning:
* src/DelegatingPeerListProcessor.cc
(canHandle): Added "return false".
2006-11-05 15:04:17 +00:00
|
|
|
AnnounceTier.h\
|
|
|
|
AnnounceList.h AnnounceList.cc\
|
2008-03-01 04:42:53 +00:00
|
|
|
PeerStorage.h\
|
2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To divide TorrentMan into 6 classes: BtContext, BtRuntime,
PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
* src/TrackerWatcherComand.h: Made subclass of
BtContextAwareCommand.
* src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
* src/PeerAbstractCommand.h: Made subclass of
BtContextAwareCommand.
* src/PeerAbstractCommand.cc: Use btRuntime.
* src/BtContextAwareCommand.h: New class.
* src/FileEntry.h: Added accessor methods for following
variables.
(path): Made private.
(length): Made private.
(offset): Made private.
(extracted): Made private.
(requested): Made private.
(FileEntries): New definition.
(FileEntryHandle): New definition.
* src/FileEntry.cc: New file.
* src/HaveEraseCommand.h: Made subclass of
BtContextAwareCommand.
* src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
* src/PeerChokeCommand.h: Made subclass of
BtContextAwareCommand.
* src/PeerChokeCommand.cc: Use btRuntime, peerStorage,
pieceStorage.
* src/PieceStorage.h: New file.
* src/PeerInteractionCommand.h: Use btContext.
* src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
btRuntime.
* src/DefaultBtProgressInfoFile.h: New file.
* src/DefaultBtProgressInfoFile.cc: New file.
* src/File.cc
(Util.h): New include.
(mkdirs): New function.
* src/MultiDiskAdaptor.h
(mkdir): New function.
* src/PeerListProcessor.h
(Peers): Removed.
* src/PeerInteraction.h
(torrentMan): Removed.
(btContext): New variable.
(peerStorage): New variable.
(pieceStorage): New variable.
(btAnnounce): New variable.
(getTorrentMan): Removed.
(getBtContext): New function.
* src/PeerInteraction.cc: Use btContext, peerStorage,
pieceStorage,
btAnnounce.
* src/HandshakeMessage.h
(TorrentMan.h): Removed.
* src/HandshakeMessage.cc: Use btContext.
* src/DefaultBtAnnounce.cc: New file.
* src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
* src/DefaultPieceStorage.cc: New file.
* src/DefaultBtContext.h: New file.
* src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
Use the accessor methods of FileEntry.
* src/CookieBox.cc: Updated to use Util::slice().
* src/PieceMessage.cc: Use btContext, pieceStorage.
* src/common.h (SharedHandle.h): New include.
* src/PeerMessage.cc (PeerMessage): Added btContext,
peerStorage,
pieceStorage.
* src/TorrentAutoSaveCommand.h: Made subclass of
BtContextAwareCommand.
* src/DiskAdaptor.h
(topDir): Removed.
(getFileEntryFromPath): Changed the return type to
FileEntryHandle.
(setTopDir): Removed.
(getTopDir): Removed.
* src/BtContext.h: New file.
* src/DefaultPeerStorage.h: New file.
* src/PieceMessage.h (TorrentMan.h): Removed.
* src/RequestMessage.h (TorrentMan.h): Removed.
* src/TorrentDownloadEngine.h
(uploadLength): New variable.
(btContext): New variable.
(btRuntime): New variable.
(pieceStorage): New variable.
(peerStorage): New variable.
(btAnnounce): New variable.
(btProgressInfoFile): New variable.
(torrentMan): Removed.
(setBtContext): New function.
* src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime,
pieceStorage,
peerStorage, btAnnounce, btProgressInfoFile.
* src/Piece.h
(toString): New function.
(Pieces): New type definition.
* src/Peer.h
(active): New variable.
(Peer): Added active.
(activate): Set active to true.
(deactivate): Set active to false.
(isActive): New function.
(Peers): New type definition.
* src/DirectDiskAdaptor.cc
(getFilePath): Use the accessor methods of FileEntry.
* src/TorrentConsoleDownloadEngine.h
(afterEachIteration): New function.
* src/TorrentConsoleDownloadEngine.cc
(haltRequested): New variable.
(sendStatistics): Use pieceStorage, btRuntime.
(afterEachIteration): New function.
* src/AnnounceList: AnnounceTier->AnnounceTierHandle.
* src/Directry.h
(Directory): New function.
(DirectoryHandle): New type definition.
* src/BtProgressInfoFile.h: New file.
* src/RequestMessage.cc: Use pieceStorage.
* src/BtRuntime.h: New file.
* src/DefaultBtContext.cc: New file.
* src/BitfieldMan.h
(getCompletedLength): New function(private).
(getCompletedLength): New function.
(getFilteredCompletedLength): New function.
* src/BitfieldMan.h
(getCompletedLength): New function(private).
(getCompletedLength): New function.
(getFilteredCompletedLength): New function.
* src/MultiDiskAdaptor.cc
(mkdir): New function.
(openFile): Call mkdir().
(initAndOpenFile): Call mkdir().
* src/CancelMessage.h
(TorrentMan.h): Removed.
* src/RejectMessage.h
(TorrentMan.h): Removed.
* src/DownloadEngineFactory.cc
(DefaultPieceStorage.h): New include.
(DefaultPeerStorage.h): New include.
(DefaultBtAnnounce.h): New include.
(DefaultBtProgressInfoFile.h): New include.
(newTorrentConsoleEngine): Rewritten.
* src/ShareRatioSeedCriteria.h
(torrentMan): Removed.
(btContext): New variable.
(peerStorage): New variable.
(btRuntime): New variable.
(evaluate): Use btContext, btRuntime, peerStorage.
* src/AnnounceTier.h: New file.
* src/BtAnnounce.h: New file.
* src/BtRegistry.h: New file.
* src/PeerInitiateConnectionCommand.h: Added btContext.
* src/PeerConnection.h (TorrentMan.h): Removed.
* src/PeerMessageFactory.cc: Use btContext, pieceStorage.
* src/Util.h
(slice): Added an argument.
* src/Util.cc
(slice): Added an argument to control whether trim is made or
not.
* src/PeerStorage.h: New file.
* src/BtRegistry.cc: New file.
* src/TrackerUpdateCommand.h: Made subclass of
BtContextAwareCommand.
* src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
* src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
* src/PeerListenCommand.cc: Use btRuntime, peerStorage,
btContext.
* src/TorrentRequestInfo.h
(e): Removed.
(showFileEntry): Added an argument.
(getDownloadEngine): Return 0.
* src/DefaultBtAnnounce.h: New file.
* src/TorrentAutoSaveCommand.cc: Use btRuntime,
btProgressInfoFile.
* src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
* src/PeerMessageFactory.h
(btContext): New variable.
(pieceStorage): New variable.
* src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage,
btContext,
btAnnounce.
* src/DiskAdaptor.cc
(DiskAdaptor): Removed topDir.
(~DiskAdaptor): Removed topDir.
* src/PeerListenCommand.h: Made subclass of
BtContextAwareCommand.
* src/SeedCheckCommand.h: Made subclass of
BtContextAwareCommand.
* src/File.h (mkdirs): New function.
* src/DefaultPeerStorage): New file.
* src/DownloadEngineFactory.h
(newTorrentConsoleEngine): Use btContext.
* src/BtContextAwareCommand.cc: New file.
* src/PeerInitiateConnectionCommand.cc: Use btRuntime,
peerStorage.
* src/PeerMessage.h
(btContext): New variable.
(peerStorage): New variable.
(pieceStorage): New variable.
(setBtContext): New function.
* src/Directry.cc
(Directory): New function.
(createDir): Do nothing if name.size() == 0.
* src/AnnounceList.h
(AnnounceTier): Removed.
(AnnounceTiers): Removed.
* src/DefaultPieceStorage.h: New file.
* src/Piece.cc (toString): New function.
To fix typo:
* src/main.cc (showVersion): Fixed typo.
To fix compile warning:
* src/DelegatingPeerListProcessor.cc
(canHandle): Added "return false".
2006-11-05 15:04:17 +00:00
|
|
|
DefaultPeerStorage.cc DefaultPeerStorage.h\
|
2008-05-14 11:47:15 +00:00
|
|
|
BtAnnounce.cc BtAnnounce.h\
|
2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To divide TorrentMan into 6 classes: BtContext, BtRuntime,
PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
* src/TrackerWatcherComand.h: Made subclass of
BtContextAwareCommand.
* src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
* src/PeerAbstractCommand.h: Made subclass of
BtContextAwareCommand.
* src/PeerAbstractCommand.cc: Use btRuntime.
* src/BtContextAwareCommand.h: New class.
* src/FileEntry.h: Added accessor methods for following
variables.
(path): Made private.
(length): Made private.
(offset): Made private.
(extracted): Made private.
(requested): Made private.
(FileEntries): New definition.
(FileEntryHandle): New definition.
* src/FileEntry.cc: New file.
* src/HaveEraseCommand.h: Made subclass of
BtContextAwareCommand.
* src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
* src/PeerChokeCommand.h: Made subclass of
BtContextAwareCommand.
* src/PeerChokeCommand.cc: Use btRuntime, peerStorage,
pieceStorage.
* src/PieceStorage.h: New file.
* src/PeerInteractionCommand.h: Use btContext.
* src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
btRuntime.
* src/DefaultBtProgressInfoFile.h: New file.
* src/DefaultBtProgressInfoFile.cc: New file.
* src/File.cc
(Util.h): New include.
(mkdirs): New function.
* src/MultiDiskAdaptor.h
(mkdir): New function.
* src/PeerListProcessor.h
(Peers): Removed.
* src/PeerInteraction.h
(torrentMan): Removed.
(btContext): New variable.
(peerStorage): New variable.
(pieceStorage): New variable.
(btAnnounce): New variable.
(getTorrentMan): Removed.
(getBtContext): New function.
* src/PeerInteraction.cc: Use btContext, peerStorage,
pieceStorage,
btAnnounce.
* src/HandshakeMessage.h
(TorrentMan.h): Removed.
* src/HandshakeMessage.cc: Use btContext.
* src/DefaultBtAnnounce.cc: New file.
* src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
* src/DefaultPieceStorage.cc: New file.
* src/DefaultBtContext.h: New file.
* src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
Use the accessor methods of FileEntry.
* src/CookieBox.cc: Updated to use Util::slice().
* src/PieceMessage.cc: Use btContext, pieceStorage.
* src/common.h (SharedHandle.h): New include.
* src/PeerMessage.cc (PeerMessage): Added btContext,
peerStorage,
pieceStorage.
* src/TorrentAutoSaveCommand.h: Made subclass of
BtContextAwareCommand.
* src/DiskAdaptor.h
(topDir): Removed.
(getFileEntryFromPath): Changed the return type to
FileEntryHandle.
(setTopDir): Removed.
(getTopDir): Removed.
* src/BtContext.h: New file.
* src/DefaultPeerStorage.h: New file.
* src/PieceMessage.h (TorrentMan.h): Removed.
* src/RequestMessage.h (TorrentMan.h): Removed.
* src/TorrentDownloadEngine.h
(uploadLength): New variable.
(btContext): New variable.
(btRuntime): New variable.
(pieceStorage): New variable.
(peerStorage): New variable.
(btAnnounce): New variable.
(btProgressInfoFile): New variable.
(torrentMan): Removed.
(setBtContext): New function.
* src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime,
pieceStorage,
peerStorage, btAnnounce, btProgressInfoFile.
* src/Piece.h
(toString): New function.
(Pieces): New type definition.
* src/Peer.h
(active): New variable.
(Peer): Added active.
(activate): Set active to true.
(deactivate): Set active to false.
(isActive): New function.
(Peers): New type definition.
* src/DirectDiskAdaptor.cc
(getFilePath): Use the accessor methods of FileEntry.
* src/TorrentConsoleDownloadEngine.h
(afterEachIteration): New function.
* src/TorrentConsoleDownloadEngine.cc
(haltRequested): New variable.
(sendStatistics): Use pieceStorage, btRuntime.
(afterEachIteration): New function.
* src/AnnounceList: AnnounceTier->AnnounceTierHandle.
* src/Directry.h
(Directory): New function.
(DirectoryHandle): New type definition.
* src/BtProgressInfoFile.h: New file.
* src/RequestMessage.cc: Use pieceStorage.
* src/BtRuntime.h: New file.
* src/DefaultBtContext.cc: New file.
* src/BitfieldMan.h
(getCompletedLength): New function(private).
(getCompletedLength): New function.
(getFilteredCompletedLength): New function.
* src/BitfieldMan.h
(getCompletedLength): New function(private).
(getCompletedLength): New function.
(getFilteredCompletedLength): New function.
* src/MultiDiskAdaptor.cc
(mkdir): New function.
(openFile): Call mkdir().
(initAndOpenFile): Call mkdir().
* src/CancelMessage.h
(TorrentMan.h): Removed.
* src/RejectMessage.h
(TorrentMan.h): Removed.
* src/DownloadEngineFactory.cc
(DefaultPieceStorage.h): New include.
(DefaultPeerStorage.h): New include.
(DefaultBtAnnounce.h): New include.
(DefaultBtProgressInfoFile.h): New include.
(newTorrentConsoleEngine): Rewritten.
* src/ShareRatioSeedCriteria.h
(torrentMan): Removed.
(btContext): New variable.
(peerStorage): New variable.
(btRuntime): New variable.
(evaluate): Use btContext, btRuntime, peerStorage.
* src/AnnounceTier.h: New file.
* src/BtAnnounce.h: New file.
* src/BtRegistry.h: New file.
* src/PeerInitiateConnectionCommand.h: Added btContext.
* src/PeerConnection.h (TorrentMan.h): Removed.
* src/PeerMessageFactory.cc: Use btContext, pieceStorage.
* src/Util.h
(slice): Added an argument.
* src/Util.cc
(slice): Added an argument to control whether trim is made or
not.
* src/PeerStorage.h: New file.
* src/BtRegistry.cc: New file.
* src/TrackerUpdateCommand.h: Made subclass of
BtContextAwareCommand.
* src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
* src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
* src/PeerListenCommand.cc: Use btRuntime, peerStorage,
btContext.
* src/TorrentRequestInfo.h
(e): Removed.
(showFileEntry): Added an argument.
(getDownloadEngine): Return 0.
* src/DefaultBtAnnounce.h: New file.
* src/TorrentAutoSaveCommand.cc: Use btRuntime,
btProgressInfoFile.
* src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
* src/PeerMessageFactory.h
(btContext): New variable.
(pieceStorage): New variable.
* src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage,
btContext,
btAnnounce.
* src/DiskAdaptor.cc
(DiskAdaptor): Removed topDir.
(~DiskAdaptor): Removed topDir.
* src/PeerListenCommand.h: Made subclass of
BtContextAwareCommand.
* src/SeedCheckCommand.h: Made subclass of
BtContextAwareCommand.
* src/File.h (mkdirs): New function.
* src/DefaultPeerStorage): New file.
* src/DownloadEngineFactory.h
(newTorrentConsoleEngine): Use btContext.
* src/BtContextAwareCommand.cc: New file.
* src/PeerInitiateConnectionCommand.cc: Use btRuntime,
peerStorage.
* src/PeerMessage.h
(btContext): New variable.
(peerStorage): New variable.
(pieceStorage): New variable.
(setBtContext): New function.
* src/Directry.cc
(Directory): New function.
(createDir): Do nothing if name.size() == 0.
* src/AnnounceList.h
(AnnounceTier): Removed.
(AnnounceTiers): Removed.
* src/DefaultPieceStorage.h: New file.
* src/Piece.cc (toString): New function.
To fix typo:
* src/main.cc (showVersion): Fixed typo.
To fix compile warning:
* src/DelegatingPeerListProcessor.cc
(canHandle): Added "return false".
2006-11-05 15:04:17 +00:00
|
|
|
DefaultBtAnnounce.cc DefaultBtAnnounce.h\
|
|
|
|
BtRuntime.h\
|
2006-12-24 06:25:21 +00:00
|
|
|
BtMessage.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
AbstractBtMessage.cc AbstractBtMessage.h\
|
2006-12-24 06:25:21 +00:00
|
|
|
SimpleBtMessage.cc SimpleBtMessage.h\
|
|
|
|
BtAllowedFastMessage.cc BtAllowedFastMessage.h\
|
|
|
|
BtBitfieldMessage.cc BtBitfieldMessage.h\
|
|
|
|
BtCancelMessage.cc BtCancelMessage.h\
|
|
|
|
BtChokeMessage.cc BtChokeMessage.h\
|
|
|
|
BtHaveAllMessage.cc BtHaveAllMessage.h\
|
|
|
|
BtHaveMessage.cc BtHaveMessage.h\
|
|
|
|
BtHaveNoneMessage.cc BtHaveNoneMessage.h\
|
|
|
|
BtInterestedMessage.cc BtInterestedMessage.h\
|
|
|
|
BtKeepAliveMessage.cc BtKeepAliveMessage.h\
|
|
|
|
BtNotInterestedMessage.cc BtNotInterestedMessage.h\
|
|
|
|
BtPieceMessage.cc BtPieceMessage.h\
|
|
|
|
BtPortMessage.cc BtPortMessage.h\
|
|
|
|
BtRejectMessage.cc BtRejectMessage.h\
|
|
|
|
BtRequestMessage.cc BtRequestMessage.h\
|
|
|
|
BtSuggestPieceMessage.cc BtSuggestPieceMessage.h\
|
|
|
|
BtUnchokeMessage.cc BtUnchokeMessage.h\
|
|
|
|
BtHandshakeMessage.cc BtHandshakeMessage.h\
|
|
|
|
BtMessageValidator.h\
|
|
|
|
BtBitfieldMessageValidator.h\
|
|
|
|
BtPieceMessageValidator.h\
|
|
|
|
BtHandshakeMessageValidator.h\
|
|
|
|
BtMessageFactory.h\
|
|
|
|
DefaultBtMessageFactory.cc DefaultBtMessageFactory.h\
|
|
|
|
BtMessageDispatcher.h\
|
|
|
|
DefaultBtMessageDispatcher.cc DefaultBtMessageDispatcher.h\
|
|
|
|
BtMessageReceiver.h\
|
|
|
|
DefaultBtMessageReceiver.cc DefaultBtMessageReceiver.h\
|
|
|
|
BtRequestFactory.h\
|
|
|
|
DefaultBtRequestFactory.cc DefaultBtRequestFactory.h\
|
|
|
|
BtCancelSendingPieceEvent.h\
|
|
|
|
BtAbortOutstandingRequestEvent.h\
|
|
|
|
BtChokingEvent.h\
|
|
|
|
BtInteractive.h\
|
|
|
|
DefaultBtInteractive.cc DefaultBtInteractive.h\
|
2007-05-20 13:51:52 +00:00
|
|
|
ActivePeerConnectionCommand.cc ActivePeerConnectionCommand.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
BtDependency.cc BtDependency.h\
|
|
|
|
PeerReceiveHandshakeCommand.cc PeerReceiveHandshakeCommand.h\
|
|
|
|
BtSetup.cc BtSetup.h\
|
|
|
|
BtFileAllocationEntry.cc BtFileAllocationEntry.h\
|
|
|
|
BtPostDownloadHandler.cc BtPostDownloadHandler.h\
|
2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added uTorrent compatible Peer Exchange.
* src/BencodeVisitor.{h, cc}
* test/BencodeVisitorTest.cc
* src/BtConstants.h
* src/BtContext.h: Added 'private' flag.
* src/BtExtendedMessage.{h, cc}
* test/BtExtendedMessageTest.cc
* src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
reserved field.
* test/BtHandshakeMessageTest.cc
* src/BtMessageFactory.h
* src/BtRegistry.h
* src/BtRuntime.h: This class holds default extension message
IDs for
aria2. By default, aria2 uses ID 8 for ut_pex.
* src/DefaultBtContext.cc
* src/DefaultBtInteractive.{h, cc}: This class holds
_utPexEnabled.
When it is true, aria2 enables ut_pex. This value is set by
PeerInteractionCommand.
* src/DefaultBtMessageFactory.{h, cc}
* test/DefaultBtMessageFactoryTest.cc
* src/DefaultBtMessageReceiver.cc: Moved the code of fast
extension
handling to DefaultBtInteractive class.
* src/DefaultExtensionMessageFactory.{h, cc}
* test/DefaultExtensionMessageFactoryTest.cc
* src/DefaultPeerStorage.cc: Returns false if a peer is already
in
the container(peers and incomingPeers. The equality is
determined by
Peer::id).
* test/DefaultPeerStorageTest.cc
* src/ExtensionMessage.h
* test/MockExtensionMessage.h
* src/ExtensionMessageFactory.h
* test/MockExtensionMessageFactory.h
* src/HandshakeExtensionMessage.{h, cc}
* test/HandshakeExtensionMessageTest.cc
* src/MetaEntry.h
* src/Peer.{h, cc}
* src/PeerInteractionCommand.cc
* src/PeerReceiveHandshakeCommand.cc: Evaluate the return value
of
addIncomingPeer.
* src/PeerMessageUtil.{h, cc}
* src/PeerObject.h
* src/UTPexExtensionMessage.{h, cc}
* test/UTPexExtensionMessageTest.cc
* src/message.h
* src/prefs.h
Fixed the bug that returns incomplete data when it contains null
character. A convenient constructor was also added.
* src/Data.{h, cc}
Rewritten.
* src/CompactPeerListProcessor.cc
Fixed typos.
* src/message.h
* src/MetaFileUtil.cc
2007-12-22 03:57:55 +00:00
|
|
|
BtCheckIntegrityEntry.cc BtCheckIntegrityEntry.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
BtExtendedMessage.cc BtExtendedMessage.h\
|
|
|
|
ExtensionMessage.h\
|
|
|
|
ExtensionMessageFactory.h\
|
|
|
|
DefaultExtensionMessageFactory.cc DefaultExtensionMessageFactory.h\
|
|
|
|
HandshakeExtensionMessage.cc HandshakeExtensionMessage.h\
|
|
|
|
UTPexExtensionMessage.cc UTPexExtensionMessage.h\
|
|
|
|
DHTNode.cc DHTNode.h\
|
|
|
|
DHTUtil.cc DHTUtil.h\
|
|
|
|
DHTBucket.cc DHTBucket.h\
|
|
|
|
DHTRoutingTable.cc DHTRoutingTable.h\
|
|
|
|
DHTMessageEntry.cc DHTMessageEntry.h\
|
|
|
|
DHTMessageDispatcher.h\
|
|
|
|
DHTMessageDispatcherImpl.cc DHTMessageDispatcherImpl.h\
|
|
|
|
DHTMessageReceiver.cc DHTMessageReceiver.h\
|
|
|
|
DHTMessageTracker.cc DHTMessageTracker.h\
|
|
|
|
DHTMessageTrackerEntry.cc DHTMessageTrackerEntry.h\
|
|
|
|
DHTMessage.cc DHTMessage.h\
|
|
|
|
DHTConnection.h\
|
|
|
|
DHTConnectionImpl.cc DHTConnectionImpl.h\
|
|
|
|
DHTAbstractMessage.cc DHTAbstractMessage.h\
|
|
|
|
DHTQueryMessage.cc DHTQueryMessage.h\
|
|
|
|
DHTResponseMessage.cc DHTResponseMessage.h\
|
|
|
|
DHTPingMessage.cc DHTPingMessage.h\
|
|
|
|
DHTPingReplyMessage.cc DHTPingReplyMessage.h\
|
|
|
|
DHTFindNodeMessage.cc DHTFindNodeMessage.h\
|
|
|
|
DHTFindNodeReplyMessage.cc DHTFindNodeReplyMessage.h\
|
|
|
|
DHTGetPeersMessage.cc DHTGetPeersMessage.h\
|
|
|
|
DHTGetPeersReplyMessage.cc DHTGetPeersReplyMessage.h\
|
|
|
|
DHTAnnouncePeerMessage.cc DHTAnnouncePeerMessage.h\
|
|
|
|
DHTAnnouncePeerReplyMessage.cc DHTAnnouncePeerReplyMessage.h\
|
|
|
|
DHTUnknownMessage.cc DHTUnknownMessage.h\
|
|
|
|
DHTMessageFactory.h\
|
|
|
|
DHTMessageFactoryImpl.cc DHTMessageFactoryImpl.h\
|
|
|
|
DHTNodeLookupTask.cc DHTNodeLookupTask.h\
|
|
|
|
DHTNodeLookupEntry.cc DHTNodeLookupEntry.h\
|
|
|
|
BNode.cc BNode.h\
|
|
|
|
DHTMessageCallback.h\
|
|
|
|
DHTMessageCallbackImpl.cc DHTMessageCallbackImpl.h\
|
|
|
|
DHTMessageCallbackListener.h\
|
|
|
|
DHTAbstractTask.cc DHTAbstractTask.h\
|
|
|
|
DHTTask.h\
|
|
|
|
DHTPingTask.cc DHTPingTask.h\
|
|
|
|
DHTTaskQueue.h\
|
|
|
|
DHTTaskQueueImpl.cc DHTTaskQueueImpl.h\
|
|
|
|
DHTBucketRefreshTask.cc DHTBucketRefreshTask.h\
|
|
|
|
DHTAbstractNodeLookupTask.cc DHTAbstractNodeLookupTask.h\
|
|
|
|
DHTPeerLookupTask.cc DHTPeerLookupTask.h\
|
|
|
|
DHTSetup.cc DHTSetup.h\
|
|
|
|
DHTTaskFactory.h\
|
|
|
|
DHTTaskFactoryImpl.cc DHTTaskFactoryImpl.h\
|
|
|
|
DHTInteractionCommand.cc DHTInteractionCommand.h\
|
|
|
|
DHTPeerAnnounceEntry.cc DHTPeerAnnounceEntry.h\
|
|
|
|
DHTPeerAnnounceStorage.cc DHTPeerAnnounceStorage.h\
|
|
|
|
DHTTokenTracker.cc DHTTokenTracker.h\
|
|
|
|
DHTGetPeersCommand.cc DHTGetPeersCommand.h\
|
|
|
|
DHTTokenUpdateCommand.cc DHTTokenUpdateCommand.h\
|
|
|
|
DHTBucketRefreshCommand.cc DHTBucketRefreshCommand.h\
|
|
|
|
DHTPeerAnnounceCommand.cc DHTPeerAnnounceCommand.h\
|
|
|
|
DHTReplaceNodeTask.cc DHTReplaceNodeTask.h\
|
|
|
|
DHTEntryPointNameResolveCommand.cc DHTEntryPointNameResolveCommand.h\
|
|
|
|
DHTRoutingTableSerializer.cc DHTRoutingTableSerializer.h\
|
|
|
|
DHTRoutingTableDeserializer.cc DHTRoutingTableDeserializer.h\
|
|
|
|
DHTAutoSaveCommand.cc DHTAutoSaveCommand.h\
|
|
|
|
DHTRegistry.cc DHTRegistry.h\
|
|
|
|
DHTIDCloser.h\
|
|
|
|
DHTConstants.h\
|
|
|
|
XORCloser.h\
|
|
|
|
PeerAddrEntry.h\
|
|
|
|
InitiatorMSEHandshakeCommand.cc InitiatorMSEHandshakeCommand.h\
|
|
|
|
ReceiverMSEHandshakeCommand.cc ReceiverMSEHandshakeCommand.h\
|
|
|
|
MSEHandshake.cc MSEHandshake.h\
|
|
|
|
ARC4Decryptor.h\
|
|
|
|
ARC4Encryptor.h\
|
|
|
|
DHKeyExchange.h\
|
|
|
|
LibgcryptARC4Context.h\
|
|
|
|
LibgcryptARC4Decryptor.h\
|
|
|
|
LibgcryptARC4Encryptor.h\
|
|
|
|
LibgcryptDHKeyExchange.h\
|
|
|
|
LibsslARC4Context.h\
|
|
|
|
LibsslARC4Decryptor.h\
|
|
|
|
LibsslARC4Encryptor.h\
|
|
|
|
LibsslDHKeyExchange.h\
|
2008-04-13 01:25:36 +00:00
|
|
|
BtConstants.h\
|
|
|
|
BtLeecherStateChoke.cc BtLeecherStateChoke.h\
|
2009-03-12 15:54:43 +00:00
|
|
|
BtSeederStateChoke.cc BtSeederStateChoke.h\
|
|
|
|
RangeBtMessage.cc RangeBtMessage.h\
|
|
|
|
IndexBtMessage.cc IndexBtMessage.h\
|
|
|
|
ZeroBtMessage.cc ZeroBtMessage.h\
|
2009-03-13 14:40:10 +00:00
|
|
|
RangeBtMessageValidator.h\
|
2009-04-25 10:48:00 +00:00
|
|
|
IndexBtMessageValidator.h\
|
2009-06-07 05:36:44 +00:00
|
|
|
ExtensionMessageRegistry.h\
|
2009-06-28 10:37:15 +00:00
|
|
|
bencode.cc bencode.h\
|
2009-07-05 03:11:51 +00:00
|
|
|
bittorrent_helper.cc bittorrent_helper.h\
|
|
|
|
BtStopDownloadCommand.cc BtStopDownloadCommand.h
|
2006-07-04 10:57:56 +00:00
|
|
|
endif # ENABLE_BITTORRENT
|
|
|
|
|
|
|
|
if ENABLE_METALINK
|
|
|
|
SRCS += Metalinker.cc Metalinker.h\
|
2006-07-03 14:19:23 +00:00
|
|
|
MetalinkEntry.cc MetalinkEntry.h\
|
|
|
|
MetalinkResource.cc MetalinkResource.h\
|
|
|
|
MetalinkProcessor.h\
|
2008-03-01 04:42:53 +00:00
|
|
|
MetalinkParserController.cc MetalinkParserController.h\
|
|
|
|
MetalinkParserStateMachine.cc MetalinkParserStateMachine.h\
|
|
|
|
MetalinkParserState.h\
|
2009-10-03 12:52:16 +00:00
|
|
|
MetalinkParserStateImpl.cc MetalinkParserStateImpl.h\
|
2007-10-11 16:58:24 +00:00
|
|
|
Metalink2RequestGroup.cc Metalink2RequestGroup.h\
|
2007-11-03 12:03:53 +00:00
|
|
|
MetalinkPostDownloadHandler.cc MetalinkPostDownloadHandler.h\
|
|
|
|
MetalinkHelper.cc MetalinkHelper.h
|
2006-07-04 10:57:56 +00:00
|
|
|
endif # ENABLE_METALINK
|
|
|
|
|
2009-05-08 07:58:50 +00:00
|
|
|
if ENABLE_METALINK_LIBXML2
|
2008-03-01 04:42:53 +00:00
|
|
|
SRCS += XML2SAXMetalinkProcessor.cc XML2SAXMetalinkProcessor.h
|
2009-05-08 07:58:50 +00:00
|
|
|
endif # ENABLE_METALINK_LIBXML2
|
2007-12-14 00:46:32 +00:00
|
|
|
|
2009-05-08 07:58:50 +00:00
|
|
|
if ENABLE_METALINK_LIBEXPAT
|
2008-03-01 04:42:53 +00:00
|
|
|
SRCS += ExpatMetalinkProcessor.cc ExpatMetalinkProcessor.h
|
2009-05-08 07:58:50 +00:00
|
|
|
endif # ENABLE_METALINK_LIBEXPAT
|
2007-12-14 00:46:32 +00:00
|
|
|
|
2008-06-16 11:19:45 +00:00
|
|
|
if !HAVE_ASCTIME_R
|
|
|
|
SRCS += asctime_r.c asctime_r.h
|
|
|
|
endif # !HAVE_ASCTIME_R
|
|
|
|
|
2007-07-23 13:04:48 +00:00
|
|
|
if !HAVE_BASENAME
|
|
|
|
SRCS += libgen.c libgen.h
|
|
|
|
endif # !HAVE_BASENAME
|
|
|
|
|
|
|
|
if !HAVE_GETADDRINFO
|
|
|
|
SRCS += getaddrinfo.c getaddrinfo.h
|
|
|
|
endif # !HAVE_GETADDRINFO
|
|
|
|
|
2007-07-31 16:45:16 +00:00
|
|
|
if !HAVE_GAI_STRERROR
|
|
|
|
SRCS += gai_strerror.c gai_strerror.h
|
|
|
|
endif # !HAVE_GAI_STRERROR
|
|
|
|
|
|
|
|
if !HAVE_GETTIMEOFDAY
|
|
|
|
SRCS += gettimeofday.c gettimeofday.h
|
|
|
|
endif # !HAVE_GETTIMEOFDAY
|
|
|
|
|
2007-07-23 13:04:48 +00:00
|
|
|
if !HAVE_INET_ATON
|
|
|
|
SRCS += inet_aton.c inet_aton.h
|
|
|
|
endif # !HAVE_INET_ATON
|
|
|
|
|
|
|
|
if !HAVE_LOCALTIME_R
|
|
|
|
SRCS += localtime_r.c localtime_r.h
|
|
|
|
endif # !HAVE_LOCALTIME_R
|
|
|
|
|
|
|
|
if !HAVE_STRPTIME
|
|
|
|
SRCS += strptime.c strptime.h
|
|
|
|
endif # !HAVE_STRPTIME
|
|
|
|
|
2007-08-14 14:51:08 +00:00
|
|
|
if !HAVE_TIMEGM
|
|
|
|
SRCS += timegm.c timegm.h
|
|
|
|
endif # !HAVE_TIMEGM
|
|
|
|
|
2009-09-19 09:05:20 +00:00
|
|
|
if !HAVE_DAEMON
|
|
|
|
SRCS += daemon.cc daemon.h
|
|
|
|
endif # !HAVE_DAEMON
|
|
|
|
|
2006-02-17 13:35:04 +00:00
|
|
|
noinst_LIBRARIES = libaria2c.a
|
|
|
|
libaria2c_a_SOURCES = $(SRCS)
|
2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* configure.in: Added gnutls support. Added several CPP macros.
* m4/openssl.m4: Added.
* src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
readData(), peekData(). Added gnutls support.
* src/HttpDownloadCommand.cc: Removed SleepCommand.h
* src/TrackerWatcherCommand.{h,cc}: Added. This command creates
TrackerInitCommand periodicaly(TorrentMan::minInterval).
* src/TorrentMan.cc: Remove downloadedSize == 0 check from
save().
Instead, added a check for whether setup method has executed
successfully.
* src/TorrentMan.h: Added member vaiable setupComplete. Updated
DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to
300.
* src/Makefile.am: Updated.
* src/messageDigest.h: Added. This is a macro calculating SHA1
digest
using whether OpenSSL or gcrypt, depending on the result of
configure
script.
* src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by
using
messageDigest.h.
* src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
* src/PeerListenCommand.cc: Added log about port binded
successfully.
Fixed memory leak.
* src/main.cc: Added gnutls support. Replaced LIB_SSL with
ENABLE_BITTORRENT where they are not related to OpenSSL but
BitTorrent.
Removed instantiation of TrackerInitCommand. Instead,
TrackerWatcherCommand is instantiated and pushed to the command
queue.
* src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL
with
ENABLE_SSL.
* src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
* src/RequestSlotMan.cc:
(deleteCompletedRequestSlot)
If a piece is already acquired by another command, delete the
request
slots for the piece.
* src/TrackerUpdateCommand.cc:
(execute)
Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to
warn.
Added a check whether peer list is null.
Fixed the bug that causes sending completed event to the tracker
several times.
* src/TrackerInitCommand.cc:
(execute)
Fixed the bug that causes sending completed event to the tracker
several times.
* src/AbstractDiskWriter.{h,cc}: Removed direct dependency on
OpenSSL
by using messageDigest.h.
2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* PeerConnection.cc: Replaced log message "keep-alive" with
"keep alive".
* PeerInteractionCommand.{h,cc}: Close connection if peer is
choking
localhost long time.
* TorrentMan.cc: When adding new peer with duplicate = true, if
the
number of peer list is equal to or grater than MAX_PEER_LIST,
delete
at most 100 failure entry from the list. If with duplicate =
false,
MAX_PEER_LIST is not checked.
* PeerListenCommand.cc: Fixed the argument order of log message.
2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
Added warn().
* SimpleLogger.h: Moved enum LEVEL to Logger.h.
Implemented warn().
Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated
code.
2006-03-27 14:47:26 +00:00
|
|
|
aria2c_LDADD = libaria2c.a @LIBINTL@ @ALLOCA@ @LIBGNUTLS_LIBS@\
|
2008-11-18 11:20:53 +00:00
|
|
|
@LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@\
|
2008-08-17 10:44:12 +00:00
|
|
|
@LIBCARES_LIBS@ @WINSOCK_LIBS@ @LIBEXPAT_LIBS@ @LIBZ_LIBS@\
|
|
|
|
@SQLITE3_LIBS@ #-lprofiler
|
2007-10-11 16:58:24 +00:00
|
|
|
#aria2c_LDFLAGS = -pg
|
2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* configure.in: Added gnutls support. Added several CPP macros.
* m4/openssl.m4: Added.
* src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
readData(), peekData(). Added gnutls support.
* src/HttpDownloadCommand.cc: Removed SleepCommand.h
* src/TrackerWatcherCommand.{h,cc}: Added. This command creates
TrackerInitCommand periodicaly(TorrentMan::minInterval).
* src/TorrentMan.cc: Remove downloadedSize == 0 check from
save().
Instead, added a check for whether setup method has executed
successfully.
* src/TorrentMan.h: Added member vaiable setupComplete. Updated
DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to
300.
* src/Makefile.am: Updated.
* src/messageDigest.h: Added. This is a macro calculating SHA1
digest
using whether OpenSSL or gcrypt, depending on the result of
configure
script.
* src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by
using
messageDigest.h.
* src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
* src/PeerListenCommand.cc: Added log about port binded
successfully.
Fixed memory leak.
* src/main.cc: Added gnutls support. Replaced LIB_SSL with
ENABLE_BITTORRENT where they are not related to OpenSSL but
BitTorrent.
Removed instantiation of TrackerInitCommand. Instead,
TrackerWatcherCommand is instantiated and pushed to the command
queue.
* src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL
with
ENABLE_SSL.
* src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
* src/RequestSlotMan.cc:
(deleteCompletedRequestSlot)
If a piece is already acquired by another command, delete the
request
slots for the piece.
* src/TrackerUpdateCommand.cc:
(execute)
Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to
warn.
Added a check whether peer list is null.
Fixed the bug that causes sending completed event to the tracker
several times.
* src/TrackerInitCommand.cc:
(execute)
Fixed the bug that causes sending completed event to the tracker
several times.
* src/AbstractDiskWriter.{h,cc}: Removed direct dependency on
OpenSSL
by using messageDigest.h.
2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* PeerConnection.cc: Replaced log message "keep-alive" with
"keep alive".
* PeerInteractionCommand.{h,cc}: Close connection if peer is
choking
localhost long time.
* TorrentMan.cc: When adding new peer with duplicate = true, if
the
number of peer list is equal to or grater than MAX_PEER_LIST,
delete
at most 100 failure entry from the list. If with duplicate =
false,
MAX_PEER_LIST is not checked.
* PeerListenCommand.cc: Fixed the argument order of log message.
2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
Added warn().
* SimpleLogger.h: Moved enum LEVEL to Logger.h.
Implemented warn().
Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated
code.
2006-03-27 14:47:26 +00:00
|
|
|
AM_CPPFLAGS = -Wall\
|
|
|
|
-I../lib -I../intl -I$(top_srcdir)/intl\
|
2006-07-03 14:19:23 +00:00
|
|
|
@LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
|
2008-11-18 11:20:53 +00:00
|
|
|
@LIBCARES_CPPFLAGS@ @LIBEXPAT_CPPFLAGS@\
|
2009-05-23 06:20:29 +00:00
|
|
|
@LIBZ_CPPFLAGS@ @SQLITE3_CFLAGS@\
|
2009-10-10 08:29:21 +00:00
|
|
|
-DLOCALEDIR=\"@localedir@\" -DCA_BUNDLE=\"$(ca_bundle)\" @DEFS@ #-pg
|