2010-12-02 13:38:36 +00:00
|
|
|
a2_test_outdir = test_outdir
|
2006-02-17 13:35:04 +00:00
|
|
|
TESTS = aria2c
|
|
|
|
check_PROGRAMS = $(TESTS)
|
|
|
|
aria2c_SOURCES = AllTest.cc\
|
2008-08-26 12:39:07 +00:00
|
|
|
TestUtil.cc TestUtil.h\
|
2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added DHT functionality, compatible with mainline.
DHT is disabled by default. To enable it, give --enable-dht to
aria2c.
You may need to specify entry point to DHT network using
--dht-entry-point. DHT uses UDP port to listen incoming message.
Use --dht-listen-port to specify port number. Make sure that
your
firewall configuration can pass through UDP traffic to the port.
The routing table is saved in $HOME/.aria2/dht.dat.
* src/DHT*
* src/BNode.{h, cc}
* src/PeerInteractionCommand.cc: enable DHT functionality for a
particular torrent.
* src/Data.cc: Rewritten ctor.
* src/OptionHandlerFactory.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/DefaultBtInteractive.cc: Send port message if dht is
enabled.
* src/RequestGroup.cc: Initialize DHT functionality. When
download
ends, remove BtContext from DHTPeerAnnounceStorage.
* src/BtPortMessage.{h, cc}: Rewritten.
* src/message.h
* src/OptionHandlerImpl.cc
* src/option_processing.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/Dictionary.{h, cc} (remove): New function.
* src/prefs.h
* src/DefaultBtMessageFactory.h
* src/BtHandshakeMessage.cc
* src/ActivePeerConnectionCommand.cc
* src/SocketCore.{h, cc}: Added datagram socket support.
* src/DefaultBtMessageFactory.cc
* src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
Create DHT commands.
* src/BtMessageFactory.h
* src/PeerMessageUtil.{h, cc}
2008-02-01 17:36:33 +00:00
|
|
|
SocketCoreTest.cc\
|
2008-01-11 13:33:00 +00:00
|
|
|
array_funTest.cc\
|
2007-12-04 11:12:56 +00:00
|
|
|
Base64Test.cc\
|
2009-11-23 15:59:31 +00:00
|
|
|
Base32Test.cc\
|
2007-11-07 12:36:33 +00:00
|
|
|
a2functionalTest.cc\
|
2007-11-05 15:13:55 +00:00
|
|
|
FileEntryTest.cc\
|
2007-10-23 16:29:37 +00:00
|
|
|
PieceTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
SegmentTest.cc\
|
|
|
|
GrowSegmentTest.cc\
|
|
|
|
SingleFileAllocationIteratorTest.cc\
|
2007-09-01 16:10:30 +00:00
|
|
|
DefaultBtProgressInfoFileTest.cc\
|
2007-08-28 15:46:49 +00:00
|
|
|
RequestGroupTest.cc\
|
2015-02-07 15:26:36 +00:00
|
|
|
UtilTest1.cc\
|
|
|
|
UtilTest2.cc\
|
2014-04-19 17:07:38 +00:00
|
|
|
UtilSecurityTest.cc\
|
2008-02-08 15:53:45 +00:00
|
|
|
UriListParserTest.cc\
|
2007-07-01 10:40:30 +00:00
|
|
|
HttpHeaderProcessorTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
RequestTest.cc\
|
|
|
|
HttpRequestTest.cc\
|
|
|
|
RequestGroupManTest.cc\
|
2007-10-30 12:48:01 +00:00
|
|
|
AuthConfigFactoryTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
NetrcAuthResolverTest.cc\
|
|
|
|
DefaultAuthResolverTest.cc\
|
|
|
|
OptionHandlerTest.cc\
|
|
|
|
SegmentManTest.cc\
|
|
|
|
BitfieldManTest.cc\
|
|
|
|
NetrcTest.cc\
|
|
|
|
SingletonHolderTest.cc\
|
|
|
|
HttpHeaderTest.cc\
|
|
|
|
HttpResponseTest.cc\
|
|
|
|
FileTest.cc\
|
|
|
|
OptionTest.cc\
|
|
|
|
DefaultDiskWriterTest.cc\
|
|
|
|
FeatureConfigTest.cc\
|
|
|
|
SpeedCalcTest.cc\
|
2007-11-14 10:10:38 +00:00
|
|
|
MultiDiskAdaptorTest.cc\
|
2008-03-01 04:42:53 +00:00
|
|
|
MultiFileAllocationIteratorTest.cc\
|
2008-04-13 13:37:44 +00:00
|
|
|
FixedNumberRandomizer.h\
|
2008-04-26 05:58:49 +00:00
|
|
|
ProtocolDetectorTest.cc\
|
2008-05-20 15:18:25 +00:00
|
|
|
ExceptionTest.cc\
|
2010-11-20 09:36:14 +00:00
|
|
|
FmtTest.cc\
|
2013-11-10 08:14:54 +00:00
|
|
|
DownloadHandlersTest.cc\
|
2008-08-04 17:06:47 +00:00
|
|
|
SignatureTest.cc\
|
|
|
|
ServerStatManTest.cc\
|
2009-03-13 12:44:58 +00:00
|
|
|
FeedbackURISelectorTest.cc\
|
2011-06-11 12:49:09 +00:00
|
|
|
InorderURISelectorTest.cc\
|
2008-08-17 12:58:56 +00:00
|
|
|
ServerStatTest.cc\
|
2008-08-26 12:39:07 +00:00
|
|
|
NsCookieParserTest.cc\
|
2008-08-27 16:04:36 +00:00
|
|
|
DirectDiskAdaptorTest.cc\
|
|
|
|
CookieTest.cc\
|
2008-09-07 04:19:11 +00:00
|
|
|
CookieStorageTest.cc\
|
2008-09-07 14:38:26 +00:00
|
|
|
TimeTest.cc\
|
2008-09-22 09:26:57 +00:00
|
|
|
FtpConnectionTest.cc\
|
2008-11-03 08:18:58 +00:00
|
|
|
OptionParserTest.cc\
|
2009-07-02 15:18:13 +00:00
|
|
|
DNSCacheTest.cc\
|
2008-12-09 14:43:11 +00:00
|
|
|
DownloadHelperTest.cc\
|
2009-01-31 14:34:29 +00:00
|
|
|
SequentialPickerTest.cc\
|
|
|
|
RarestPieceSelectorTest.cc\
|
2009-05-06 07:49:22 +00:00
|
|
|
PieceStatManTest.cc\
|
2011-06-11 12:49:09 +00:00
|
|
|
InorderPieceSelector.h\
|
2009-02-03 14:46:33 +00:00
|
|
|
LongestSequencePieceSelectorTest.cc\
|
2009-03-28 13:29:38 +00:00
|
|
|
a2algoTest.cc\
|
2009-04-27 11:45:22 +00:00
|
|
|
bitfieldTest.cc\
|
2010-04-08 12:54:14 +00:00
|
|
|
DownloadContextTest.cc\
|
2010-06-18 14:47:09 +00:00
|
|
|
SessionSerializerTest.cc\
|
2010-09-06 14:29:36 +00:00
|
|
|
ValueBaseTest.cc\
|
|
|
|
ChunkedDecodingStreamFilterTest.cc\
|
2010-09-11 14:41:52 +00:00
|
|
|
UriTest.cc\
|
2012-10-13 15:14:50 +00:00
|
|
|
UriSplitTest.cc\
|
2010-09-26 05:47:12 +00:00
|
|
|
MockSegment.h\
|
2011-03-09 14:07:27 +00:00
|
|
|
CookieHelperTest.cc\
|
2011-03-14 06:31:26 +00:00
|
|
|
JsonTest.cc\
|
2012-07-09 16:42:42 +00:00
|
|
|
ValueBaseJsonParserTest.cc\
|
2011-03-14 07:38:54 +00:00
|
|
|
RpcResponseTest.cc\
|
2011-08-06 12:17:36 +00:00
|
|
|
RpcMethodTest.cc\
|
2014-05-22 09:26:11 +00:00
|
|
|
HttpServerTest.cc\
|
2011-08-24 14:16:06 +00:00
|
|
|
BufferedFileTest.cc\
|
2011-10-29 12:51:58 +00:00
|
|
|
GeomStreamPieceSelectorTest.cc\
|
2011-11-06 07:37:02 +00:00
|
|
|
SegListTest.cc\
|
2011-11-10 15:37:32 +00:00
|
|
|
ParamedStringTest.cc\
|
2011-11-13 14:06:24 +00:00
|
|
|
RpcHelperTest.cc\
|
2012-03-05 03:45:05 +00:00
|
|
|
AbstractCommandTest.cc\
|
2012-11-27 13:04:59 +00:00
|
|
|
SinkStreamFilterTest.cc\
|
|
|
|
WrDiskCacheTest.cc\
|
2012-12-16 07:00:18 +00:00
|
|
|
WrDiskCacheEntryTest.cc\
|
2012-12-19 14:03:48 +00:00
|
|
|
GroupIdTest.cc\
|
|
|
|
IndexedListTest.cc
|
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
|
|
|
|
2009-05-08 07:58:50 +00:00
|
|
|
if ENABLE_XML_RPC
|
2011-11-10 15:37:32 +00:00
|
|
|
aria2c_SOURCES += XmlRpcRequestParserControllerTest.cc
|
2009-05-08 07:58:50 +00:00
|
|
|
endif # ENABLE_XML_RPC
|
|
|
|
|
2010-07-04 15:03:35 +00:00
|
|
|
if HAVE_SOME_FALLOCATE
|
2009-03-25 05:43:07 +00:00
|
|
|
aria2c_SOURCES += FallocFileAllocationIteratorTest.cc
|
2010-07-04 15:03:35 +00:00
|
|
|
endif # HAVE_SOME_FALLOCATE
|
2009-03-25 05:43:07 +00:00
|
|
|
|
2011-02-18 13:34:38 +00:00
|
|
|
if HAVE_ZLIB
|
2013-03-01 15:07:16 +00:00
|
|
|
aria2c_SOURCES += \
|
|
|
|
GZipDecoder.cc GZipDecoder.h\
|
|
|
|
GZipDecoderTest.cc GZipEncoderTest.cc\
|
2013-03-03 05:16:32 +00:00
|
|
|
GZipDecodingStreamFilterTest.cc\
|
|
|
|
GZipFileTest.cc
|
2011-02-18 13:34:38 +00:00
|
|
|
endif # HAVE_ZLIB
|
2008-06-29 14:29:36 +00:00
|
|
|
|
2008-08-17 10:44:12 +00:00
|
|
|
if HAVE_SQLITE3
|
2010-07-08 15:18:15 +00:00
|
|
|
aria2c_SOURCES += Sqlite3CookieParserTest.cc
|
2008-08-17 10:44:12 +00:00
|
|
|
endif # HAVE_SQLITE3
|
|
|
|
|
2007-10-11 16:58:24 +00:00
|
|
|
aria2c_SOURCES += MessageDigestHelperTest.cc\
|
2007-11-12 11:28:16 +00:00
|
|
|
IteratableChunkChecksumValidatorTest.cc\
|
2010-11-11 02:56:24 +00:00
|
|
|
IteratableChecksumValidatorTest.cc\
|
|
|
|
MessageDigestTest.cc
|
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
|
|
|
|
2007-07-23 14:09:46 +00:00
|
|
|
if ENABLE_BITTORRENT
|
|
|
|
aria2c_SOURCES += BtAllowedFastMessageTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
BtBitfieldMessageTest.cc\
|
|
|
|
BtCancelMessageTest.cc\
|
|
|
|
BtChokeMessageTest.cc\
|
2007-07-23 14:09:46 +00:00
|
|
|
BtHandshakeMessageTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
BtHaveAllMessageTest.cc\
|
|
|
|
BtHaveMessageTest.cc\
|
|
|
|
BtHaveNoneMessageTest.cc\
|
|
|
|
BtInterestedMessageTest.cc\
|
|
|
|
BtKeepAliveMessageTest.cc\
|
|
|
|
BtNotInterestedMessageTest.cc\
|
|
|
|
BtPieceMessageTest.cc\
|
|
|
|
BtPortMessageTest.cc\
|
|
|
|
BtRejectMessageTest.cc\
|
|
|
|
BtRequestMessageTest.cc\
|
|
|
|
BtSuggestPieceMessageTest.cc\
|
|
|
|
BtUnchokeMessageTest.cc\
|
2007-11-14 10:10:38 +00:00
|
|
|
DefaultPieceStorageTest.cc\
|
2007-07-23 14:09:46 +00:00
|
|
|
DefaultBtAnnounceTest.cc\
|
|
|
|
DefaultBtMessageDispatcherTest.cc\
|
|
|
|
DefaultBtRequestFactoryTest.cc\
|
|
|
|
MockBtMessage.h\
|
2007-06-10 12:02:09 +00:00
|
|
|
MockBtMessageDispatcher.h\
|
|
|
|
MockBtMessageFactory.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
|
|
|
AnnounceListTest.cc\
|
|
|
|
DefaultPeerStorageTest.cc\
|
|
|
|
MockPeerStorage.h\
|
|
|
|
ByteArrayDiskWriterTest.cc\
|
|
|
|
PeerTest.cc\
|
2008-02-09 17:14:40 +00:00
|
|
|
PeerSessionResourceTest.cc\
|
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
|
|
|
ShareRatioSeedCriteriaTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
BtRegistryTest.cc\
|
|
|
|
BtDependencyTest.cc\
|
|
|
|
BtPostDownloadHandlerTest.cc\
|
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
|
|
|
TimeSeedCriteriaTest.cc\
|
|
|
|
BtExtendedMessageTest.cc\
|
|
|
|
HandshakeExtensionMessageTest.cc\
|
|
|
|
UTPexExtensionMessageTest.cc\
|
2009-11-20 15:42:25 +00:00
|
|
|
UTMetadataRequestExtensionMessageTest.cc\
|
|
|
|
UTMetadataDataExtensionMessageTest.cc\
|
|
|
|
UTMetadataRejectExtensionMessageTest.cc\
|
2009-11-23 13:17:48 +00:00
|
|
|
UTMetadataRequestTrackerTest.cc\
|
|
|
|
UTMetadataRequestFactoryTest.cc\
|
|
|
|
UTMetadataPostDownloadHandlerTest.cc\
|
2009-11-24 14:47:42 +00:00
|
|
|
MagnetTest.cc\
|
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
|
|
|
DefaultBtMessageFactoryTest.cc\
|
2008-02-08 15:53:45 +00:00
|
|
|
DefaultExtensionMessageFactoryTest.cc\
|
2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added DHT functionality, compatible with mainline.
DHT is disabled by default. To enable it, give --enable-dht to
aria2c.
You may need to specify entry point to DHT network using
--dht-entry-point. DHT uses UDP port to listen incoming message.
Use --dht-listen-port to specify port number. Make sure that
your
firewall configuration can pass through UDP traffic to the port.
The routing table is saved in $HOME/.aria2/dht.dat.
* src/DHT*
* src/BNode.{h, cc}
* src/PeerInteractionCommand.cc: enable DHT functionality for a
particular torrent.
* src/Data.cc: Rewritten ctor.
* src/OptionHandlerFactory.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/DefaultBtInteractive.cc: Send port message if dht is
enabled.
* src/RequestGroup.cc: Initialize DHT functionality. When
download
ends, remove BtContext from DHTPeerAnnounceStorage.
* src/BtPortMessage.{h, cc}: Rewritten.
* src/message.h
* src/OptionHandlerImpl.cc
* src/option_processing.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/Dictionary.{h, cc} (remove): New function.
* src/prefs.h
* src/DefaultBtMessageFactory.h
* src/BtHandshakeMessage.cc
* src/ActivePeerConnectionCommand.cc
* src/SocketCore.{h, cc}: Added datagram socket support.
* src/DefaultBtMessageFactory.cc
* src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
Create DHT commands.
* src/BtMessageFactory.h
* src/PeerMessageUtil.{h, cc}
2008-02-01 17:36:33 +00:00
|
|
|
DHTNodeTest.cc\
|
|
|
|
DHTBucketTest.cc\
|
|
|
|
DHTRoutingTableTest.cc\
|
|
|
|
DHTMessageTrackerEntryTest.cc\
|
|
|
|
DHTMessageTrackerTest.cc\
|
|
|
|
DHTConnectionImplTest.cc\
|
|
|
|
DHTPingMessageTest.cc\
|
|
|
|
DHTPingReplyMessageTest.cc\
|
|
|
|
DHTFindNodeMessageTest.cc\
|
|
|
|
DHTFindNodeReplyMessageTest.cc\
|
|
|
|
DHTGetPeersMessageTest.cc\
|
|
|
|
DHTGetPeersReplyMessageTest.cc\
|
|
|
|
DHTAnnouncePeerMessageTest.cc\
|
|
|
|
DHTAnnouncePeerReplyMessageTest.cc\
|
2008-02-05 14:15:50 +00:00
|
|
|
DHTUnknownMessageTest.cc\
|
2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added DHT functionality, compatible with mainline.
DHT is disabled by default. To enable it, give --enable-dht to
aria2c.
You may need to specify entry point to DHT network using
--dht-entry-point. DHT uses UDP port to listen incoming message.
Use --dht-listen-port to specify port number. Make sure that
your
firewall configuration can pass through UDP traffic to the port.
The routing table is saved in $HOME/.aria2/dht.dat.
* src/DHT*
* src/BNode.{h, cc}
* src/PeerInteractionCommand.cc: enable DHT functionality for a
particular torrent.
* src/Data.cc: Rewritten ctor.
* src/OptionHandlerFactory.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/DefaultBtInteractive.cc: Send port message if dht is
enabled.
* src/RequestGroup.cc: Initialize DHT functionality. When
download
ends, remove BtContext from DHTPeerAnnounceStorage.
* src/BtPortMessage.{h, cc}: Rewritten.
* src/message.h
* src/OptionHandlerImpl.cc
* src/option_processing.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/Dictionary.{h, cc} (remove): New function.
* src/prefs.h
* src/DefaultBtMessageFactory.h
* src/BtHandshakeMessage.cc
* src/ActivePeerConnectionCommand.cc
* src/SocketCore.{h, cc}: Added datagram socket support.
* src/DefaultBtMessageFactory.cc
* src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
Create DHT commands.
* src/BtMessageFactory.h
* src/PeerMessageUtil.{h, cc}
2008-02-01 17:36:33 +00:00
|
|
|
DHTMessageFactoryImplTest.cc\
|
2010-11-17 15:42:23 +00:00
|
|
|
DHTBucketTreeTest.cc\
|
2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added DHT functionality, compatible with mainline.
DHT is disabled by default. To enable it, give --enable-dht to
aria2c.
You may need to specify entry point to DHT network using
--dht-entry-point. DHT uses UDP port to listen incoming message.
Use --dht-listen-port to specify port number. Make sure that
your
firewall configuration can pass through UDP traffic to the port.
The routing table is saved in $HOME/.aria2/dht.dat.
* src/DHT*
* src/BNode.{h, cc}
* src/PeerInteractionCommand.cc: enable DHT functionality for a
particular torrent.
* src/Data.cc: Rewritten ctor.
* src/OptionHandlerFactory.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/DefaultBtInteractive.cc: Send port message if dht is
enabled.
* src/RequestGroup.cc: Initialize DHT functionality. When
download
ends, remove BtContext from DHTPeerAnnounceStorage.
* src/BtPortMessage.{h, cc}: Rewritten.
* src/message.h
* src/OptionHandlerImpl.cc
* src/option_processing.cc: Added --enable-dht,
--dht-listen-port,
--dht-entry-point.
* src/Dictionary.{h, cc} (remove): New function.
* src/prefs.h
* src/DefaultBtMessageFactory.h
* src/BtHandshakeMessage.cc
* src/ActivePeerConnectionCommand.cc
* src/SocketCore.{h, cc}: Added datagram socket support.
* src/DefaultBtMessageFactory.cc
* src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
Create DHT commands.
* src/BtMessageFactory.h
* src/PeerMessageUtil.{h, cc}
2008-02-01 17:36:33 +00:00
|
|
|
DHTPeerAnnounceEntryTest.cc\
|
|
|
|
DHTPeerAnnounceStorageTest.cc\
|
|
|
|
DHTTokenTrackerTest.cc\
|
|
|
|
XORCloserTest.cc\
|
|
|
|
DHTIDCloserTest.cc\
|
|
|
|
DHTRoutingTableSerializerTest.cc\
|
2008-02-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added Message Stream Encryption(MSE) support.
Currently, aria2 accepts incoming connections with Obfuscation Header
and legacy BitTorrent Header and establishes connections with
Obfuscation Header first and if failed then retry with legacy
BitTorrent header. If plain text and ARC4 is provided, aria2 always
choose ARC4. The new option to change the default behavior is planned.
For tracker extension, "supportcrypto=1" is added statically.
* src/PeerInitiateConnectionCommand.{h, cc}
* src/PeerConnection.{h, cc}
* src/HandleRegistry.h
* src/SocketCore.h
* src/PeerReceiveHandshakeCommand.{h, cc}
* src/BtRegistry.{h, cc}
* src/PeerListenCommand.cc
* src/InitiatorMSEHandshakeCommand.{h, cc}
* src/ReceiverMSEHandshakeCommand.{h, cc}
* src/MSEHandshake.{h, cc}
* src/ARC4Encryptor.h
* src/ARC4Decryptor.h
* src/LibgcryptARC4Encryptor.h
* src/LibgcryptARC4Decryptor.h
* src/LibgcryptARC4Context.h
* src/LibsslARC4Encryptor.h
* src/LibsslARC4Decryptor.h
* src/LibsslARC4Context.h
* src/DHKeyExchange.h
* src/LibgcryptDHKeyExchange.h
* src/LibsslDHKeyExchange.h
* src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
* test/DefaultBtAnnounceTest.cc
* test/ARC4Test.cc
* test/DHKeyExchangeTest.cc
Removed prepareForRetry() because it is not used.
* src/PeerAbstractCommand.{h, cc}
* src/PeerInteractionCommand.{h, cc}
* src/PeerInitiateConnectionCommand.{h, cc}
2008-02-17 15:56:47 +00:00
|
|
|
DHTRoutingTableDeserializerTest.cc\
|
2010-10-02 14:38:37 +00:00
|
|
|
DHTTaskExecutorTest.cc\
|
2008-02-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added Message Stream Encryption(MSE) support.
Currently, aria2 accepts incoming connections with Obfuscation Header
and legacy BitTorrent Header and establishes connections with
Obfuscation Header first and if failed then retry with legacy
BitTorrent header. If plain text and ARC4 is provided, aria2 always
choose ARC4. The new option to change the default behavior is planned.
For tracker extension, "supportcrypto=1" is added statically.
* src/PeerInitiateConnectionCommand.{h, cc}
* src/PeerConnection.{h, cc}
* src/HandleRegistry.h
* src/SocketCore.h
* src/PeerReceiveHandshakeCommand.{h, cc}
* src/BtRegistry.{h, cc}
* src/PeerListenCommand.cc
* src/InitiatorMSEHandshakeCommand.{h, cc}
* src/ReceiverMSEHandshakeCommand.{h, cc}
* src/MSEHandshake.{h, cc}
* src/ARC4Encryptor.h
* src/ARC4Decryptor.h
* src/LibgcryptARC4Encryptor.h
* src/LibgcryptARC4Decryptor.h
* src/LibgcryptARC4Context.h
* src/LibsslARC4Encryptor.h
* src/LibsslARC4Decryptor.h
* src/LibsslARC4Context.h
* src/DHKeyExchange.h
* src/LibgcryptDHKeyExchange.h
* src/LibsslDHKeyExchange.h
* src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
* test/DefaultBtAnnounceTest.cc
* test/ARC4Test.cc
* test/DHKeyExchangeTest.cc
Removed prepareForRetry() because it is not used.
* src/PeerAbstractCommand.{h, cc}
* src/PeerInteractionCommand.{h, cc}
* src/PeerInitiateConnectionCommand.{h, cc}
2008-02-17 15:56:47 +00:00
|
|
|
DHKeyExchangeTest.cc\
|
2008-02-18 13:41:58 +00:00
|
|
|
ARC4Test.cc\
|
2008-02-20 16:57:47 +00:00
|
|
|
MSEHandshakeTest.cc\
|
2008-03-01 04:42:53 +00:00
|
|
|
MockBtAnnounce.h\
|
|
|
|
MockBtProgressInfoFile.h\
|
|
|
|
MockBtRequestFactory.h\
|
|
|
|
MockDHTMessage.h\
|
|
|
|
MockDHTMessageCallback.h\
|
|
|
|
MockDHTMessageDispatcher.h\
|
|
|
|
MockDHTMessageFactory.h\
|
|
|
|
MockDHTTask.h\
|
|
|
|
MockDHTTaskFactory.h\
|
|
|
|
MockDHTTaskQueue.h\
|
|
|
|
MockExtensionMessage.h\
|
|
|
|
MockExtensionMessageFactory.h\
|
2009-06-07 05:36:44 +00:00
|
|
|
MockPieceStorage.h\
|
2009-11-29 06:43:38 +00:00
|
|
|
BittorrentHelperTest.cc\
|
|
|
|
PriorityPieceSelectorTest.cc\
|
2009-11-29 06:56:04 +00:00
|
|
|
MockPieceSelector.h\
|
2010-02-20 14:23:25 +00:00
|
|
|
extension_message_test_helper.h\
|
|
|
|
LpdMessageDispatcherTest.cc\
|
2010-06-19 17:54:54 +00:00
|
|
|
LpdMessageReceiverTest.cc\
|
2012-02-08 16:51:42 +00:00
|
|
|
Bencode2Test.cc\
|
2012-07-24 14:50:06 +00:00
|
|
|
PeerConnectionTest.cc\
|
2012-09-26 13:02:48 +00:00
|
|
|
ValueBaseBencodeParserTest.cc\
|
2013-02-24 15:56:49 +00:00
|
|
|
ExtensionMessageRegistryTest.cc\
|
|
|
|
UDPTrackerClientTest.cc
|
2007-07-23 14:09:46 +00:00
|
|
|
endif # ENABLE_BITTORRENT
|
|
|
|
|
|
|
|
if ENABLE_METALINK
|
|
|
|
aria2c_SOURCES += MetalinkerTest.cc\
|
|
|
|
MetalinkEntryTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
Metalink2RequestGroupTest.cc\
|
2007-11-03 12:03:53 +00:00
|
|
|
MetalinkPostDownloadHandlerTest.cc\
|
2007-12-04 11:12:56 +00:00
|
|
|
MetalinkHelperTest.cc\
|
|
|
|
MetalinkParserControllerTest.cc\
|
2007-12-14 00:46:32 +00:00
|
|
|
MetalinkProcessorTest.cc
|
2007-07-23 14:09:46 +00:00
|
|
|
endif # ENABLE_METALINK
|
|
|
|
|
2012-05-16 14:02:55 +00:00
|
|
|
if ENABLE_ASYNC_DNS
|
|
|
|
aria2c_SOURCES += AsyncNameResolverTest.cc
|
|
|
|
endif # ENABLE_ASYNC_DNS
|
|
|
|
|
2012-07-05 15:34:37 +00:00
|
|
|
if !HAVE_TIMEGM
|
|
|
|
aria2c_SOURCES += TimegmTest.cc
|
|
|
|
endif # !HAVE_TIMEGM
|
|
|
|
|
2013-05-15 13:59:26 +00:00
|
|
|
if ENABLE_LIBARIA2
|
|
|
|
aria2c_SOURCES += Aria2ApiTest.cc
|
|
|
|
endif # ENABLE_LIBARIA2
|
|
|
|
|
2013-04-26 14:55:51 +00:00
|
|
|
aria2c_LDADD = ../src/libaria2.la @LIBINTL@ @CPPUNIT_LIBS@
|
2006-04-06 12:52:16 +00:00
|
|
|
AM_CPPFLAGS = -Wall\
|
2010-12-02 13:38:36 +00:00
|
|
|
-I$(top_srcdir)/src\
|
2013-04-26 14:55:51 +00:00
|
|
|
-I$(top_srcdir)/src/includes -I$(top_builddir)/src/includes\
|
2010-12-02 13:38:36 +00:00
|
|
|
-I$(top_srcdir)/lib -I$(top_srcdir)/intl\
|
2011-02-18 09:53:53 +00:00
|
|
|
-DLOCALEDIR=\"$(localedir)\"\
|
2010-12-02 13:38:36 +00:00
|
|
|
-DA2_TEST_DIR=\"$(top_srcdir)/test\"\
|
|
|
|
-DA2_TEST_OUT_DIR=\"${a2_test_outdir}\"\
|
2011-02-18 09:53:53 +00:00
|
|
|
@CPPUNIT_CFLAGS@\
|
2010-12-02 13:38:36 +00:00
|
|
|
@DEFS@
|
2008-03-01 04:42:53 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = 4096chunk.txt\
|
|
|
|
chunkChecksumTestFile250.txt\
|
2008-09-17 13:37:32 +00:00
|
|
|
cookies.sqlite\
|
2010-07-08 15:18:15 +00:00
|
|
|
chromium_cookies.sqlite\
|
2008-03-01 04:42:53 +00:00
|
|
|
emptyfile\
|
|
|
|
file1r.txt\
|
|
|
|
file2r.txt\
|
|
|
|
file3r.txt\
|
|
|
|
filelist1.txt\
|
2013-02-02 12:22:18 +00:00
|
|
|
filelist2.txt\
|
2008-06-29 14:29:36 +00:00
|
|
|
gzip_decode_test.gz\
|
2008-03-01 04:42:53 +00:00
|
|
|
load-nonBt.aria2\
|
2008-08-24 09:46:03 +00:00
|
|
|
load-nonBt-v0001.aria2\
|
2008-03-01 04:42:53 +00:00
|
|
|
load.aria2\
|
2008-08-24 09:46:03 +00:00
|
|
|
load-v0001.aria2\
|
2008-03-01 04:42:53 +00:00
|
|
|
malformed.netrc\
|
|
|
|
nscookietest.txt\
|
|
|
|
sample.netrc\
|
|
|
|
single.torrent\
|
|
|
|
test.torrent\
|
|
|
|
test.xml\
|
|
|
|
url-list-multiFile.torrent\
|
2008-11-13 16:14:03 +00:00
|
|
|
url-list-singleFile.torrent\
|
2009-04-27 12:00:41 +00:00
|
|
|
url-list-singleFileEndsWithSlash.torrent\
|
2009-05-16 07:45:04 +00:00
|
|
|
input_uris.txt\
|
2009-05-31 15:15:35 +00:00
|
|
|
2files.metalink\
|
2010-02-25 14:40:18 +00:00
|
|
|
utf8.torrent\
|
|
|
|
metalink4.xml\
|
2010-02-27 15:30:48 +00:00
|
|
|
metalink3-dirtraversal.xml\
|
2010-04-12 14:50:30 +00:00
|
|
|
metalink4-groupbymetaurl.xml\
|
2010-05-06 14:18:29 +00:00
|
|
|
serialize_session.meta4\
|
2011-05-16 14:28:33 +00:00
|
|
|
metalink4-dosdirtraversal.xml\
|
2013-12-06 16:16:47 +00:00
|
|
|
base_uri.xml\
|
|
|
|
local-metaurl.meta4
|
2010-12-02 13:38:36 +00:00
|
|
|
|
|
|
|
clean-local:
|
2013-03-01 15:07:16 +00:00
|
|
|
-rm -rf ${a2_test_outdir}
|