Alden Torres
d9f8d4b642
refactor to more use of auto c++11 keyword ( #1404 )
...
refactor to more use of auto c++11 keyword
2016-12-11 20:50:30 -05:00
Alden Torres
dd7179fb10
added a few consts to arguments and local variables
2016-12-10 18:19:14 -05:00
Alden Torres
0625606230
fixing shorten-64-to-32 warnings, part 2
2016-12-06 22:53:41 -05:00
Alden Torres
4c7e24ea35
more use of std::make_shared, fixing warnings of over-aligned
2016-11-18 00:28:29 -05:00
arvidn
b1e22e6183
merged RC_1_1 into master
2016-10-20 00:36:54 -04:00
Pavel Pimenov
037f349cee
Try resolve #1175 (for RC_1_1) ( #1230 )
...
https://github.com/arvidn/libtorrent/pull/1223
2016-10-19 17:29:35 -04:00
Arvid Norberg
7a52a285a1
back-port error_code cleanup from master ( #1173 )
...
back-port error_code cleanup from master
2016-10-03 16:32:40 -07:00
Arvid Norberg
cebd976cc2
fix error_code vs. error_condition traits ( #1169 )
...
fix error_code vs. error_condition traits. deprecate get_*_category(), instead use *_category()
2016-10-02 12:27:50 -07:00
Arvid Norberg
97c6a75084
add proper error handling to peer connections and session ( #1149 )
...
add proper error handling to peer connections and session. i.e. catch exceptions in asio handlers and catch by const reference
2016-09-25 09:50:48 -04:00
Arvid Norberg
219b2c36b4
upnp and natpmp modernization and cleanup ( #1103 )
...
upnp and natpmp modernization and cleanup
2016-09-18 10:11:56 -04:00
Alden Torres
d94c317f02
created portmap_callback and refactor for natpmp and upnp log optimization ( #1096 )
...
created portmap_callback and refactor for natpmp and upnp log optimization
2016-09-16 09:53:17 -04:00
Alden Torres
0507764d04
consts and refactor, hash_address returns the hash ( #1093 )
...
consts and refactor
2016-09-15 21:13:43 -04:00
Alden Torres
e2487c4d24
more use of std::shared_ptr refactor
2016-08-30 10:10:53 -04:00
arvidn
8c8c3d5587
replace boost::function with std::function
2016-08-13 07:07:26 -04:00
Arvid Norberg
71f5510d62
make the random function produce proper random distributions, based o… ( #981 )
...
make the random function produce proper random distributions, based on uniform_int_distribution of C++11. also clean up piece_picker's priority_range to return two results instead of taking pointers to out-parameters. fix recent pe-crypto regression exposed by this change
2016-08-06 13:18:48 -04:00
Arvid Norberg
634c2bce60
Span conversion ( #944 )
...
complete http_parser transition to use span. make xml_parse use span. remove buffer::interval. convert some of receive buffer management to use span<>
2016-07-26 02:15:31 -04:00
Arvid Norberg
4f803353cf
transition part of http_parser to use span ( #936 )
...
transition parts of http_parser to use span
2016-07-24 00:52:20 -07:00
Arvid Norberg
a740a49fd6
modernize misc ( #898 )
...
modernize misc
2016-07-10 07:34:45 -04:00
Arvid Norberg
e782783814
modernize use override ( #895 )
2016-07-09 20:10:38 -04:00
Arvid Norberg
770935cd46
modernize-use-nullptr ( #894 )
2016-07-09 16:26:26 -04:00
Arvid Norberg
21c1540ace
clean up natpmp and upnp logging ( #842 )
...
clean up natpmp and upnp logging. remove custom logging macro and use regular logging via alerts. honor TORRENT_DISABLE_LOGGING
2016-06-23 01:23:59 -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
96999ad67f
replace uses of boost::bind with std::bind and lambdas ( #745 )
2016-05-25 00:31:52 -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
f56c1f8b2f
remove mutex from tracker_manager ( #690 )
...
remove mutex from tracker_manager
2016-05-02 22:22:13 -04:00
arvidn
accf13d93e
remove mutex in upnp
2016-05-01 12:24:54 -04:00
Steven Siloti
ff0675e64e
use standard array container ( #676 )
2016-04-30 23:10:47 -04:00
Arvid Norberg
20b41ad0b9
Threads ( #671 )
...
use std::thread, std::mutex, std::condition_variable instead of pulling them in from boost.asio internals.
2016-04-30 18:54:23 -04:00
Arvid Norberg
c9c6dd2d3b
clean up the annotations used for asio debugging ( #639 )
...
clean up the annotations used for asio debugging (tracking outstanding async operations)
2016-04-23 17:29:25 -04:00
arvidn
0b173c6651
merged RC_1_1
2016-02-23 23:48:29 -05:00
arvidn
d8b88ba381
include protocol in portmap_alert
2016-02-21 19:16:00 -05:00
arvidn
887e79eb22
improve support for listening on multiple sockets and interfaces, with the listen_interfaces setting
2016-02-12 15:44:17 -05:00
arvidn
1f9f588e75
merge copyright year update and changelog from RC_1_0
2016-01-17 18:57:46 -05:00
arvidn
cb65694578
fix const correctness in xml_parse(). update unit tests rss and upnp to use new signature for parser callback
2015-09-06 00:38:33 -04:00
arvidn
8d8c049d9e
fix warnings and invalid defines in disk_io_thread.cpp
2015-08-18 07:55:50 -04:00
arvidn
b1a3a36eae
remove some old leftover code from upnp
2015-08-16 12:21:39 -04:00
arvidn
9a0092c120
fix some warnings
2015-08-16 12:17:23 -04:00
arvidn
4fa0aa62da
simulate IP routes, interfaces and page size when building in simulation mode
2015-08-09 15:01:01 -04:00
arvidn
e0c3d28321
fix some warnings
2015-08-02 15:55:05 -04:00
Chocobo1
f92df7f782
Add support for IGD version 2
2015-07-09 20:11:23 +08:00
arvidn
41533205be
drop support for boost 1.35 and fix some more references to the asio namespace
2015-06-06 02:10:53 -04:00
arvidn
389ffc622c
don't pull in the asio namespace in libtorrent. refer to it by boost::asio
2015-06-06 01:24:25 -04:00
Arvid Norberg
d43f7b56a2
update copyright year
2015-06-03 05:18:48 +00:00
Arvid Norberg
9ee98b3ed1
fix build warnings
2015-05-18 05:04:55 +00:00
Arvid Norberg
e7d369646d
fix gcc warnings
2015-05-18 01:30:32 +00:00
Arvid Norberg
a83dcbaaf0
removed access-log build option and log parser. added incoming_request_alert. This feature can now be implemented by clients
2015-05-09 03:04:08 +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
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
1b9b6f7292
support http basic auth in http_connection passed in from the outside as opposed to part of the url
2015-02-08 16:03:09 +00:00
Arvid Norberg
0f37e3403c
transition from intrusive_ptr to shared_ptr. don't export initialize_default_settings
2015-01-06 08:08:49 +00:00
Arvid Norberg
fcf6beace5
merged changes from RC_1_0
2014-12-30 09:02:20 +00:00
Arvid Norberg
ceccc2a483
land branch to remove half-open connection limit / connection queue
2014-10-03 20:56:57 +00:00
Arvid Norberg
805c823523
merged fixes from RC_1_0
2014-07-21 03:19:58 +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
6043e14131
remove pch.hpp
2014-06-28 23:45:46 +00:00
Arvid Norberg
cb089e74ba
merged UPnP fix from RC_0_16
2014-06-15 04:20:39 +00:00
Arvid Norberg
fa2ea57e43
expand buffer sizes for upnp error messages
2014-03-23 22:49:09 +00:00
Arvid Norberg
5f30b18b2f
fix asio-debugging in upnp
2014-03-19 05:28:54 +00:00
Arvid Norberg
960f653f97
make ignore_non_routers more forgiving in the case there are no UPnP devices at a known router. Should improve UPnP compatibility.
2014-03-10 06:47:01 +00:00
Arvid Norberg
a943fec777
update copyright
2014-02-23 19:12:25 +00:00
Arvid Norberg
15e2019332
clean up upnp error category by moving it into upnp.cpp, it's not properly encapsulated. added some documentation to torrent_handle. reformatted some documentation comments to honor an 80 column display
2014-02-02 03:05:55 +00:00
Arvid Norberg
4e6b1cfbfb
update copyright
2013-12-25 17:07:16 +00:00
Arvid Norberg
dafa812109
merged fixes from RC_0_16
2013-11-08 07:23:36 +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
89c3db477d
merge build fix with C++11 from RC_0_16
2013-09-25 19:44:29 +00:00
Arvid Norberg
1dc491e7e1
fix test_upnp
2013-09-03 04:41:49 +00:00
Arvid Norberg
ba6770ccd8
more torrent parsing unit tests
2013-02-26 05:57:29 +00:00
Arvid Norberg
8f682d2ff7
merged string encoding of error messages fix from RC_0_16
2013-01-19 06:39:32 +00:00
Arvid Norberg
8ba970018c
make bottled http requests response size limit configurable and bump default to 2 MiB
2012-10-19 01:28:47 +00:00
Arvid Norberg
971aea19e7
merged local service discovery logging from RC_0_16
2012-10-09 04:16:37 +00:00
Arvid Norberg
bff648a89e
update copyright dates and add tool to do so
2012-10-02 03:16:33 +00:00
Arvid Norberg
92992c7eac
fix upnp snprintf issue
2012-02-18 20:35:06 +00:00
Arvid Norberg
06cad3a245
fix UPnP issue for routers with multiple PPPoE connections
2011-09-18 20:28:06 +00:00
Arvid Norberg
ee77b3fd04
handle buggy upnp routers
2011-07-12 08:33:05 +00:00
Arvid Norberg
113fa0ba3d
fixed some shadowed variable warnings
2011-03-30 16:03:35 +00:00
Arvid Norberg
44fe8c160a
fix no-exceptions build
2011-03-10 05:01:36 +00:00
Arvid Norberg
ab3b82b8ee
replaced std::rand() with custom random generator
2011-02-26 07:55:51 +00:00
Arvid Norberg
56937edf56
cleaned up some exception handling and introduced macros like BOOST_TRY/BOOST_CATCH to make the optional exception handling nicer
2011-02-25 17:00:36 +00:00
Arvid Norberg
ca106ca4e0
some warning fixes and cleanup
2011-02-24 04:25:35 +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
9c3076481d
hack to fix an issue in natpmp and upnp
2010-12-24 03:30:52 +00:00
Arvid Norberg
779014ddac
support requesting UPnP and NAT-PMP routers for our external IP address
2010-12-05 20:40:28 +00:00
Arvid Norberg
2e871382d7
add debug configuration to debug shutdown-stall bugs / outstanding async operations
2010-11-28 01:47:30 +00:00
Arvid Norberg
9b50acbe15
potential string handling issue in upnp
2010-10-20 05:14:50 +00:00
Arvid Norberg
737618c989
fixed UPnP DeletePortmapping issue
2010-09-30 07:06:54 +00:00
Arvid Norberg
dce2edb6cc
fixed vs 2010 build
2010-04-30 19:08:16 +00:00
Arvid Norberg
64d52b26ca
fixed windows upnp test. added test for is_space
2010-01-24 17:31:06 +00:00
Arvid Norberg
59636e0cca
extended upnp error message cap to 500 characters
2009-12-25 22:21:39 +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
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
8a5b7d5d36
got rid of the last recursive mutexes. abstracted the threading primitives (and switched over to use asio's internal ones).
2009-10-20 02:49:56 +00:00
Arvid Norberg
6c67da08d6
split socket.hpp up in multiple headers to lower build time somewhat
2009-09-16 03:46:36 +00:00
Arvid Norberg
18b911768c
improve upnp port mapping description
2009-07-19 02:20:38 +00:00
Arvid Norberg
fb6130bd95
another try to fix the upnp problems
2009-07-01 04:02:16 +00:00
Arvid Norberg
690467d4ee
turned test_upnp into a proper unit-test with a simple program acting as a UPnP router
2009-06-29 08:09:32 +00:00
Arvid Norberg
10eb3fa00f
handle torrents with duplicate filenames
2009-06-26 16:20:57 +00:00
Arvid Norberg
7328b30517
fixed potential deadlock in natpmp and upnp
2009-06-13 08:04:53 +00:00
Arvid Norberg
07bcb3545a
converted a whole lot of error strings into error_codes. Documented some previously undocumented alerts as well as all the error codes
2009-06-12 16:40:38 +00:00
Andrew Resch
d230dfaf3a
Fix upnp when checking for "http://" in control_url there is an improper substr call
2009-05-31 02:41:59 +00:00