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
Tatsuhiro Tsujikawa
5130b5c1e0
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added bencode::decode overload functions. They have extra argument
'end', passed by reference. 'end' points to the beyond the last
position of data used in decoding process.
* src/bencode.cc
* src/bencode.h
* test/BencodeTest.cc
2009-11-22 13:26:32 +00:00
Tatsuhiro Tsujikawa
93968c4fa5
2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Initial support of Extension for Peers to Send Metadata
Files(BEP9). Currently aria2 only serves metadata and cannot get
metadata from swarm.
* src/BtConstants.h
* src/DefaultBtInteractive.cc
* src/DefaultExtensionMessageFactory.cc
* src/DefaultExtensionMessageFactory.h
* src/ExtensionMessage.h
* src/ExtensionMessageRegistry.h
* src/HandshakeExtensionMessage.cc
* src/HandshakeExtensionMessage.h
* src/Makefile.am
* src/PeerConnection.h
* src/PeerInteractionCommand.cc
* src/UTMetadataDataExtensionMessage.cc
* src/UTMetadataDataExtensionMessage.h
* src/UTMetadataExtensionMessage.cc
* src/UTMetadataExtensionMessage.h
* src/UTMetadataRejectExtensionMessage.cc
* src/UTMetadataRejectExtensionMessage.h
* src/UTMetadataRequestExtensionMessage.cc
* src/UTMetadataRequestExtensionMessage.h
* src/bittorrent_helper.cc
* src/bittorrent_helper.h
* test/BittorrentHelperTest.cc
* test/DefaultExtensionMessageFactoryTest.cc
* test/HandshakeExtensionMessageTest.cc
* test/Makefile.am
* test/UTMetadataDataExtensionMessageTest.cc
* test/UTMetadataRejectExtensionMessageTest.cc
* test/UTMetadataRequestExtensionMessageTest.cc
2009-11-20 15:42:25 +00:00
Tatsuhiro Tsujikawa
2764b6739d
2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Cancel segment in prepareForRetry() because there is a chance that
the command has segments.
* src/CreateRequestCommand.cc
2009-11-20 15:27:10 +00:00
Tatsuhiro Tsujikawa
60e3e46c52
2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that slow server is not knocked down in favor of
faster one.
* src/AbstractCommand.cc
* src/DefaultPieceStorage.cc
* src/DefaultPieceStorage.h
* src/PieceStorage.h
* src/UnknownLengthPieceStorage.cc
* src/UnknownLengthPieceStorage.h
* test/MockPieceStorage.h
2009-11-20 07:47:42 +00:00
Tatsuhiro Tsujikawa
39c2b57842
2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that Request object is not added to
_inFlightRequests in findFasterRequest().
* src/FileEntry.cc
2009-11-20 07:44:42 +00:00
Tatsuhiro Tsujikawa
6d73ca229f
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Changed the strategry of how to increase the number of outstanding
requests. Now the number is doubled if there are no outstanding
requests after receiving messages.
* src/BtConstants.h
* src/DefaultBtInteractive.cc
* src/DefaultBtInteractive.h
2009-11-18 12:22:03 +00:00
Tatsuhiro Tsujikawa
2f6e22f1aa
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Check socket for reading if there are outstanding requests.
* src/PeerInteractionCommand.cc
2009-11-18 12:19:00 +00:00
Tatsuhiro Tsujikawa
20e734fa15
2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Moved frequently called methods to header file so they get
inlined.
* src/RequestSlot.cc
* src/RequestSlot.h
2009-11-17 14:29:55 +00:00
Tatsuhiro Tsujikawa
928de09345
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Copied in_addr instead of just casting from char* which might
violate strict aliasing rules.
* src/AsyncNameResolver.cc
2009-11-15 13:27:46 +00:00
Tatsuhiro Tsujikawa
7b63e121c7
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use dynamic_pointer_cast
* test/BtPieceMessageTest.cc
* test/BtRequestMessageTest.cc
* test/DefaultBtRequestFactoryTest.cc
2009-11-15 13:25:44 +00:00
Tatsuhiro Tsujikawa
f11adceba7
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added testSetUrl20()
* test/RequestTest.cc
2009-11-15 13:00:23 +00:00
Tatsuhiro Tsujikawa
1e740c6087
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/bittorrent_helper.cc
2009-11-15 12:59:44 +00:00
Tatsuhiro Tsujikawa
309d292831
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Use C++ style cast
* src/AsyncNameResolver.cc
* src/Base64.h
* src/BtBitfieldMessage.cc
* src/BtHandshakeMessage.cc
* src/DefaultBtMessageFactory.cc
* src/DefaultBtProgressInfoFile.cc
* src/EpollEventPoll.cc
* src/ExpatMetalinkProcessor.cc
* src/IteratableChecksumValidator.cc
* src/IteratableChunkChecksumValidator.cc
* src/MessageDigestHelper.cc
* src/Platform.cc
* src/RequestGroupMan.cc
* src/SingleFileAllocationIterator.cc
* src/Sqlite3MozCookieParser.cc
* src/XML2SAXMetalinkProcessor.cc
* src/Xml2XmlRpcRequestProcessor.cc
* src/util.cc
* src/util.h
2009-11-15 12:55:50 +00:00
Tatsuhiro Tsujikawa
2923682aa6
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed integer potential alignment problem.
* src/bitfield.h
2009-11-15 11:29:24 +00:00
Tatsuhiro Tsujikawa
548585cccc
2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Applied a patch from tizianomueller to fix sigbus errors on Linux
sparc. I modified the patch to eliminate a cast to uint32_t* and
include file ordering.
* src/PeerListProcessor.h
* src/bittorrent_helper.cc
2009-11-15 11:20:55 +00:00
Tatsuhiro Tsujikawa
9cdf102850
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
* src/Request.cc
* src/util.cc
* src/util.h
* test/RequestTest.cc
2009-11-12 15:34:55 +00:00
Tatsuhiro Tsujikawa
8865b9e8e6
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten util::uitos()
* src/util.h
2009-11-12 15:17:28 +00:00
Tatsuhiro Tsujikawa
48175dcb3a
2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Code cleanup
* src/Request.cc
* src/Request.h
2009-11-12 15:07:18 +00:00
Tatsuhiro Tsujikawa
7a94ae6af2
2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Rewritten Request::parseUrl()
* src/Request.cc
* test/RequestTest.cc
2009-11-12 14:50:23 +00:00
Tatsuhiro Tsujikawa
37a50cf468
2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused macro SAFE_CHARS
* src/Request.cc
2009-11-11 13:11:39 +00:00
Tatsuhiro Tsujikawa
ff3702463a
2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated doc
* src/DHTRoutingTableDeserializer.cc
2009-11-11 13:06:19 +00:00
Tatsuhiro Tsujikawa
2325de5c32
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Release 1.6.3
2009-11-02 14:39:23 +00:00
Tatsuhiro Tsujikawa
6c09ea69b8
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed unused function.
* test/DHTPeerAnnounceStorageTest.cc
2009-11-02 14:38:27 +00:00
Tatsuhiro Tsujikawa
0894a7592c
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Only decrement cols if cols > 0
* src/ConsoleStatCalc.cc
2009-11-02 14:30:26 +00:00
Tatsuhiro Tsujikawa
b5136c2028
Updated for 1.6.3 release.
2009-11-02 14:18:41 +00:00
Tatsuhiro Tsujikawa
a5a1c1982f
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated Polish, Catalan, French, Italian, Russian and Japanese
translations. Thanks to all translators.
* po/ca.po
* po/fr.po
* po/it.po
* po/ja.po
* po/pl.po
* po/ru.po
2009-11-02 14:16:28 +00:00
Tatsuhiro Tsujikawa
d6e52278dd
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Updated translation template
* po
2009-11-02 14:09:43 +00:00
Tatsuhiro Tsujikawa
fb3e69db3b
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed compile error without ssl library.
* src/util.cc
2009-11-02 14:04:28 +00:00
Tatsuhiro Tsujikawa
f794df7d9b
2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Logged received nodes in get_peers reply message.
* src/DHTAbstractNodeLookupTask.cc
* src/DHTAbstractNodeLookupTask.h
2009-11-02 13:16:22 +00:00
Tatsuhiro Tsujikawa
f1043306f0
2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Fixed the bug that DHTAbstractNodeLookupTask never finishes if
error occurred in DHTMessageDispatcherImpl::sendMessage().
* src/DHTMessageDispatcherImpl.cc
2009-11-01 14:14:28 +00:00
Tatsuhiro Tsujikawa
489cfe3d0e
2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Don't reuse URI if Request pool is not empty.
* src/CreateRequestCommand.cc
2009-11-01 09:42:34 +00:00
Tatsuhiro Tsujikawa
20c8ce4128
2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
...
Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
receive get_peers request for torrent which the client is now
downloading.
* src/BtSetup.cc
* src/DHTPeerAnnounceEntry.cc
* src/DHTPeerAnnounceEntry.h
* src/DHTPeerAnnounceStorage.cc
* src/DHTPeerAnnounceStorage.h
* src/RequestGroup.cc
* test/DHTPeerAnnounceEntryTest.cc
* test/DHTPeerAnnounceStorageTest.cc
2009-10-31 11:54:54 +00:00