Commit Graph

4041 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
0b1e05b13b Fix compile error 2013-06-27 00:20:48 +09:00
Tatsuhiro Tsujikawa
da7400ef5c Return std::unique_ptr member as const ref
Returning raw pointer has a risk that it may be stolen by
std::shared_ptr in accident.
2013-06-26 23:56:43 +09:00
Tatsuhiro Tsujikawa
47402c5f29 Refactor HttpConnection and its neighbor objects 2013-06-26 23:19:15 +09:00
Tatsuhiro Tsujikawa
d485c8e767 Rewrite AuthConfig objects using std::unique_ptr 2013-06-26 21:45:29 +09:00
Tatsuhiro Tsujikawa
a4cf50914d HttpRequest: Use raw non-owning pointer for cookieStorage_ 2013-06-25 23:01:00 +09:00
Tatsuhiro Tsujikawa
4803482a51 HttpRequest: Store non-owning raw pointer for authConfigFactory_ 2013-06-25 22:06:29 +09:00
Tatsuhiro Tsujikawa
6bcf33a69e Fix compile error with clang 2013-06-25 02:57:48 +09:00
Tatsuhiro Tsujikawa
2761301dfb Rewrite util::divide 2013-06-25 00:07:15 +09:00
Tatsuhiro Tsujikawa
2f6eff3821 download_helper: Cleanup 2013-06-24 23:49:49 +09:00
Tatsuhiro Tsujikawa
b364c2436b toUpper, toLower: Let compiler copy src 2013-06-24 23:23:34 +09:00
Tatsuhiro Tsujikawa
a159cc96fb Update README.rst 2013-06-24 22:00:27 +09:00
Tatsuhiro Tsujikawa
10cdc59297 Remove vbegin and vend in favor of std::begin and std::end 2013-06-24 21:46:42 +09:00
Tatsuhiro Tsujikawa
d2ec57057e HttpServer: Use std::unique_ptr for lastBody_ and headerProcessor_ 2013-06-23 23:44:38 +09:00
Tatsuhiro Tsujikawa
fba7e7ee8b Use move to send string data into SocketBuffer::pushStr 2013-06-23 23:31:07 +09:00
Tatsuhiro Tsujikawa
508109edbb SocketBuffer: Use std::unique_ptr to store BufEntry 2013-06-23 23:06:12 +09:00
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