Commit Graph

107 Commits

Author SHA1 Message Date
Arvid Norberg 4b1d9cb760 make lazy_bdecode a bit more self-contained 2013-10-23 05:19:52 +00:00
Arvid Norberg 0158710f5c break out bdecode errors into its own category 2013-10-22 23:57:12 +00:00
Arvid Norberg 4e94ae592c clean up lazy bdecoder a bit 2013-10-22 22:41:58 +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 bff648a89e update copyright dates and add tool to do so 2012-10-02 03:16:33 +00:00
Arvid Norberg 1244ae8894 remove left-over debug printf from bdecoder 2012-02-17 06:52:08 +00:00
Arvid Norberg 47781bf2c5 cleanup, fix warnings 2012-02-15 10:57:49 +00:00
Arvid Norberg c384d00dbf make bdecoder more robust when encountering errors (leave the resulting tree consistent) 2012-02-10 04:19:11 +00:00
Arvid Norberg 0093229d27 merge diff from aio branch to show partially bdecoded files with dump_torrent 2011-06-25 17:42:49 +00:00
Arvid Norberg 5864a883e6 fixed build warnings 2011-02-14 01:59:01 +00:00
Arvid Norberg f82321c1dd add a backwards compatible lazy_bdecode() 2010-11-29 02:48:40 +00:00
Arvid Norberg 8ff9b6338b some fixes 2010-11-25 10:46:52 +00:00
Arvid Norberg faccbd8ae3 introduce safety limit on total number of items in bencoded trees in lazy_bdecode. Document lazy_bdecode and its error codes. Make dump_torrent able to change the decoding limits 2010-11-25 02:49:50 +00:00
Arvid Norberg 894db973e8 optimized memory usage of torrent_info and file_storage 2010-11-24 23:49:22 +00:00
Arvid Norberg a4f533ce55 improve the bencoded printer 2010-11-09 18:13:22 +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 c050b22d8f optimized memory usage for torrent objects 2010-02-14 01:39:55 +00:00
Arvid Norberg baa6ea74b8 removed floating point operation 2009-12-26 11:15:12 +00:00
Arvid Norberg 7412931183 fixed some error handling in lazy_bdecode to handle out-of-memory errors 2009-12-26 10:54:00 +00:00
Arvid Norberg cecdccaeb5 improved printing of bencoded structures 2009-12-03 05:08:24 +00:00
Arvid Norberg 1e654220fa added support for min_interval 2009-12-02 04:05:24 +00:00
Arvid Norberg e750910798 fixed windows build 2009-11-27 07:08:47 +00:00
Arvid Norberg a80b2b0fce fixed torrent_info copy constructor. restricted copying of lazy_entry. Fixed build. added pascal_string type to be used with lazy_entry (trunk only) 2009-11-26 06:54:52 +00:00
Arvid Norberg 5c71c47437 fix print formatting bug in print_entry 2009-10-07 07:16:18 +00:00
Arvid Norberg 54cce9da60 simplified and optimized the DHT implementation 2009-09-20 00:23:36 +00:00
Arvid Norberg ad1e575a6e trim tracker urls and renamed isprint to is_print 2009-06-23 01:53:47 +00:00
Arvid Norberg 98ee6daddc fixed shadowing variable bug 2009-05-19 22:22:22 +00:00
Arvid Norberg e7d6c9cd3c fixed printf formatting issue 2009-05-19 20:53:27 +00:00
Arvid Norberg 53f890608d use C99 string formatting macros for platform independence 2009-05-15 15:52:15 +00:00
Arvid Norberg 8e3bd5154a removed iostream and boost-regex dependency in client_test 2009-05-13 01:02:06 +00:00
Arvid Norberg aba5b2e9d0 dropped some iostream dependencies 2009-04-04 09:52:25 +00:00
Arvid Norberg 7c4f788b9d fix to lazy_entry print function 2009-03-22 05:31:28 +00:00
Arvid Norberg 59fa30400f fix lazy_entry stream out operator to not leave the stream in hexadecimal mode 2009-03-12 01:59:35 +00:00
Arvid Norberg afd04635e9 replaced std::isdigit with is_digit, to avoid asserts on windows and locale dependency. Fixes #484 2009-02-18 06:01:24 +00:00
Arvid Norberg 7306b60682 lazy_decode memory allocation tuning 2008-11-10 04:15:29 +00:00
Arvid Norberg 8189262182 cosmetic improvement when printing bdecoded structures 2008-09-22 17:37:12 +00:00
Arvid Norberg 8ffc345308 fixed crash when add_torrent was fed with invalid resume data 2008-09-21 02:08:04 +00:00
Arvid Norberg a22f6b6359 fixed type cast for std::isprint, to avoid assert 2008-08-21 13:44:30 +00:00
Arvid Norberg a49906f0cc added some precautionary checks in bdecoder 2008-08-16 21:10:39 +00:00
Arvid Norberg d4ee273573 fix print out issue in lazy_entry 2008-07-19 09:45:56 +00:00
Arvid Norberg 3b35b2c2e3 added dict_find_string to lazy_entry 2008-07-18 13:48:09 +00:00
Arvid Norberg ac6dfa9ea3 factored out constants to enums in lazy_bdecode 2008-07-02 21:19:50 +00:00
Arvid Norberg 8b03e338d6 lazy_bdecode fix. #336 2008-05-24 04:36:59 +00:00
Arvid Norberg 6ab19756a3 lazy_entry fix 2008-05-15 08:23:32 +00:00
Arvid Norberg 7052efe575 lazy_entry fix 2008-05-15 07:04:39 +00:00
Arvid Norberg 7e428db4ca bdecode print formatting fix 2008-05-14 18:58:24 +00:00
Andrew Resch 4e768ab31f Fix building on gcc 4.3 2008-04-29 21:46:32 +00:00
Arvid Norberg 39eaf766fa lazy_bdecode fixes 2008-04-20 03:18:49 +00:00
Arvid Norberg 72176a9256 lazy bdecoder additions and fixes 2008-04-19 03:00:07 +00:00
Arvid Norberg 748a66c343 improvements to lazy_bdecode 2008-04-13 22:34:04 +00:00
Arvid Norberg 643deb699f lazy bdecode fixes 2008-04-13 05:50:13 +00:00
Arvid Norberg a3e7124614 added out stream operator to lazy_entry 2008-04-13 05:19:10 +00:00
Arvid Norberg dbfd400536 windows fix for lazy bdecode 2008-04-12 17:30:00 +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