Tatsuhiro Tsujikawa
4156debe5c
2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --interface option. This feature binds sockets to given
interface. You can specify interface name, IP address and
hostname.
* configure.ac
* src/OptionHandlerFactory.cc
* src/SocketCore.cc
* src/SocketCore.h
* src/main.cc
* src/message.h
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-12-03 14:41:08 +00:00
Tatsuhiro Tsujikawa
854660005d
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated man page for bt-prioritize-piece option in -i list.
* doc/aria2c.1.txt
2009-11-29 12:41:39 +00:00
Tatsuhiro Tsujikawa
33579a8b24
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bt-prioritize-piece option to -i list.
* src/download_helper.cc
2009-11-29 12:39:17 +00:00
Tatsuhiro Tsujikawa
8a590b4de0
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --http-auth-scheme option from man page.
* doc/aria2c.1.txt
2009-11-29 10:29:37 +00:00
Tatsuhiro Tsujikawa
ddaad36680
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed --http-auth-scheme option since it doesn't do nothing.
* src/OptionHandlerFactory.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
2009-11-29 10:28:24 +00:00
Tatsuhiro Tsujikawa
8f00669d7b
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Adjusted the number of peer info which get_peers reply message can
carry.
* src/DHTGetPeersReplyMessage.cc
2009-11-29 10:17:03 +00:00
Tatsuhiro Tsujikawa
cccbeffce6
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added extension_message_test_helper.h to aria2c_SOURCES.
* test/Makefile.am
2009-11-29 06:56:04 +00:00
Tatsuhiro Tsujikawa
2c92b2fab8
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Documented --bt-prioritize-piece option in man page.
* doc/aria2c.1.txt
2009-11-29 06:48:07 +00:00
Tatsuhiro Tsujikawa
e208302947
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added option --bt-prioritize-piece. This option instruct aria2 to
try to download first and last pieces of each file first. The
argument can contain 2 keywords:head and tail. To include both
keywords, they must be separated by comma. These keywords can take
one parameter, SIZE. For example , if head=SIZE is specified,
pieces in the range of first SIZE bytes of each file get higher
priority. tail=SIZE means the range of last SIZE bytes of each
file. SIZE can include K or M(1K = 1024, 1M = 1024K).
* src/DefaultPieceStorage.h
* src/Makefile.am
* src/OptionHandlerFactory.cc
* src/OptionHandlerImpl.h
* src/PriorityPieceSelector.cc
* src/PriorityPieceSelector.h
* src/RequestGroup.cc
* src/prefs.cc
* src/prefs.h
* src/usage_text.h
* src/util.cc
* src/util.h
* test/Makefile.am
* test/MockPieceSelector.h
* test/PriorityPieceSelectorTest.cc
* test/UtilTest.cc
2009-11-29 06:43:38 +00:00
Tatsuhiro Tsujikawa
30ba476e9d
2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/HttpRequest.h
2009-11-29 06:31:18 +00:00
Tatsuhiro Tsujikawa
5f082a9ff4
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In Magnet URI with tr parameter, put each announce URI in separate
tier.
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
2009-11-28 12:39:08 +00:00
Tatsuhiro Tsujikawa
6939be2765
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Renamed ExtensionMessage::getBencodedData() as
ExtensionMessage::getPayload()
* src/BtExtendedMessage.cc
* src/ExtensionMessage.h
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataRejectExtensionMessage.cc
* src/UTMetadataRejectExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* src/UTMetadataRequestExtensionMessage.h
* src/UTPexExtensionMessage.cc
* src/UTPexExtensionMessage.h
* test/HandshakeExtensionMessageTest.cc
* test/MockExtensionMessage.h
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRejectExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
* test/UTPexExtensionMessageTest.cc
2009-11-28 12:32:07 +00:00
Tatsuhiro Tsujikawa
1d8a3df058
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated man page for BitTorrent Magnet URI.
* doc/aria2c.1.txt
2009-11-28 12:21:59 +00:00
Tatsuhiro Tsujikawa
88bfe8b084
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Call DownloadContext::setOwnerRequestGroup() in
RequestGroup::setDownloadContext().
* src/BtDependency.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/download_helper.cc
* test/DefaultBtMessageDispatcherTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/HandshakeExtensionMessageTest.cc
2009-11-28 10:12:04 +00:00
Tatsuhiro Tsujikawa
339795311b
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
Rewritten UTMetadataPostDownloadHandler. To create torrent data
from metadata, use new metadata2Torrent() function.
* src/BtDependency.cc
* src/UTMetadataPostDownloadHandler.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/BtDependencyTest.cc
2009-11-28 09:58:49 +00:00
Tatsuhiro Tsujikawa
96205abc67
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use createRequestGroupForUri to create the download for torrent
file.
* src/Metalink2RequestGroup.cc
* test/Metalink2RequestGroupTest.cc
2009-11-28 09:21:12 +00:00
Tatsuhiro Tsujikawa
0390fae213
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed typo
* src/DownloadContext.h
2009-11-28 09:11:23 +00:00
Tatsuhiro Tsujikawa
591e9fa843
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use createRequestGroupForBitTorrent()
* src/BtPostDownloadHandler.cc
2009-11-28 09:10:20 +00:00
Tatsuhiro Tsujikawa
12145ef4c6
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added remove().
* src/Option.cc
* src/Option.h
2009-11-28 09:08:25 +00:00
Tatsuhiro Tsujikawa
b80de5e010
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed options which is only valid for URIs specified in
command-line. If they are left, because op is used as a template
for new RequestGroup(such as created in XML-RPC command,
BtPostDownloadHandler etc), they causes unintentional effect.
* src/main.cc
2009-11-28 09:07:21 +00:00
Tatsuhiro Tsujikawa
9f6c187be4
2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Refer to option value of PREF_OUT only in download_helper.
* src/FtpNegotiationCommand.cc
* src/HttpResponseCommand.cc
2009-11-28 09:05:50 +00:00
Tatsuhiro Tsujikawa
d33c7c7db1
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Now addUri XML-RPC method accepts BitTorrent Magnet URI.
* src/download_helper.cc
* src/download_helper.h
* src/XmlRpcMethodImpl.cc
2009-11-27 14:04:29 +00:00
Tatsuhiro Tsujikawa
82d75a94d8
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated man page for changeOption XML-RPC method.
* doc/aria2c.1.txt
2009-11-27 13:10:41 +00:00
Tatsuhiro Tsujikawa
a8d4fbad51
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-max-peers option to changeOption XML-RPC method.
* src/XmlRpcMethod.cc
* src/XmlRpcMethodImpl.cc
* test/XmlRpcMethodTest.cc
2009-11-27 13:07:08 +00:00
Tatsuhiro Tsujikawa
58f4e715e0
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
* test/XmlRpcMethodTest.cc
2009-11-27 12:47:57 +00:00
Tatsuhiro Tsujikawa
52f11b5a21
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed redundant DownloadContext::hasAttribute(...) calls.
* src/ConsoleStatCalc.cc
* src/RequestGroup.cc
* src/XmlRpcMethodImpl.cc
2009-11-26 13:16:02 +00:00
Tatsuhiro Tsujikawa
8ab55abf11
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the number of tracker request attempt from 5 to 2.
* src/TrackerWatcherCommand.cc
2009-11-26 13:14:19 +00:00
Tatsuhiro Tsujikawa
cb6604c88e
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use host and protocol in original URI, because URI selector
selects URI based on original URI, not redirected one.
* src/Request.cc
2009-11-26 13:09:15 +00:00
Tatsuhiro Tsujikawa
46d9f2de63
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug which causes segmentation fault with tellWaiting
XML-RPC method when BitTorrent download is waiting. The key of
BtRegistry is changed from info hash to GID, because it is
registered per RequestGroup, not info hash.
* src/BtRegistry.cc
* src/BtRegistry.h
* src/BtSetup.cc
* src/ConsoleStatCalc.cc
* src/InitiatorMSEHandshakeCommand.cc
* src/PeerInitiateConnectionCommand.cc
* src/PeerInteractionCommand.cc
* src/PeerInteractionCommand.h
* src/PeerReceiveHandshakeCommand.cc
* src/RequestGroup.cc
* src/XmlRpcMethodImpl.cc
* test/BtRegistryTest.cc
* test/XmlRpcMethodTest.cc
2009-11-25 15:49:20 +00:00
Tatsuhiro Tsujikawa
a26a44cb8e
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated man page for changeOption XML-RPC method.
* doc/aria2c.1.txt
2009-11-25 12:57:33 +00:00
Tatsuhiro Tsujikawa
d0e0db1eb1
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added --bt-request-peer-speed-limit option to changeOption XML-RPC
method.
* src/XmlRpcMethod.cc
2009-11-25 12:47:09 +00:00
Tatsuhiro Tsujikawa
4ede925ce3
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Documented about BitTorrent Magnet URI in man page.
* doc/aria2c.1.txt
2009-11-24 16:44:08 +00:00
Tatsuhiro Tsujikawa
3fa6ce55f4
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that trackers in BitTorrent Magnet URI are not
inherited to generated RequestGroup.
* src/UTMetadataPostDownloadHandler.cc
* test/UTMetadataPostDownloadHandlerTest.cc
2009-11-24 16:42:55 +00:00
Tatsuhiro Tsujikawa
656cbd16a0
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Prepended "[METADATA]" before dn.
* src/bittorrent_helper.cc
* test/BittorrentHelperTest.cc
2009-11-24 16:39:52 +00:00
Tatsuhiro Tsujikawa
512be58217
2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Magnet URI parser.
* src/Makefile.am
* src/ProtocolDetector.cc
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* src/download_helper.cc
* src/magnet.cc
* src/magnet.h
* test/BittorrentHelperTest.cc
* test/MagnetTest.cc
* test/Makefile.am
* test/ProtocolDetectorTest.cc
2009-11-24 14:47:42 +00:00
Tatsuhiro Tsujikawa
d2cefd8613
2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use hton64
* src/base32.cc
2009-11-24 13:08:51 +00:00
Tatsuhiro Tsujikawa
894165171c
2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added Base32 encoded BitTorrent Magnet Link support.
* src/Makefile.am
* src/base32.cc
* src/base32.h
* src/bittorrent_helper.cc
* test/Base32Test.cc
* test/BittorrentHelperTest.cc
* test/Makefile.am
2009-11-23 15:59:31 +00:00
Tatsuhiro Tsujikawa
6e8074c087
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BitTorrent Magnet Link support. Base32 encoded link is not
supported yet. Fixed typo in method name in RequestGroup. In
metadataGetMode, don't show "Your share ratio was ..." message.
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
* src/DownloadHandlerFactory.cc
* src/DownloadHandlerFactory.h
* src/HandshakeExtensionMessage.cc
* src/Makefile.am
* src/Metalink2RequestGroup.cc
* src/PeerInteractionCommand.cc
* src/RequestGroup.cc
* src/RequestGroup.h
* src/UTMetadataPostDownloadHandler.cc
* src/UTMetadataPostDownloadHandler.h
* src/download_helper.cc
* test/HandshakeExtensionMessageTest.cc
* test/Makefile.am
* test/UTMetadataPostDownloadHandlerTest.cc
* test/UTMetadataRejectExtensionMessageTest.cc
2009-11-23 13:17:48 +00:00
Tatsuhiro Tsujikawa
95370fc11f
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
In metadataGetMode, don't show SEEDING.
* src/ConsoleStatCalc.cc
2009-11-23 11:28:22 +00:00
Tatsuhiro Tsujikawa
c1730aeea9
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed ut_metadata data handling. Implemented
UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
metadata_size is received.
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* src/UTMetadataRequestFactory.cc
* src/UTMetadataRequestFactory.h
* src/UTMetadataRequestTracker.cc
* src/UTMetadataRequestTracker.h
* test/DefaultExtensionMessageFactoryTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/MockBtMessage.h
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
* test/UTMetadataRequestFactoryTest.cc
* test/UTMetadataRequestTrackerTest.cc
* test/extension_message_test_helper.h
2009-11-22 15:31:47 +00:00
Tatsuhiro Tsujikawa
b563621dd1
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Drop connection if ut_metadata reject message is received.
* src/UTMetadataRejectExtensionMessage.cc
2009-11-22 15:19:16 +00:00
Tatsuhiro Tsujikawa
9d2199acbb
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
get high enough in that mode.
* src/ActivePeerConnectionCommand.cc
2009-11-22 15:16:12 +00:00
Tatsuhiro Tsujikawa
c73d235ab8
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added BitTorrent magnet link support to ProtocolDetector.
* src/ProtocolDetector.cc
* src/ProtocolDetector.h
* test/ProtocolDetectorTest.cc
2009-11-22 14:54:51 +00:00
Tatsuhiro Tsujikawa
c1f9032441
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't inject validator into BtMessage in metadataGetMode because
most of the checks depends on the total length of download but it
is unknown. Delegate metadataGetMode to BtMessage.
* src/DefaultBtMessageFactory.cc
* src/DefaultBtMessageFactory.h
2009-11-22 14:52:17 +00:00
Tatsuhiro Tsujikawa
03b281f604
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added setEndGamePieceNum() pure virtual function to PieceStorage.
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2009-11-22 14:42:59 +00:00
Tatsuhiro Tsujikawa
9423f0d29a
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added markTotalLengthIsKnown().
* src/DownloadContext.h
2009-11-22 14:39:20 +00:00
Tatsuhiro Tsujikawa
5013e96b3b
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't add PeerChokeCommand and SeedCheckCommand if metadata is
missing. If metadata is missing, always use DHT when it is ready.
* src/BtSetup.cc
2009-11-22 14:37:05 +00:00
Tatsuhiro Tsujikawa
66e6191d10
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added parseMagnetLink(). Hex encoded info hash is supported.
Base32 encoded info hash is not supported yet.
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
2009-11-22 14:35:35 +00:00
Tatsuhiro Tsujikawa
e0d9798b94
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added FromHex()
* src/util.cc
* src/util.h
* test/UtilTest.cc
2009-11-22 14:30:51 +00:00
Tatsuhiro Tsujikawa
d9e29e5c7d
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added _metadataGetMode member variable. It toggles the action when
messages are received: usually they almost do nothing if
_metadataGetMode is true.
* src/AbstractBtMessage.cc
* src/AbstractBtMessage.h
* src/BtAllowedFastMessage.cc
* src/BtBitfieldMessage.cc
* src/BtCancelMessage.cc
* src/BtChokeMessage.cc
* src/BtHaveAllMessage.cc
* src/BtHaveMessage.cc
* src/BtInterestedMessage.cc
* src/BtNotInterestedMessage.cc
* src/BtPieceMessage.cc
* src/BtRejectMessage.cc
* src/BtRequestMessage.cc
* src/BtUnchokeMessage.cc
2009-11-22 13:33:35 +00:00