arvidn
beea1eb731
fix over-eager TORRENT_ABI_VERSION check in test_bencoding
2019-09-15 05:53:49 +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
Arvid Norberg
2b671bc820
more iostream fixes
2009-04-04 21:44:04 +00:00
Arvid Norberg
85bde58902
fixed compile problem in test_bencoding.cpp related to std namespace
2008-10-18 07:37:15 +00:00
Arvid Norberg
af0ebb519c
added copyright notices in files missing them
2008-07-01 18:59:13 +00:00
Arvid Norberg
8b03e338d6
lazy_bdecode fix. #336
2008-05-24 04:36:59 +00:00
Arvid Norberg
748a66c343
improvements to lazy_bdecode
2008-04-13 22:34:04 +00:00
Arvid Norberg
a3e7124614
added out stream operator to lazy_entry
2008-04-13 05:19:10 +00:00
Arvid Norberg
a70789872e
added string length to high performance bdecoder
2008-04-12 01:58:55 +00:00
Arvid Norberg
b300c7f835
added high performance bdecoder code
2008-04-11 03:41:09 +00:00
Arvid Norberg
41810b1166
merged back the asio development branch
2006-04-25 21:04:48 +00:00