Commit Graph

60 Commits

Author SHA1 Message Date
arvidn 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidn 5935f63ead update copyrights 2020-09-01 05:14:17 -07:00
arvidn b75249934f merged RC_1_2 into RC_2_0 2020-08-20 20:42:11 +02:00
arvidn 0c0671987b fix C++11 issue with wrapped string_map constructors 2020-08-20 04:52:41 -07:00
arvidn 087d5fb555 remove deprecated lazy_entry and lazy_bdecode 2020-05-14 20:01:42 +02:00
arvidn 0a84b3c3d1 improve rendering of integers in bencoding and improve testing 2019-12-27 00:13:06 +01:00
arvidn cbb3d6ea52 merge RC_1_2 into master 2019-09-16 23:16:15 +02:00
arvidn beea1eb731 fix over-eager TORRENT_ABI_VERSION check in test_bencoding 2019-09-15 05:53:49 +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
arvidn 8841c58435 improve interoperability between bdecode_node and entry (for encoding). Make it possible to construct an entry from a bdecode_node. move comparison operators out of entry to support implicit conversions from bdecode_node 2018-11-18 22:54:36 +01:00
arvidn 7538d68086 clean up integer_to_str() function 2018-11-17 17:21:06 +01:00
arvidn 78a344bd8b merged RC_1_1 into master 2018-09-05 08:25:14 -07:00
arvidn 7c837be651 make the print function for entry actually be json-like. when logging bencode entries, print it all on a single line. add test for entry print function 2018-08-27 13:56:04 +02:00
arvidn fe612ca167 replace the TORRENT_CFG ABI check with inline namespaces around the symbol that can change ABI based on build configuration options 2018-05-13 19:25:17 +02:00
Eugene Shalygin 81fd09775c Fix compilation with GCC 8 2018-05-07 13:33:18 +02:00
Alden Torres c5d62cf1ca fixing warnings in tests code, part9 (#2758) 2018-02-02 08:26:21 +01:00
Alden Torres 6d5b90968b fixing warnings in tests code, part4 2018-01-27 09:18:26 +01:00
arvidn 05b5b4ef4d merged RC_1_1 into master 2017-08-16 22:46:47 +02:00
arvidn fcb9c7b6f3 fix invalid read in parse_int() in bdecode_node() and lazy_bdecode() 2017-08-15 00:01:37 +02:00
arvidn d138f02424 introduce lt namespace alias 2017-04-23 23:43:58 -04:00
arvidn 1c89fcda48 merge RC_1_1 into master 2016-10-08 14:17:51 -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 2fae3ae835 fix regression in entry constructor (#950) 2016-07-26 01:08:03 -04:00
Arvid Norberg 770935cd46 modernize-use-nullptr (#894) 2016-07-09 16:26:26 -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
arvidn 420b5f51e6 merged RC_1_1 into master 2016-05-27 12:35:53 -07:00
Arvid Norberg d0a870b3dd produce valid bencoded strings for undefined/uninitialized entry objects (#756) 2016-05-26 03:33:05 -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 985436636e added new preformatted type to bencode entry (#698)
added new preformatted type to bencode entry to support carrying a verbatim copy of an already bencoded subtree. This is to support saving torrents in resume data and create_torrent based on existing torrents, in order to preserve key order
2016-05-05 21:38:57 -04:00
arvidn 08e2bf7835 mark up some more functions with override and silence a few more warnings in boost headers 2015-10-17 10:02:37 -04:00
arvidn ffa870d280 fixed some GCC warnings 2015-08-20 01:33:20 +02:00
arvidn 50925d7652 fix some more warnings 2015-08-08 02:48:01 -04:00
arvidn 52b4aed466 merge bdecode patch from RC_1_0. an empty string now produces an error rather than an empty bdecoded struct 2015-07-30 21:29:22 -04:00
Jakob Petsovits cf9a009fb8 Avoid warnings when building tests. 2015-07-16 14:55:05 -04:00
Arvid Norberg d8c0632c78 add some bdecoding unit tests 2015-06-02 03:06:48 +00:00
Arvid Norberg c8443d0c7c msvc fixes 2015-05-31 12:21:16 +00:00
Arvid Norberg f9c9d0ad0d merge small unit tests to make running the tests quicker. expand the test framework a bit. add ax_boost_random.m4 script to link against boost.random correctly from makefile. 2015-05-30 04:31:23 +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 ba75b44c29 merged fix from RC_1_0 2014-09-29 08:30:11 +00:00
Arvid Norberg f8272b90ae merged changes from RC_1_0 2014-09-29 07:06:18 +00:00
Arvid Norberg 7351389ce8 land libtorrent_aio branch in trunk 2014-07-06 19:18:00 +00:00
Arvid Norberg af39c78205 extend lazy_bdecode unit test 2014-05-02 07:49:56 +00:00
Arvid Norberg e19c52ec98 improve lazy_bdecode test to cover more error cases 2014-05-01 03:54:47 +00:00
Arvid Norberg 91799025f2 merged bdecode fix from RC_0_16 2014-04-04 03:21:15 +00:00
Arvid Norberg a00f396224 merged test from RC_0_16 2013-11-07 17:12:11 +00:00
Arvid Norberg 89c3db477d merge build fix with C++11 from RC_0_16 2013-09-25 19:44:29 +00:00
Arvid Norberg 6d7e9e4521 remove some iostream dependencies 2012-10-12 04:50:34 +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 93bdc61410 fixed bug in bdecoder 2010-06-15 17:00:23 +00:00