Commit Graph

4026 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
c0b60eb087 Use std::unique_ptr for UnionSeedCriteria 2013-06-23 22:07:25 +09:00
Tatsuhiro Tsujikawa
fa9f3fb5a3 Wrap Command object in std::unique_ptr 2013-06-23 21:55:52 +09:00
Tatsuhiro Tsujikawa
bb5b7eeedb Move RequestGroup vector from Context to RequestGroupMan 2013-06-23 16:35:14 +09:00
Tatsuhiro Tsujikawa
28c84148e4 Pass std::unique_ptr by value 2013-06-23 16:24:47 +09:00
Tatsuhiro Tsujikawa
23086b6e21 AbstractBtMessage: Use std::unique_ptr for validator 2013-06-23 16:12:19 +09:00
Tatsuhiro Tsujikawa
a18bba7c66 DefaultBtMessageReceiver: Use raw pointer for non-owning object 2013-06-23 12:29:18 +09:00
Tatsuhiro Tsujikawa
85f5134626 DefaultBtMessageDispatcher: Use raw pointers for non-owning objects 2013-06-23 12:25:58 +09:00
Tatsuhiro Tsujikawa
9db01bed71 DefaultBtAnnounce: Use non-owning raw pointer for downloadContext_ 2013-06-23 12:14:17 +09:00
Tatsuhiro Tsujikawa
bfb732c5d4 DefaultBtRequestFactory: Use raw pointer for pieceStorage_ 2013-06-23 12:02:36 +09:00
Tatsuhiro Tsujikawa
bef6236da8 DownloadContext::attrs_ now holds std::unique_ptr
DownloadContext::getAttribute() returns a raw pointer.
2013-06-23 00:59:55 +09:00
Tatsuhiro Tsujikawa
1a299c4d7c Use raw pointers to PieceStorage, PeerStorage and DownloadContxt for BtMessages 2013-06-23 00:01:40 +09:00
Tatsuhiro Tsujikawa
09c597fbb8 ParameterOptionHandler: Use initializer lists for params 2013-06-22 23:19:54 +09:00
Tatsuhiro Tsujikawa
d1a17e5ef3 Use AX_CXX_COMPILE_STDCXX_11 macro to detect C++0x/C++11 support in compiler 2013-06-22 21:43:31 +09:00
Tatsuhiro Tsujikawa
286bb2840e Remove Triplet, use std::tuple instead 2013-06-22 21:08:50 +09:00
Tatsuhiro Tsujikawa
5cb7ae0b86 Use std::unique_ptr in SingletonHolder 2013-06-22 19:36:42 +09:00
Tatsuhiro Tsujikawa
ca329a7ccb Use std::mem_fn instead of std::mem_fun 2013-06-22 19:15:57 +09:00
Tatsuhiro Tsujikawa
38d4574355 Remove forEachMemFunSH in favor of for loop with auto 2013-06-22 19:04:52 +09:00
Tatsuhiro Tsujikawa
05d85e2965 Remove auto_delete in favor of std::unique_ptr 2013-06-22 18:51:29 +09:00
Tatsuhiro Tsujikawa
e791eb9ca3 Cleanup a2functional.h
Remove mem_fun_sh in favor of std::mem_fun. Remove unused functions.

