Commit Graph

1013 Commits

Author SHA1 Message Date
arvidn 9344dcc9b1 update make_torrent example to support controlling tracker tiers 2020-02-03 10:03:04 +01:00
arvidn af12f5d6b8 keep peer list sorted in client_test 2020-01-11 19:11:42 +01:00
arvidn 4d28ad0fea add feature to client_test to print the local IP for peer connections (for multi-homing) 2020-01-09 21:34:35 +01:00
arvidn 78aefcc806 fix deprecation warnings for deprecated classes 2019-11-27 12:15:59 +01:00
Arvid Norberg 76f53297a9 update appveyor image and boost version. explicitly use python2 for test scripts (as the SSL behavior has changed in python 3 in non-trivial ways) 2019-11-19 01:46:39 +01:00
arvidn 592544f30f fix some PVS studio warnings 2019-11-07 16:38:08 +00:00
arvidn ca7e20fe5f fix type of allocation_mode in client_test 2019-10-31 10:30:01 +01:00
Pavel Pimenov a6baefa197 client_test: add set_torrent_params 2019-10-31 07:37:30 +01:00
Arvid Norberg 08b6a112c0 fix the asserts=on and invariant-checks=on default build. Right now you can't change them in debug builds. Just make those defaults when building tests and examples. Also enable debug-iterators by default in tests and examples 2019-09-16 00:21:53 -06:00
arvidn f995c68377 restore client_test feature to exit after a specified number of loops (useful for automated tests) 2019-09-13 22:42:20 +02:00
arvidn b2c3b4dbf8 add spaces around user defined literal suffix operators 2019-08-21 14:23:46 +02:00
Arvid Norberg 196588c7b8 add torrent_info constructor overloads to control torrent file limits 2019-07-20 18:14:19 -07:00
arvidn 82900c441c remove redundant virtual in custom_storage.cpp 2019-02-20 09:47:55 +01:00
arvidn 7f2a78d0c9 make random_shuffle() take a range instead of two iterators. use random_bytes() instead of std::generate() and random_byte(). Remove unused hasher.hpp includes 2019-02-19 01:48:08 +01:00
arvidn f67fb0850f fix example of custom storage 2019-02-19 01:47:12 +01:00
arvidn e08dc0b21d use std::array<> and span<> in torrent_view and correct snprintf() usage 2019-02-18 13:48:34 +01:00
arvidn a24afe8524 consistently use lt namespace in examples and documentation 2019-02-13 18:13:55 +01:00
arvidn adeceb4b92 fix deprecation macro and auto in client_test 2019-01-12 23:24:41 +01:00
arvidn f4f1425115 use UNC paths pervasively on windows 2019-01-12 21:00:40 +01:00
arvidn 8b067310b1 merged RC_1_1 into master 2019-01-12 00:53:45 +01:00
Alden Torres c128afeebf update minimum boost to 1.58, using xenial in travis 2019-01-11 02:04:52 +01:00
arvidn c6128e31c1 add option to enable uTP logging to client_test, to simplify using it for uTP trouble-shooting 2019-01-07 01:26:31 +01:00
arvidn 7e13b34158 fix build i2p=on,off configurations 2018-12-07 13:36:53 +01:00
arvidn 3c29f6750a make client_test more robust in exiting if stdin is closed by caller 2018-11-26 18:58:11 +01:00
arvidn 7a615695bc update run_benchmark.py 2018-11-25 12:19:21 +01:00
arvidn eab1055938 more warnings on appveyor 2018-11-18 11:49:45 +01:00
arvidn 5383854768 make span's and sha1_hash's index and size types signed (instead of unsigned). Specifically std::ptrdiff_t. In line with the direction of gsl span and reduce signed->unsigned casts 2018-11-16 14:06:22 +01:00
arvidn 6be8b395da some cleanup turning memcmp() and memcpy() into span comparisons and std::copy(). some more use of random_bytes() instead of loops. 2018-11-05 18:52:45 +01:00
Eugene Shalygin ba294e6594 cmake: backport changes from the master branch
This fixes generated pkg-config file and adds options to build python
bindings.
2018-10-31 00:17:36 +01:00
arvidn c57b3be4cc more lgtm fixes 2018-10-20 16:30:06 +02:00
Steven Siloti deada93460 client_test: fix assert when adding a magnet link 2018-10-14 11:10:25 +02:00
Arvid Norberg 9758d2f08f general cleanups of build files. Specifically to fix the propagation properties of _WIN32_WINNT, include missing CMake files in the tarball, and fix some risky ABI altering properties in CMake files 2018-10-12 10:06:59 +02:00
arvidn c3a22b90b3 fix more warnings in examples and tools 2018-10-11 14:28:32 +02:00
arvidn 7ff692690b fix warnings in tests and examples 2018-10-10 20:49:07 +02:00
arvidn 2d99e994c3 make throwing versions of read_resume_data 2018-10-07 12:41:53 +02:00
arvidn e612fee995 fix building tarball 2018-10-07 09:23:39 +02:00
arvidn c437a24d78 renamed debug_notification to connect_notification 2018-09-28 17:28:34 -07:00
arvidn 6c4d1b9143 back-port the patch to split up the progress_notification alert_mask into three new categories, file-, piece- and block progress 2018-09-24 08:52:30 -07:00
Arvid Norberg b90564d418 remove the IPv6 enable/disable build config 2018-08-19 22:20:54 +02:00
arvidn b7adf89f55 make client_test able to include connection attempts in peer list 2018-08-08 15:45:09 +02:00
arvidn 51fb1e3d6b tweak the auto-cache-size logic to have slightly smaller cache 2018-08-06 14:06:32 +02:00
arvidn eae4307da2 in client_test, print the number of pieces downloaded in the torrent list, and improve printing of padfiles in file list 2018-08-05 16:25:03 +02:00
arvidn c2ebae7dbb make metric_type_t an enum class, deprecate the in-class enum values 2018-07-24 15:29:56 +02:00
arvidn 37a6a47ea3 minor cleanups around saving resume data 2018-07-12 08:38:53 +02:00
arvidn ca7313580e merged RC_1_1 into master 2018-06-16 17:47:32 +02:00
arvidn af686a3819 add switch to client_test to log session stats 2018-06-16 17:42:34 +02:00
arvidn 5530793c75 improve the API for iterating over all files and pieces, with the new strong index types. 2018-06-12 11:44:29 +02:00
Andrew Resch 596d98cac4 Clean-up python code (#3075)
lint and enforce python code formatting
2018-06-12 11:43:13 +02:00
Steven Siloti 396c5dd3af remove use of deprecated function readdir_r
Ports 140b8ace onto RC_1_1 branch
2018-05-28 16:06:41 +02:00
Eugene Shalygin e15077fc3f Fix pkg-config branch in the example CMake find module
1. The imported target properties may not contain -D switches in the
INTERFACE_COMPILE_DEFINITIONS property, because CMake will always
prepend them to each item. Therefore we have to remove those switches
and also pass other options (e.g. -fexceptions) in INTERFACE_COMPILE_OPTIONS
property, otherwise CMake creates "mutants" '-D-fexceptions' alike.

2. FindOpenSSL.cmake variable for include directory is
OPENSSL_INCLUDE_DIR, not OPENSSL_INCLUDE_DIRS.
2018-05-27 23:01:22 +02:00