Commit Graph

108 Commits

Author SHA1 Message Date
xavier2k6 790b6629f6 Fix some typos 2024-09-29 14:13:46 +02:00
luzpaz 63373cf012 Fixes various typos
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn bc2dc837b3 fix generate-test-torrents feature of connection_tester 2022-12-31 15:18:08 +01:00
ntfs.hard a58400b3fb Clarify printf argument flags 2022-10-22 22:15:28 +02:00
arvidn 25104f5863 improve error messages in connection_tester 2022-09-18 21:42:04 +02:00
arvidn c17b59988a extend create_torrent object with piece_range(), end_piece() and total_size() 2022-09-18 17:13:08 +02:00
arvidn 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidn b075fdf76e fix checking benchmark 2022-05-16 15:06:11 +02:00
arvidn eedb63d35c fix bug in connection_tester 2021-06-15 01:31:51 +02:00
arvidn 3c48589101 fix warning in connection_tester.cpp 2021-01-03 15:25:58 +01:00
arvidn 5935f63ead update copyrights 2020-09-01 05:14:17 -07:00
arvidn 5308c5c9b5 fix warnings in connection_tester 2020-08-25 07:20:17 -07:00
arvidn 6377deeaa3 merge RC_1_2 into RC_2_0 2020-08-04 22:35:30 +02:00
arvidn 16af752a06 add ability to add trackers to test torrents in connection_tester 2020-08-03 03:48:45 -07:00
Arvid Norberg b4ed5dd26b fix thread-safety issue in connection_tester 2020-06-10 16:40:12 -07:00
arvidn cb5af0e0d0 fix connection_tester gen-torrent to support pad files 2020-06-07 11:14:28 -07:00
arvidn e637a289ef fix connection_tester gen-data feature to work with new disk interface 2020-06-07 11:14:28 -07:00
arvidn 6e9f05ab9f restore info_hash() API and name the v2 API info_hashes() 2020-05-30 14:00:24 +02:00
arvidn 76deb4bc53 merged RC_1_2 into master 2019-11-19 08:33:23 +01:00
arvidn 592544f30f fix some PVS studio warnings 2019-11-07 16:38:08 +00:00
arvidn ea7ab336dd merged RC_1_2 into master 2019-09-02 00:57:19 +02:00
arvidn 07971cd3e5 unify the internal namespace to be called aux, not detail 2019-08-29 00:15:07 +02:00
arvidn d3f7a363c2 update copyright year 2019-08-29 00:13:04 +02:00
Steven Siloti 86be4287d3 add info hash type 2019-08-10 09:28:38 -07:00
Steven Siloti 1a7ccf240f generate v2 metadata 2019-08-10 09:28:38 -07:00
arvidn d140d1e20d update addresses 2019-02-11 20:19:08 +01:00
arvidn d0e95ea698 replace io_service with io_context 2019-02-11 20:19:08 +01:00
arvidn a8979d1416 move disk_io_thread declaration into cpp file 2019-01-20 18:29:42 +01:00
arvidn 8305c40d6a make disk_interface the customization point for storage, rather than storage_interface
remove the disk cache
remove trim_cache disk job
remove zero-storage
mark default_storage_constructor as deprecated
remove storage_interface
remove file_pool and default_storage_constructor. update connection_tester to use disk_io_thread.
only ftruncate files once
optimize hashing, by running sha1 directly on the memory mapped file
use boost-multi_index in file_view_pool
remove flush_piece and flush_hashed, simplify job-fence logic, remove prep_read_job_impl
support noatime
split out mmap implementation into a .cpp file
support hashing of content in part files. wraps up new disk storage
remove flush_piece disk job
separate out store_buffer into its own class
pass session_settings into storage operations instead of assigning a pointer in the storage object
use unordered_map in store_buffer
add fopen-based disk io back-end for non-64 bit systems or systems without mmap
factor out open_mode_t into its own header
first stab at windows memory mapped files support
build all of boost for autotools
remove flag in async_read callback handler
remove old open_mode_t, preadv/readv and coalesce buffers
support sparse and no_cache file flags in mmap
Remove use of overlapped I/O because we're no longer doing any scatter/gather syscalls the use of overlapped is an unnecessary complication.
don't explicitly specify global read and write. On MINGW we need to use libtorrent::read and libtorrent::write instead of the MINGW provided ::read and ::write.

If the underlying file is empty then m_mapping is expected to be null.
It is the caller's responsibilty to notice that the region's size is
zero and not dereference it in that case.

Otherwise there is no good way for users of default_storage::open_file
to determine that the opened file is empty.
2019-01-20 18:29:42 +01:00
Alden Torres c128afeebf update minimum boost to 1.58, using xenial in travis 2019-01-11 02:04:52 +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
arvidn 7ff692690b fix warnings in tests and examples 2018-10-10 20:49:07 +02:00
Arvid Norberg b90564d418 remove the IPv6 enable/disable build config 2018-08-19 22:20:54 +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
Alden Torres 9b1e79660f removed unnecessary parentheses around min/max, added some const modifier (#2926) 2018-04-11 15:19:00 +02:00
arvidn a0a63341c7 fix haiku build 2018-02-04 19:10:43 +01:00
arvidn a50579c651 merged RC_1_1 into master 2018-01-27 09:41:54 +01:00
arvidn cc93f8f3a7 add switch to create pad files in test torrents in connection-tester 2018-01-27 09:17:23 +01:00
arvidn 6785046c2f introduce a download_priority_t type, for uniform an type-safe piece- and file priorities 2017-11-02 08:20:21 +01:00
arvidn c4afb5e949 use a dedicated class template for flags types instead of enum class. It's more backwards compatible and improves ergonomics 2017-07-15 01:15:57 -07:00
arvidn aa842948a3 storage_params cleanup 2017-06-20 10:27:28 -04:00
arvidn ffaabd846c make file open mode flags be an enum class for type-safety 2017-05-28 11:16:59 -04:00
arvidn 7b9ada7a95 make connection_tester generate_block take a span 2017-05-05 12:27:00 -04:00
arvidn 749d0da875 make iovec_t an alias for span<char>, in preparation for removing it altogether in favour of span 2017-04-30 11:49:08 -04:00
arvidn d138f02424 introduce lt namespace alias 2017-04-23 23:43:58 -04:00
arvidn 51c42adc3e steps towars making file_pool private to disk_io_thread 2017-04-07 08:38:35 -04:00
arvidn 1dd0e9b280 use string_view instead of strcmp 2017-03-18 15:54:38 -04:00
Arvid Norberg 94effa6ba7 improve parallelism of connection_tester gen-torrent (#1805)
improve parallelism of connection_tester gen-torrent
2017-03-11 19:03:19 -05:00
Arvid Norberg 3d06371f31 factor out some common storage utilities out of storage.cpp (#1515)
factor out some common storage utilities out of storage.cpp
2017-01-11 00:42:10 -05:00