Commit Graph

11190 Commits

Author SHA1 Message Date
arvidn e0c1b3403c add header guards to ConvertUTP.h and fixedint.h 2018-11-12 17:56:16 +01:00
arvidn 8d40cf6227 remove redundant MTU boundary checks 2018-11-12 14:08:00 +01:00
Eugene Shalygin 9b9ed6ad60 cmake: strip directories and library prefixes for pkg-config
Replace full library names with -L commands and -llib-name pairs. This
way it resembles what autotools produce and additionally -l can not be
used with GNU linker and full paths (as it prepends "lib" to such
arguments).
2018-11-12 09:09:26 +01:00
arvidn f6e5007044 add include guards to assert.hpp 2018-11-12 08:55:23 +01:00
arvidn ffdd34a41a add include guard to puff.hpp 2018-11-12 08:54:56 +01:00
arvidn b731764c85 remove unused variables 2018-11-12 08:54:31 +01:00
silver 2087dbc05a added CMakeLists.txt.user to gitignore 2018-11-11 14:05:13 +01:00
arvidn a7f345aa0d split out cmake build on appveyor 2018-11-10 15:17:57 +01:00
arvidn 28d123ef23 factor out duplicate code in choker 2018-11-10 15:17:57 +01:00
arvidn 69485558ef factor out duplicate code in piece_picker, upnp and lazy_bdecode 2018-11-10 15:17:57 +01:00
arvidn 9d26f4f96c fix asio-debugging build of dht test 2018-11-09 16:39:39 +01:00
arvidn 30706adfb7 convert classic for-loops to range-for loops. revert use of CHAR_BIT macro (we use fixed width types, not char) 2018-11-08 13:48:20 +01:00
pavel.pimenov 0ad3bb139d fix cppcheck 2018-11-08 13:45:41 +01:00
David Refoua 82ca0adc66 update projects.rst info on qBittorrent
* update projects.rst info on qBittorrent
* fix small misspellings and typos
* add new missing words
2018-11-08 08:46:13 +01:00
arvidn a06a78ee1c fix of asio-debugging build in natpmp. resend_request could be called directly, not only as a handler for an async operation 2018-11-08 08:40:54 +01:00
arvidn e2f8bce539 add tests for low level I/O functions, read_* and write_*. also turn some raw for loops into range-for loops in the I/O functions 2018-11-07 14:35:30 +01:00
arvidn 1f9e74f40d merged RC_1_1 into master 2018-11-06 23:57:04 +01:00
Arvid Norberg cec300234c fix move_storage with save_path with a trailing slash 2018-11-06 23:46:18 +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
arvidn a0fa0b14bb merged RC_1_1 into master 2018-11-04 19:12:22 +01:00
arvidn 117ca9c6b1 use variatic templates in python binding 2018-11-03 18:32:40 +01:00
arvidn 3988be348f simplify SFINAE on write_impl to just use enable_if 2018-11-03 11:57:16 +01:00
arvidn bf496c6b14 use span for picker_log_alert 2018-11-03 11:56:09 +01:00
arvidn 014533da12 regenerate test SSL certificate 2018-11-03 01:49:10 +01:00
Arvid Norberg 939b380fda fix build against boost-1.69 2018-11-02 11:10:26 +01:00
Arvid Norberg 5b5b280b87 only make snubbed peers invert the piece picking strategy when we're doing rarest first (i.e. snubbed peers do common-first). Specifically, this prevents snubbed peers from picking from the end of the torrent when in sequential mode 2018-11-01 12:01:02 +01:00
arvidn d0e146eb75 merged RC_1_1 into master 2018-11-01 09:48:41 +01:00
Eugene Shalygin 89a6e3cf7a cmake: allow selecting C++ standard version during build
Also moves helper functions into a module file and replaces JOIN
generator expressions with list(TRANSFORM) commands in order to get
the correct sources list at the configure stage.
2018-10-31 00:24:41 +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
Arvid Norberg e1eb12e60f ssl listen port fix and improved tracker announce logging 2018-10-29 18:38:14 +01:00
arvidn a3eed212a1 fix warning in clean.py 2018-10-26 10:25:02 +02:00
pavel.pimenov b00ce69d58 remove params.url.clear(); 2018-10-25 09:49:38 +02:00
Arvid Norberg a5da48edd4 add missing boost/noncopyable include 2018-10-25 09:47:21 +02:00
Amir Abrams 88266edd43 Update comment in put_mutable_item
Trivial update to a comment in put_mutable_item.
2018-10-24 13:13:20 +02:00
arvidn 3fb05d77d8 fix warnings 2018-10-20 20:56:26 +02:00
arvidn 36801fb96f add some const 2018-10-20 16:30:48 +02:00
arvidn 6eb05e4842 fix typos and run hunspell on more documentation 2018-10-20 16:30:30 +02:00
arvidn c57b3be4cc more lgtm fixes 2018-10-20 16:30:06 +02:00
arvidn 9463159e67 merged RC_1_1 into master 2018-10-20 00:22:10 +02:00
Arvid Norberg 12c52e8751 back-port the fix from the lgtm fixes in master 2018-10-19 19:40:17 +02:00
Gabor Szelcsanyi da58e0cbd1 Update streaming.rst
Fix some typo.
2018-10-19 19:39:41 +02:00
Kiss Áron 06597a5d30 Fix typo in docs/client_test.rst 2018-10-19 18:54:52 +02:00
Arvid Norberg cf83ab1f0e fix sonar-scanner typo in .travis 2018-10-19 18:02:52 +02:00
Arvid Norberg ede7dbf0aa add LGTM badge to README and fix warnings 2018-10-19 16:28:33 +02:00
Eugene Shalygin 911e4a892b cmake: remove $<LINK_ONLY:...> expressions from INTERFACE_LINK_LIBRARIES
When torrent-rasterbar is built a static library, CMake supplies link
dependencies inside the LINK_ONLY generator expressions. But pkg-config
does not support such operational mode, and thus we can safely replace
those expressions with the library names. Closes #3354.
2018-10-18 08:26:01 +02:00
arvidn 3b32c90dde fix gcrypt build 2018-10-17 10:14:14 +02:00
arvidn 269f0c5fb8 properly tear down the disk_io_thread object in set_piece_hashes() when exiting via an exception 2018-10-16 22:54:25 +02:00
arvidn 5bf8e15894 include installation instructions in build documentation 2018-10-16 16:02:00 +02:00
Eugene Shalygin f0ea99ab88 Correct build instructions for cmake 2018-10-14 18:39:24 +02:00
Steven Siloti deada93460 client_test: fix assert when adding a magnet link 2018-10-14 11:10:25 +02:00