Arvid Norberg
8c03718117
apply modernization transforms to headers too. nullptr, explicit constructors, = default ( #903 )
2016-07-10 14:27:42 -04:00
Arvid Norberg
a740a49fd6
modernize misc ( #898 )
...
modernize misc
2016-07-10 07:34:45 -04:00
Arvid Norberg
770935cd46
modernize-use-nullptr ( #894 )
2016-07-09 16:26:26 -04:00
Alden Torres
57ad035955
added arm __builtin_clz support and tests running in arm mode ( #854 )
...
added arm __builtin_clz support and tests running in arm mode inside travis
2016-06-26 12:01:42 -04:00
Arvid Norberg
ce00ebf723
simplify and clean up some of torrent_info ( #847 )
...
simplify and clean up some of torrent_info
2016-06-23 11:34:26 -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
8c8f5bb03b
deprecated public to_hex() and from_hex() functions ( #784 )
2016-06-04 10:01:43 -04:00
Arvid Norberg
96999ad67f
replace uses of boost::bind with std::bind and lambdas ( #745 )
2016-05-25 00:31: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
1e7e01c671
transition to system_error as the exception type ( #730 )
...
transition to system_error as the exception type
2016-05-15 00:33:06 -04:00
Arvid Norberg
98fb7df56f
use standard unordered containers ( #673 )
2016-04-30 16:53:20 -04:00
Arvid Norberg
c557432431
attempt to run cppcheck on travis ( #644 )
...
run cppcheck on travis
2016-04-26 18:09:11 -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
7b5d48c02a
fix default release build with VS2015 UP2 compiler warnings ( #624 )
...
* fix default release build with VS2015 UP2 compiler warnings
this will allow to successfully build:
bjam toolset=msvc-14.0 release deprecated-functions=off character-set=unicode link=static warnings-as-errors=on
2016-04-17 16:56:07 -04:00
arvidn
cee2b16949
fix some coverity warnings and move out code to torrent_status.cpp
2016-04-07 21:44:24 -04:00
arvidn
4cbbb0620e
only strip trailing dots and spaces from filenames on windows
2016-01-18 13:07:04 -05:00
arvidn
1f9f588e75
merge copyright year update and changelog from RC_1_0
2016-01-17 18:57:46 -05:00
arvidn
3460f203f3
extend testing of sanitize_append_path_element
2015-12-19 20:11:22 -05:00
arvidn
121b686a39
add set_web_seeds to torrent_info
2015-12-12 18:36:15 -05:00
arvidn
4aaa8ca4a9
silence msvc performance warnings. introduce more override and finals
2015-11-19 23:37:45 -05:00
arvidn
2626159abe
use a consistent random number generator to make simulations deterministic
2015-11-12 00:21:56 -05:00
arvidn
1fa184ba8a
fix msvc-10.0 build
2015-11-07 10:01:01 -05:00
arvidn
f5da27ba9e
support large info-sections in torrent_info
2015-10-31 10:53:39 -04:00
arvidn
3462c061a7
merged error handling fix from RC_1_0
2015-10-31 10:06:15 -04:00
arvidn
b628692223
separate out announce_entry and torrent_status into their own headers
2015-09-18 08:08:08 -04:00
arvidn
eecdd3121d
fix some build warnings
2015-08-17 09:01:43 -04:00
arvidn
16bb2de6ed
fix some warnings
2015-08-13 23:52:25 -04:00
arvidn
225b82d9a0
move test_trackers_extensions over to a simulation and some minor metadata extension and tracker re-announce fixes
2015-08-13 23:07:04 -04:00
arvidn
a81ca2391b
fix some warnings
2015-08-10 20:03:24 -04:00
arvidn
50925d7652
fix some more warnings
2015-08-08 02:48:01 -04:00
Arvid Norberg
d43f7b56a2
update copyright year
2015-06-03 05:18:48 +00:00
Arvid Norberg
c6f8dd408a
optimize recalculate auto-managed
2015-05-25 21:46:42 +00:00
Arvid Norberg
be60dfc0a9
minor whitespace cleanup
2015-05-17 18:59:35 +00:00
Arvid Norberg
12c9d3de26
fix more warnings
2015-05-16 18:35:47 +00:00
Arvid Norberg
f0336017d1
fix gcc warnings and missing header files in makefiles
2015-04-26 00:51:44 +00:00
Arvid Norberg
3bf9fa8fca
move out merkle functions into their own file and test
2015-04-24 06:06:41 +00:00
Arvid Norberg
3951377d95
fix include paths for warning push and pop headers
2015-04-21 01:16:28 +00:00
Arvid Norberg
f5629eb403
cleanup and fixing of more warnings
2015-04-21 00:23:00 +00:00
Arvid Norberg
4fd230dbe5
fix build and some warnings
2015-04-20 00:01:27 +00:00
Arvid Norberg
013ed36f09
landed alert_queue feature branch into trunk
2015-04-03 20:15:48 +00:00
Arvid Norberg
9af3066b56
fix file collision logic in torrent_info
2015-03-21 16:55:23 +00:00
Arvid Norberg
ccc7e45406
landed mutable torrents branch in trunk
2015-03-21 00:12:40 +00:00
Arvid Norberg
794de25212
moved escape_string.hpp into the aux_ directory. moved out the 3 public hex functions into its own public header, hex.hpp
2015-03-14 23:10:20 +00:00
Arvid Norberg
37225b71ae
const static -> static const (thanks gubatron). helps swigs parser
2015-03-14 00:42:27 +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
d49e97afb3
optimized loading and parsing torrents. Specifically detecting duplicate filenames (optimizing the common case of no collisions). Expanded unit test to uncover an unsupported case (not fixed yet). cutting down on memory allocation and copying when parsing torrent files in memory
2015-02-17 02:08:47 +00:00
Arvid Norberg
fe10128d53
fix invalid memory access
2015-01-27 01:09:16 +00:00
Arvid Norberg
bc9281a27c
deprecate file_entry (used by file_storage) and clean up the add_file overload that borrows memory (and improve implementation and documentation). The python bindings were updated to more closely match the c++ API (specifically actually using file_storage)
2015-01-21 15:46:12 +00:00
Arvid Norberg
092362e9bc
remove internal fields from web_seed_entry
2014-12-31 22:05:34 +00:00
Arvid Norberg
20b4608c38
optimize copying torrent_info and file_storage objects
2014-12-17 05:33:16 +00:00
Arvid Norberg
1ed1963f29
remove size_type typedef in favor of boost::int64_t
2014-12-03 04:32:50 +00:00
Arvid Norberg
601f8c0476
merged changes from RC_1_0
2014-11-29 09:12:44 +00:00
Arvid Norberg
edfa38cd30
merged changes from RC_1_0
2014-11-17 03:41:01 +00:00
Arvid Norberg
7351389ce8
land libtorrent_aio branch in trunk
2014-07-06 19:18:00 +00:00
Arvid Norberg
6ef1b98717
merged compiler warning fixes from RC_1_0
2014-07-05 14:10:25 +00:00
Arvid Norberg
5f4f78c383
fix build
2014-06-29 18:54:20 +00:00
Arvid Norberg
b79dd1fee1
fix issue with symlink attributes
2014-06-18 06:20:12 +00:00
Arvid Norberg
2b7bef0f7b
fix support for web servers not supporting keepalive
2014-06-15 18:02:59 +00:00
Arvid Norberg
e225259481
fix some msvc warnings
2014-05-10 03:23:05 +00:00
Arvid Norberg
a943fec777
update copyright
2014-02-23 19:12:25 +00:00
Arvid Norberg
c02159f143
support magnet links wrapped in .torrent files
2014-02-01 03:47:29 +00:00
Arvid Norberg
e0644ce8f5
invariant check macro fixes
2014-01-21 19:26:09 +00:00
Arvid Norberg
dca3f3c1a8
improve SSL error reporting and fix torrent_info::ssl_cert() bug
2014-01-20 01:01:03 +00:00
Arvid Norberg
702b68ecc4
clean up assert related defines and debuf-only fields less error-prone. fix missing initialization in file_pool caused by mistake in defines under which the debug field was initialized
2014-01-19 19:45:50 +00:00
Arvid Norberg
b283d58899
fix some uninitialized members
2014-01-18 06:53:47 +00:00
Arvid Norberg
4e6b1cfbfb
update copyright
2013-12-25 17:07:16 +00:00
Arvid Norberg
444223c2e3
merged fixes from RC_0_16
2013-12-23 01:40:05 +00:00
Arvid Norberg
88e4e0a97b
strip trailing dots and spaces in filenames
2013-12-05 07:40:57 +00:00
Arvid Norberg
bcb703b9a3
improve duplicate file detection in torrent files
2013-11-18 06:59:47 +00:00
Arvid Norberg
fe414878b2
cleanup of ABI breaking configuration options. TORRENT_DEBUG is believed to no longer affect the ABI of libtorrent. introduce a warning in gen_reference_doc.py for when defines are used in public structs. fix build with deprecated functions off
2013-11-17 22:38:37 +00:00
Arvid Norberg
c94ed806db
merged fix from RC_0_16
2013-10-24 07:22:44 +00:00
Arvid Norberg
6542795d0a
improved support for web seeds that don't support keep-alive
2013-10-20 02:40:43 +00:00
Arvid Norberg
1dd5e5128b
fix issue in internal_file_entry when assigning an empty string that's borrowed
2013-10-05 04:18:24 +00:00
Arvid Norberg
9d02b478a6
fix invalid read passed the allocation of peer_info in web_seed_entry
2013-10-04 04:20:50 +00:00
Arvid Norberg
3bd53f88ef
fix build with internal_file_entry being deprecated without deprecated functions
2013-08-12 07:30:57 +00:00
Arvid Norberg
d42e43f61d
fixed deprecation warning
2013-08-09 07:36:07 +00:00
Arvid Norberg
e7db8d37a2
merge deprecation of wstring overloads from RC_0_16
2013-08-02 05:03:22 +00:00
Arvid Norberg
facbf9c178
don't expose load_file as a public function
2013-07-19 21:41:33 +00:00
Arvid Norberg
9803b6a15f
fix build issue when asserts are disabled
2013-06-14 21:11:28 +00:00
Arvid Norberg
50ecb07d19
merged silencing of warnings from RC_0_16
2013-06-14 16:41:47 +00:00
Arvid Norberg
f01169a68d
merged python binding update from RC_0_16
2013-05-03 08:24:26 +00:00
Arvid Norberg
d0c2453f9e
merge fix from RC_0_16
2013-03-25 22:35:52 +00:00
Arvid Norberg
b943a9b057
merged long-name truncation fix from RC_0_16
2013-03-08 09:56:19 +00:00
Arvid Norberg
83f626c18e
fixed test_torrent_parse test
2013-03-05 00:32:57 +00:00
Arvid Norberg
4241e279bd
more torrent parsing unit tests and fixing some previously broken by changes to parse_url_components
2013-02-26 07:32:53 +00:00
Arvid Norberg
a0caa0f4b2
disable invariant_check functions when invariant checks are disabled
2013-02-25 04:13:46 +00:00
Arvid Norberg
775cf5570a
improve unit test coverage and fix handling of some invalid .torrent files and invalid utf-8 sequences
2013-02-25 01:54:38 +00:00
Arvid Norberg
53990f4653
fix build warning
2013-02-24 18:45:30 +00:00
Arvid Norberg
6b3117d872
merged fix from RC_0_16
2013-02-24 18:42:20 +00:00
Arvid Norberg
7b53dd0491
fixed utf-8 verification bug and filename collision resolver
2013-02-24 10:16:57 +00:00
Arvid Norberg
3599b130c0
expand unit tests
2013-02-24 10:02:26 +00:00
Arvid Norberg
7607f20e2a
add per-tracker scrape information to announce_entry
2013-02-04 07:17:31 +00:00
Arvid Norberg
09946aee26
merged fix from RC_0_16
2013-01-31 03:39:14 +00:00
Arvid Norberg
b3ef6011aa
merged merkle torrent creation fix from RC_0_16
2013-01-21 07:33:48 +00:00
Arvid Norberg
a50c6c9121
merged fix from RC_0_16
2013-01-21 05:13:33 +00:00
Arvid Norberg
652bf8323b
prioritize some more todo mark-ups
2013-01-21 01:40:59 +00:00
Arvid Norberg
b81d1bfe08
merged web seed fix from RC_0_16
2012-10-06 17:51:59 +00:00
Arvid Norberg
bff648a89e
update copyright dates and add tool to do so
2012-10-02 03:16:33 +00:00
Arvid Norberg
57769bab11
fix some compiler warnings
2012-06-25 14:17:51 +00:00
Arvid Norberg
3a2916b578
initialize uninitialized members
2012-05-03 02:05:34 +00:00
Arvid Norberg
418c1e8190
make tracker back-off configurable
2012-03-29 03:51:22 +00:00
Arvid Norberg
4d60adcaa9
retry failed trackers a little bit sooner. make the exponential back-off not quite grow as fast
2012-03-24 15:15:36 +00:00
Arvid Norberg
6fcc469aef
support banning web seeds that send corrupt data
2012-03-24 01:29:31 +00:00
Arvid Norberg
cafbf2ca1d
more work on minimizing shared object export symbol table
2012-03-20 03:53:07 +00:00
Arvid Norberg
619c375528
don't inline large functions
2012-03-19 06:06:52 +00:00
Arvid Norberg
fc4f4a9753
fix non-unc build
2012-03-13 04:44:40 +00:00
Arvid Norberg
97b4012685
and actually fix it
2012-03-09 00:23:08 +00:00
Arvid Norberg
f49c6d2d52
fix non UNC paths build
2012-03-09 00:14:30 +00:00
Arvid Norberg
14287b8a7b
use UNC paths on windows by default
2012-02-23 06:46:23 +00:00
Arvid Norberg
679abf2e57
this time, actually remove the encrypted torrent (AES-256 encrypted peer connections)
2012-02-09 06:47:22 +00:00
Arvid Norberg
5a7fe934bf
fix torrent_info swap with openssl
2011-09-21 09:40:14 +00:00
Arvid Norberg
7a50255865
improved struct layout debug logging and optimized some structs
2011-09-21 09:27:07 +00:00
Arvid Norberg
92bcb9ebfd
feature to encrypt peer connections with a secret AES-256 key stored in .torrent file
2011-09-05 05:50:41 +00:00
Arvid Norberg
a286a6b4aa
initial attempt at verifying the certificate of ssl trackers, by including the certificate in the .torrent file
2011-08-28 21:06:15 +00:00
Arvid Norberg
f5d6f885e3
fixed bug in next_announce_in
2011-06-25 19:29:06 +00:00
Arvid Norberg
69bbee8932
fix assert in torrent_info
2011-06-25 17:24:26 +00:00
Arvid Norberg
f6f516bed0
fix file_storage copy constructor (would break python bindings)
2011-06-06 07:47:29 +00:00
Arvid Norberg
4a914852cc
support torrents whose name is empty
2011-06-03 08:48:33 +00:00
Arvid Norberg
1a927787b1
distinguish between an empty name and missing name in torrent files
2011-06-02 22:15:42 +00:00
Arvid Norberg
141ada013f
fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way
2011-02-21 05:24:41 +00:00
Arvid Norberg
c4c1773ceb
fixed some warnings
2011-02-15 10:05:25 +00:00
Arvid Norberg
6663f527da
fixed error handling in torrent_info constructor
2011-01-19 10:07:51 +00:00
Arvid Norberg
83da84452f
fixed bug in remap_files
2011-01-17 08:02:23 +00:00
Arvid Norberg
67d1c57b5e
bumped some limits in dump_torrent
2010-12-11 22:00:20 +00:00
Arvid Norberg
10003f952f
fix build issue
2010-12-09 05:39:28 +00:00
Arvid Norberg
3563ef98df
fixed build error
2010-11-30 03:20:35 +00:00
Arvid Norberg
2e69366b02
reverted part of the file_storage API to match the previous one more closly
2010-11-29 05:44:29 +00:00
Arvid Norberg
894db973e8
optimized memory usage of torrent_info and file_storage
2010-11-24 23:49:22 +00:00
Arvid Norberg
62f8cac2b9
fixed typo
2010-11-15 05:15:43 +00:00
Arvid Norberg
8c404cc5c1
optimized memory usage of torrent_info
2010-11-15 05:10:36 +00:00
Arvid Norberg
a4f533ce55
improve the bencoded printer
2010-11-09 18:13:22 +00:00
Arvid Norberg
618f4dcc01
fix assertion failure with debug iterators when loading empty torrent files
2010-11-02 02:24:57 +00:00
Arvid Norberg
fc1b44b560
improve error reporting of lazy_bdecode to use error_code
2010-10-28 04:01:59 +00:00
Arvid Norberg
72322dbc10
allow extending web seeds with extra headers and custom authorization schemese
2010-10-10 18:43:58 +00:00
Arvid Norberg
d590938856
fixed announce issue
2010-09-11 04:16:29 +00:00
Arvid Norberg
a17f4e4e71
fixed bug where event=completed would not be sent if it violated the min-interval
2010-09-01 03:14:12 +00:00
Arvid Norberg
f70fbb45c0
optimized struct layout of torrent_info. removed boost.date_type types from public interface (replaced by time_t)
2010-08-21 22:10:16 +00:00
Arvid Norberg
dce2edb6cc
fixed vs 2010 build
2010-04-30 19:08:16 +00:00
Arvid Norberg
b4abe6677d
support for sha1 file-hashes
2010-03-27 15:51:30 +00:00
Arvid Norberg
c050b22d8f
optimized memory usage for torrent objects
2010-02-14 01:39:55 +00:00
Arvid Norberg
ef48784cbd
fix trimming of announce urls
2010-02-12 17:11:37 +00:00
Arvid Norberg
0fc90b5655
fixed support for min-interval on tracker failures
2009-12-21 09:47:32 +00:00
Arvid Norberg
bd881ac154
fixed more link issues on windows. examples build with shared linking on windows
2009-12-02 17:46:25 +00:00
Arvid Norberg
1e654220fa
added support for min_interval
2009-12-02 04:05:24 +00:00
Arvid Norberg
1f5859d31f
error_code fix. added is_error_code_enum template specialization and using the abbreviated syntax to build error_codes
2009-11-29 07:06:38 +00:00
Arvid Norberg
5d1bfc497a
added torrent_info::remap_files()
2009-11-27 22:15:34 +00:00
Arvid Norberg
e1aa90daab
header dependency fixes
2009-11-26 21:05:57 +00:00