Use std::mem_fn instead of mem_fun_sh
2013-06-22 17:53:39 +09:00
Tatsuhiro Tsujikawa
50dcd6394c Use std::unique_ptr instead of std::shared_ptr 2013-06-22 15:49:41 +09:00
Tatsuhiro Tsujikawa
c330ac901d Fix mingw32 compile error 2013-06-22 01:23:08 +09:00
Tatsuhiro Tsujikawa
07d270c87e Require -std=c++11 and use std::shared_ptr instead of SharedHandle 2013-06-22 01:10:38 +09:00
Tatsuhiro Tsujikawa
126a4bde61 Rewrite URI path component normalization 2013-06-19 00:15:37 +09:00
Tatsuhiro Tsujikawa
f022444d81 Join URI on redirect 2013-06-18 00:15:23 +09:00
Tatsuhiro Tsujikawa
4a106e7fcf Send HAVE message to the peer which the piece is downloaded from
Historically, aria2 did not send HAVE message to the peer which the
piece is coming from, thinking it is obvious that the peer knows we
have the piece. But it is not obvious if one piece is download from
more than 1 peers (e.g., end game mode). So it is better to send HAVE
to all peers connected.
2013-06-13 21:42:33 +09:00
Tatsuhiro Tsujikawa
e3506b04fb Revert 9eea959 only the parts which affect src/BtPieceMessage.cc
This is because we are not sure that peer has a piece just sending off
its block. It should be notified by the peer.
2013-06-13 21:34:08 +09:00
Tatsuhiro Tsujikawa
9eea959455 Improve peer bitfield and piece stat update
On HAVE message reception and PIECE message transmission, update peer
bitfield and piece stat only if current peer bitfield indicates it
does not have the piece.
2013-06-12 23:21:18 +09:00
Tatsuhiro Tsujikawa
4ff6a9f1d4 Do the same doc improvements to --follow-metalink 2013-06-12 21:37:30 +09:00
gt
75d3e6f4dd Improvements to --follow-torrent=false documentation. 2013-06-11 23:49:09 +05:30
Tatsuhiro Tsujikawa
81e6b68443 Pass A2Gid by value, since it is uint64_t 2013-06-12 00:09:42 +09:00
Tatsuhiro Tsujikawa
f4085b310f Update doc 2013-06-10 22:03:24 +09:00
Nils Maier
3b32dcb9f1 SessionSerializer: Truly unique URIs
Before, only spent uris where sanitized not to be contained within
remaining uris. Change this so that each uri in the
union(remaining,spent) get saved once at most.
The order of the uris will won't be changed, with remaining uris going
first followed by spent uris.

Also avoid copying the uri std::strings around during dupe checking,
usually resulting in better performance regarding CPU and space.
2013-06-10 00:58:28 +02:00
Tatsuhiro Tsujikawa
ca7c63aa7e Update doc 2013-06-09 12:59:54 +09:00
Tatsuhiro Tsujikawa
e8b27b7017 libaria2.rst: Fix typo 2013-05-28 23:45:29 +09:00
Tatsuhiro Tsujikawa
232d31afaf Add test for recent changes in SessionSerializer 2013-05-28 22:59:54 +09:00
Tatsuhiro Tsujikawa
d444a6cc9e Make getOption RPC method return option for stopped downloads 2013-05-28 22:55:09 +09:00
Tatsuhiro Tsujikawa
fde376efbc SessionSerializer: Save spent URIs as well as remaining ones 2013-05-28 21:44:17 +09:00
Tatsuhiro Tsujikawa
7669c72d03 Add unittest for DownloadResultDH 2013-05-27 22:04:44 +09:00
Tatsuhiro Tsujikawa
e4bf9b9cc5 Implement DownloadResultDH::getOption()/getOptions() 2013-05-27 21:45:33 +09:00
Tatsuhiro Tsujikawa
dc8ed34cb0 Update pre compiled build README 2013-05-26 16:17:12 +09:00
Tatsuhiro Tsujikawa
3616b75e8a Fix redeclaration warning on opensolaris 2013-05-26 16:15:57 +09:00
Tatsuhiro Tsujikawa
91e0fdbc24 Remove clean-local not to remove generated man pages with make clean
Because we don't require sphinx-doc to build distributed archive, the
man pages are generated when making distribution. And We want to keep
the generated man pages with `make clean` there.
2013-05-26 01:14:00 +09:00
Tatsuhiro Tsujikawa
ce9eec5cb2 Include winsock2.h before windows.h 2013-05-25 23:28:28 +09:00
Tatsuhiro Tsujikawa
e760b3bd6e Fix compiler warning with openssl 2013-05-25 23:27:56 +09:00
Tatsuhiro Tsujikawa
84769bce57 Fix compile error without message digest support 2013-05-25 22:38:57 +09:00
Tatsuhiro Tsujikawa
bc3b162569 Remove open_ member from BufferedFile and GZipFile
Just checking fp_ is sufficient.
2013-05-23 23:28:08 +09:00
Tatsuhiro Tsujikawa
b0799b6e46 Introduce IOFile abstract class to refactor BufferedFile and GZipFile
IOFile provides the same interface of old BufferedFile. It provides
extension points as pure virtual functions. Those functions are
implemented by 2 concrete subclasses: BufferedFile and GZipFile.
2013-05-23 23:12:32 +09:00
Tatsuhiro Tsujikawa
6c0fa43fa5 Update doc 2013-05-23 21:18:54 +09:00
Tatsuhiro Tsujikawa
db1106101d Fix compile error without bittorrent support 2013-05-23 00:46:08 +09:00
Tatsuhiro Tsujikawa
b9436e4d12 Fix uninitialized values 2013-05-23 00:45:50 +09:00