Commit Graph

670 Commits

Author SHA1 Message Date
Alden Torres 84e735c0ea refactor for more use of move with settings_pack (#1162) 2016-09-28 13:28:43 -04:00
Arvid Norberg 97c6a75084 add proper error handling to peer connections and session (#1149)
add proper error handling to peer connections and session. i.e. catch exceptions in asio handlers and catch by const reference
2016-09-25 09:50:48 -04:00
Alden Torres 4c53d7b2da refactor to use std unordered containers and minor cleanup (#1070) 2016-09-06 23:37:36 -04:00
Arvid Norberg 5f5589d137 deprecate and remove remote_dl_rate feature (#1051)
deprecate and remove remote_dl_rate feature
2016-09-01 09:43:08 -04:00
Arvid Norberg 8f7901dd25 build with warnings as errors in autotools build on travis (#1013)
build with warnings as errors in autotools build on travis
2016-08-19 01:05:43 -04:00
Alden Torres bb388563b3 refactor to use torrent_info with std::shared_ptr (#1006) 2016-08-17 17:26:35 -04:00
Arvid Norberg bc8c49dc15 make file_status return the vector instead of taking an out-parameter (#1000)
make file_status return the vector instead of taking an out-parameter
2016-08-14 13:11:59 -04:00
Arvid Norberg e36e5efaba use boost::string_ref (#996)
use boost::string_ref/boost::string_view in various parts of the code, in file_storage, some file functions and in bdecode.
2016-08-13 07:04:53 -04:00
Arvid Norberg 1bae47479b make settings_pack moveable (#982) 2016-08-05 00:28:03 -04:00
Arvid Norberg 8c03718117 apply modernization transforms to headers too. nullptr, explicit constructors, = default (#903) 2016-07-10 14:27:42 -04:00
Arvid Norberg c3432aedd9 move constructor arguments into members (#902) 2016-07-10 10:03:49 -04:00
Arvid Norberg a740a49fd6 modernize misc (#898)
modernize misc
2016-07-10 07:34:45 -04:00
Arvid Norberg e801d2e6de modernize replace deprecated headers (#897) 2016-07-09 23:17:55 -04:00
Arvid Norberg 770935cd46 modernize-use-nullptr (#894) 2016-07-09 16:26:26 -04:00
Arvid Norberg c567a66f5e simplify peer_connection's read handlers and the receive buffer. (#853)
simplify peer_connection's read handlers and the receive buffer. removed the concept of soft-packet-size. removed the secondary null-buffer receive path. removed try_read. simplify the buffer class to not be resizeable. make receive_buffer shrink the buffer allocation. add cap to growing the receive buffer. buffer sizes are always divisible by 8.
2016-06-26 20:41:03 -04:00
Arvid Norberg 6aabe3762b general modernization (#836)
general modernization. use nullptr instead of NULL, use std::tuple instead of boost::tuple, transition some unordered set/map from boost to std. some clean-up of includes
2016-06-20 11:32:06 -04:00
Arvid Norberg ed077c8358 use cstdint intead of boost/cstdint.hpp (#833)
use cstdint intead of boost/cstdint.hpp
2016-06-18 14:01:38 -04:00
Arvid Norberg 53c9b7ad25 restore some accidental removal in client_test from previous patch (#812) 2016-06-13 00:06:15 -04:00
arvidn b3942a08fa fix issue in client_test 2016-06-04 21:35:12 -04:00
Arvid Norberg 8c8f5bb03b deprecated public to_hex() and from_hex() functions (#784) 2016-06-04 10:01:43 -04:00
arvidn 420b5f51e6 merged RC_1_1 into master 2016-05-27 12:35:53 -07:00
Arvid Norberg 96999ad67f replace uses of boost::bind with std::bind and lambdas (#745) 2016-05-25 00:31:52 -04:00
arvidn 98eabc63e9 using _WIN32 appears safer than WIN32 2016-05-23 23:02:52 -04:00
Arvid Norberg 748af6eec1 general cleanup. remove valgrind markup, log_hash_failures and C headers (#752)
general cleanup. remove valgrind markup, log_hash_failures and C headers
2016-05-23 08:15:39 -04:00
Arvid Norberg e8380e1d0b factor out includes from config.hpp into the files actually using it. primarily, printf family of functions, since C++11 version is used now. This removes the need for an snprintf-wrapper on windows (#732) 2016-05-17 09:24:06 -04:00
Arvid Norberg c91a700c07 Msvc warnings (#685)
fix msvc warnings and build examples with warnings-as-errors
2016-05-02 12:36:21 -04:00
Andrei Kurushin 62eb956c54 fix x64 build with VS2015 UP2 compiler (#640)
fix VS2015 compiler warnings for: address-model=64, deprecated-functions=on, link=shared
2016-04-25 17:22:09 -04:00
Andrei Kurushin c41ab094be fix release build with VS2015 UP2 compiler warnings for: examples, test, tools (#627)
fix release build with VS2015 UP2 compiler warnings for: examples, test, tools
2016-04-20 00:45:32 -04:00
arvidn b446fe4bba deprecate settings_pack::hashing_threads and replace it with aio_threads in documentation 2016-03-18 16:40:52 -04:00
arvidn 5c360247b6 move piece_bar into print.cpp in client_test. make client_test take arbitrary libtorrent settings 2016-03-17 08:19:11 -04:00
arvidn f79a9c7adf merged RC_1_1 into master 2016-03-16 19:59:53 -04:00
arvidn c9c401d15c add piece matrix to client_test 2016-03-13 19:13:38 -04:00
arvidn 6d85c7c5f0 merge RC_1_1 into master 2016-03-08 01:10:48 -05:00
arvidn 442979c318 support filtering which parts of session state are loaded by load_state() 2016-03-06 16:35:49 -05:00
arvidn adf56344e6 add interactive option to toggle use of disk cache to client_test 2016-03-06 16:15:17 -05:00
arvidn 8ca76f9d59 fix support for auto disk cache size and disk buffer pool allocator behavior 2016-03-06 16:14:55 -05:00
arvidn 2e7e679eed simplify client_test shutdown and make it keep logging as saving resume data 2016-03-03 01:20:15 -05:00
arvidn 021375c07f extend tutorial and finish bt-get example 2016-02-28 15:44:59 -05:00
arvidn 296a38efba improve windows output of client_test 2016-02-27 19:40:04 -05:00
arvidn 0e805d7d06 fix client_test for new read_resume_data functionality 2016-02-22 00:23:31 -05:00
arvidn a725a3ded2 make client_test use the new read_resume_data function 2016-02-20 13:26:16 -05:00
arvidn 9f45156b5a Merge branch 'RC_1_1' 2016-02-18 21:46:46 -05:00
arvidn a675a749e0 remove 'full' allocation from client_test 2016-02-18 20:42:15 -05:00
arvidn b2a6e8bf06 make client_test expose the new binding options 2016-02-12 15:46:24 -05:00
arvidn 645b121df6 deprecate resolve-countries 2015-12-14 21:32:30 -05:00
arvidn 60df41cd85 fix save_resume_data in client_test and make torrent a bit more instrumentable. This could be greatly simplified if resume data would not have file_sizes and timestamps 2015-11-29 20:31:57 -05:00
arvidn fd3b53604c add new piece picker logging alert category 2015-11-29 08:25:55 -05:00
arvidn 06b648203f clean up use of error categories 2015-11-24 00:50:51 -05:00
arvidn 5c96a35a66 scanf fix in client_test 2015-10-04 10:57:12 -04:00
arvidn b628692223 separate out announce_entry and torrent_status into their own headers 2015-09-18 08:08:08 -04:00
arvidn 3018546b37 fix warning 2015-08-22 01:22:04 +02:00
Chocobo1 b743ef44e9 Pass std::string directly 2015-07-11 15:49:47 +08:00
Mikhail Titov bef92dc179 Fix default SAM port 2015-06-24 19:41:41 -05:00
arvidn 5e5e31cf9a fix test privacy to not destruct session, potentially, after other global destructors 2015-06-10 21:10:22 -04:00
arvidn 0369caae67 make client_test to not use a deprecated session constructor 2015-06-07 13:52:19 -04:00
Arvid Norberg 85d1d9c85e fix bug in piece printing in client_test 2015-05-30 06:11:41 +00:00
Arvid Norberg f1c998c1ef merged changes from RC_1_0 2015-05-26 19:10:49 +00:00
Arvid Norberg 09bc072c31 inactive/auto managed fixes. fix client_test key input 2015-05-26 18:39:49 +00:00
Arvid Norberg 5e07ff857e remove residual geoip cruft 2015-05-11 00:49:34 +00:00
Arvid Norberg b60934288b turn DHT logging into alerts instead of writing to a file 2015-05-10 04:54:02 +00:00
Arvid Norberg b417f2ba98 merged fix from RC_1_0 2015-05-03 02:56:46 +00:00
Arvid Norberg ab0c97755e merged fixes from RC_1_0 2015-04-29 05:48:09 +00:00
Arvid Norberg 8aa3c22796 fix coverity issues 2015-04-29 04:05:29 +00:00
Arvid Norberg f0336017d1 fix gcc warnings and missing header files in makefiles 2015-04-26 00:51:44 +00:00
Arvid Norberg 013ed36f09 landed alert_queue feature branch into trunk 2015-04-03 20:15:48 +00:00
Arvid Norberg 58aa4e5ae7 fix build now that libtorrent::sleep is gone 2015-03-15 00:32:55 +00:00
Arvid Norberg 6c1df7eb55 landed the bdecode branch in master. lazy_bdecode/lazy_entry is now being replaced by bdecode/bdecode_node 2015-03-12 05:20:12 +00:00
Arvid Norberg c1dc982f4f deprecate the ptime type and related time types. just use boost::chrono / std::chrono 2015-03-12 04:34:54 +00:00
Arvid Norberg 91270a0c2b make operation_t public and document it. include peer disconnects in client_test log 2015-02-15 05:17:09 +00:00
Arvid Norberg e15e5fd80a expand unit tests 2015-02-14 06:14:15 +00:00
Arvid Norberg 1e80629770 make printing of file progress more compact in client_test 2015-02-08 21:59:52 +00:00
Arvid Norberg 266760b70b improve client_test output 2015-02-08 03:24:56 +00:00
Arvid Norberg aa9647b5d0 fix client_test build 2015-01-19 04:46:06 +00:00
Arvid Norberg 58d93e5aa1 add new (non-deprecated) access to dht stats, asynchronously via an alert 2015-01-17 17:02:58 +00:00
Arvid Norberg a7add1787f the piece bar is no longer optional in client test 2015-01-15 07:30:51 +00:00
Arvid Norberg 05f8569f9f don't rely on internal utf8 functions from libtorrent 2015-01-08 18:19:35 +00:00
Arvid Norberg 774c3b536a fix winows build 2015-01-07 16:47:37 +00:00
Arvid Norberg 35b41858cf deprecated session_status and session::status() in favor of performance counters 2015-01-04 21:31:02 +00:00
Arvid Norberg 21d1f6f649 more dynamic link build fixes 2015-01-02 11:11:09 +00:00
Arvid Norberg 5c04eb7d00 fix client_test bug introduced by recent patch 2015-01-01 21:42:55 +00:00
Arvid Norberg c2a05228fd fix dynamic linking (Jamfile and dependencies on internals) 2015-01-01 18:03:56 +00:00
Arvid Norberg f77ba409fa fix typo 2014-12-30 17:05:34 +00:00
Arvid Norberg c443193ce0 add option to client_test to remove web seeds 2014-12-30 16:59:37 +00:00
Arvid Norberg a3d1a493fd disable logging alerts in client_test 2014-12-10 09:45:38 +00:00
Arvid Norberg 0b960615b1 fix another build warning 2014-12-09 09:49:14 +00:00
Arvid Norberg 4eaec6d87f instead of using a fixed request timeout for every peer, have an adaptable one based on the average download time for a block 2014-12-08 17:06:04 +00:00
Arvid Norberg c4e5df8e4d remove the concept of timeout_extend in piece request timeouts. if a request times out, cancel it as soon as it holds up the completion of a piece 2014-12-07 22:22:38 +00:00
Arvid Norberg cc1a4dcdd7 fix examples build 2014-12-03 09:05:09 +00:00
Arvid Norberg 95fbf93e52 apply Steven Siloti's patch to client_test to enable fixed slots choker when specifying the number of unchoke slots 2014-11-30 04:57:54 +00:00
Arvid Norberg f98c7223b2 merged changes from RC_1_0 2014-11-29 01:53:22 +00:00
Arvid Norberg 8b4dcb2959 merged changes from RC_1_0 2014-11-28 04:53:21 +00:00
Arvid Norberg 12a29ea281 client_test print fix 2014-11-24 04:35:52 +00:00
Arvid Norberg 29fb79f60c merged changes from RC_1_0 2014-11-24 04:25:05 +00:00
Arvid Norberg 658e2ceefd merged Steven Siloti's peer crypto patch into trunk 2014-11-23 06:14:47 +00:00
Arvid Norberg 3f61ee0ff3 merged changes from RC_1_0 2014-11-19 09:23:08 +00:00
Arvid Norberg edfa38cd30 merged changes from RC_1_0 2014-11-17 03:41:01 +00:00
Arvid Norberg aae56c991c merged changes from RC_1_0 2014-11-08 16:58:18 +00:00
Arvid Norberg 3742fd2699 merged changes from RC_1_0 2014-11-02 09:41:29 +00:00
Arvid Norberg 34af25beaa merged chagnes from RC_1_0 2014-11-01 22:47:56 +00:00
Arvid Norberg 9338aa6c60 some more refactoring in choker 2014-10-24 00:18:01 +00:00