arvidn
cc8066bf11
properly deprecated adding torrents by http url
2016-02-21 11:31:42 -05:00
arvidn
72a24b63ba
use bind_to_device for listen sockets
2016-02-12 15:46:18 -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
ee14337894
revert listen_failed_alert::port
2016-02-10 18:28:34 -05:00
arvidn
f8a53d17ec
un-deprecate the endpoint field in listen_failed_alert
2016-02-07 02:12:58 -05:00
arvidn
acd929381e
restore the endpoint field in listen_failed_alert (but deprecated) and add a port field
2016-01-31 10:20:10 -05:00
arvidn
1f9f588e75
merge copyright year update and changelog from RC_1_0
2016-01-17 18:57:46 -05:00
arvidn
13f03ce38a
print the actual stats in session_stats_alert::message() and make parse_session_stats.py parse the alert output. add stats_metric objects for all performance counters
2016-01-12 23:34:37 -05:00
Alden Torres
409cfaccc1
Fix num_alert_types.
2015-12-03 22:04:32 -05:00
arvidn
332799bff2
make alert types declared final and disable the log alert declarations when logging is disabled
2015-11-29 10:16:02 -05:00
arvidn
fd3b53604c
add new piece picker logging alert category
2015-11-29 08:25:55 -05:00
Thomas Yuan
194ad410dc
Make dht_put_alert more accurate.
2015-11-20 00:06:08 -05:00
Thomas Yuan
1fac816d37
Fix dht_put_alert::message() for immutable items.
2015-09-16 15:21:05 -04:00
arvidn
a10438addd
correctly convert error messages from native to utf8
2015-09-08 19:27:15 -04:00
arvidn
17c5759829
disable warning for unused command line argument and fix warnings. remove redundant travis build config. use new preprocessor on clang to avoid warnings
2015-09-06 22:55:41 -04:00
Alden Torres
203605bd3a
Recoded torrent_alert constructor logic to build the name.
...
Fixed compilation issue in Mac OS X.
2015-08-20 13:57:03 -04:00
arvidn
eecdd3121d
fix some build warnings
2015-08-17 09:01:43 -04:00
arvidn
9a0092c120
fix some warnings
2015-08-16 12:17:23 -04:00
Steven Siloti
1b4b1c4403
fix error handling for DHT direct requests
2015-08-10 20:33:05 -07:00
Steven Siloti
8e00172af7
return a bdecode_node rather than taking one by reference
2015-08-10 20:33:04 -07:00
Steven Siloti
3564562dab
pass raw buffer in dht_direct_response_alert
2015-08-10 20:33:04 -07:00
Steven Siloti
86fd8c3048
enable arbitrary direct dht requests and extension dht requests
...
If you're wondering why I used an alert for handling responses but not requests,
it's because the former was easy to do that way but the latter would have
involved some major refactoring or kludging. The DHT node is written with the
(IMO reasonable) assumption that all responses will be generated immediately, so
there was no way to easily accommodate getting a response asynchronously via
an alert.
2015-08-10 20:33:04 -07:00
Thomas
e51b61870a
Call callback function immediately when get mutable data.
2015-08-08 20:28:53 -04:00
arvidn
7080b8bac8
fixed build
2015-08-02 02:16:21 -04:00
arvidn
655a3ae019
fix some warnings
2015-08-01 23:57:11 -04:00
Jakob Petsovits
27fe9822ad
m_num_peers is a regular int, not long: print %d instead of %ld.
2015-07-14 17:49:12 -04:00
arvidn
2739def57f
minor cleanups. use libtorrent typedefs for asio. failing to bind IPv6 UDP socket is no longer fatal. removed some redundant listen_failed_alerts
2015-07-11 23:01:27 -04:00
John Sebastian Peterson
9a5e3465d2
fix hide cx keyword from winrt
...
forgot to hide it in the source file
2015-07-06 03:11:41 +02:00
Alden Torres
e7ee3590fa
Simplified dht_get_peers_reply_alert memory handling to work with only one allocation and return all peers at once.
2015-07-03 22:59:44 -04:00
Alden Torres
acc130833a
Better handling of memory layout and use of detail io functions (thanks to @arvidn comments).
2015-07-02 21:35:59 -04:00
Alden Torres
c89f89511b
Forgot to add the very important alloc offset.
2015-07-01 15:30:09 -04:00
Alden Torres
d9246d12c4
Re-implemented dht_get_peers_reply_alert using the stack_allocator for peers vector storage.
2015-07-01 15:30:09 -04:00
Alden Torres
fcac7140f8
Added dht_get_peers and dht_announce at session_impl level.
2015-07-01 15:30:08 -04:00
Arvid Norberg
d43f7b56a2
update copyright year
2015-06-03 05:18:48 +00:00
Arvid Norberg
e44c8e9002
optimize logging of DHT packets by deferring copying and printing, to only do it if the alert category is enabled
2015-05-28 20:36:22 +00:00
Arvid Norberg
c871610408
fix bug in DHT logging. clean up some whitespace
2015-05-17 02:00:43 +00:00
Arvid Norberg
494b425ea1
fix warnings and a peer logging bug
2015-05-10 18:38:10 +00:00
Arvid Norberg
b60934288b
turn DHT logging into alerts instead of writing to a file
2015-05-10 04:54:02 +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
4f216dece3
factor out strings of peer logs to be enums instead, in peer_log_alert
2015-05-03 02:53:54 +00:00
Arvid Norberg
8aa3c22796
fix coverity issues
2015-04-29 04:05:29 +00:00
Arvid Norberg
51e86ca2d5
more warning fixes and cleanup
2015-04-18 22:00:27 +00:00
Arvid Norberg
5f0b941a54
add more information to the invalid_request_alert and be more forgiving about requests from peers that have not sent an interested-message first
2015-04-13 01:34:19 +00:00
Arvid Norberg
0cedddbba0
fix build with no deprecated functions
2015-04-11 15:31:36 +00:00
Arvid Norberg
fb40cb484e
merged changes from RC_1_0
2015-04-11 14:17:33 +00:00
Arvid Norberg
013ed36f09
landed alert_queue feature branch into trunk
2015-04-03 20:15:48 +00:00
Arvid Norberg
837e709628
deprecate RSS API
2015-03-28 17:31:27 +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
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
0c8aee014c
implemented utp extension header to indicate the reason to close the connection
2015-02-28 19:51:15 +00:00
Arvid Norberg
f364fe7beb
include tracker message in tracker_alert
2015-02-21 22:45:45 +00:00
Arvid Norberg
91270a0c2b
make operation_t public and document it. include peer disconnects in client_test log
2015-02-15 05:17:09 +00:00
Arvid Norberg
9ff3030c7d
remove residual from peer speed affinity
2015-02-10 04:37:10 +00:00
Arvid Norberg
431fa2ac55
fix python binding build (and expose the new dht stats alert)
2015-01-18 21:36:24 +00:00
Arvid Norberg
58d93e5aa1
add new (non-deprecated) access to dht stats, asynchronously via an alert
2015-01-17 17:02:58 +00:00
Arvid Norberg
b9b657c3d4
post alerts instead of writing to a file, in local peer discovery, when logging is enabled
2015-01-16 23:01:14 +00:00
Arvid Norberg
09bc1550e9
simplify the debug logging mechanism. There's now only one build option, logging=on or logging=off. When logging is enabled, the log level is controlled by the alert mask. All log events are delivered as alerts and it's up to the client to write them to disk in whatever way seems appropriate. removed the pointless logger plugin
2014-12-09 09:08:26 +00:00
Arvid Norberg
d30ae3dda8
fix stats_alert stats indices
2014-11-29 08:17:25 +00:00
Arvid Norberg
f73fe335e2
deprecated flag should not affect ABI
2014-11-26 10:17:44 +00:00
Arvid Norberg
1c448331d5
fix stats_alert with recent changes to stats
2014-10-25 23:10:07 +00:00
Arvid Norberg
3db32f67b5
remove option TORRENT_DISABLE_FULL_STATS
2014-10-21 21:45:35 +00:00
Arvid Norberg
a655047cb0
support SSL over uTP (unit test is still failing with same errors as previously, this has not been fixed yet)
2014-10-06 03:03:01 +00:00
Arvid Norberg
8cbef3876a
post alert on outgoing get_peers
2014-09-22 19:49:32 +00:00
Arvid Norberg
07af6f6216
merged changes from RC_1_0
2014-08-20 07:02:03 +00:00
Arvid Norberg
7351389ce8
land libtorrent_aio branch in trunk
2014-07-06 19:18:00 +00:00
Arvid Norberg
6c6fe4dfe2
merged fixes of warnings from RC_1_0
2014-07-04 23:40:31 +00:00
Arvid Norberg
6043e14131
remove pch.hpp
2014-06-28 23:45:46 +00:00
Arvid Norberg
6f82d3b8ae
merged i2p_alert fix from RC_0_16
2014-03-15 22:20:19 +00:00
Arvid Norberg
86c704a6ff
fix dht_bootstrap_alert being posted. add additional alert for dht put completion. add utility to test immutable put/get. fix issue in DHT preventing stores on router nodes (even when they return write tokens). immutable put and get confirmed to be working
2014-02-28 04:02:48 +00:00
Arvid Norberg
1188ec2dcd
expose new DHT put/get functionality in the public session API
2014-02-24 00:31:13 +00:00
Arvid Norberg
a943fec777
update copyright
2014-02-23 19:12:25 +00:00
Arvid Norberg
a71fbc4f68
include reason in peer_blocked_alert
2014-02-07 17:35:56 +00:00
Arvid Norberg
3a03debcee
fix bug in dht_error_alert
2014-01-31 06:01:29 +00:00
Arvid Norberg
9ab349f1d0
improve dht error reporting
2014-01-20 09:20:47 +00:00
Arvid Norberg
4e6b1cfbfb
update copyright
2013-12-25 17:07:16 +00:00
Arvid Norberg
4f11258d36
improve alert errors for peer alerts
2013-11-05 01:30:29 +00:00
Arvid Norberg
d45d193811
improve error message for tracker_error_alert. various smaller attempts at making the unit tests more reliable
2013-10-07 06:20:55 +00:00
Arvid Norberg
e4c805c988
include socket type in listen_failed_alert and listen_succeeded_alert
2013-10-06 06:32:33 +00:00
Arvid Norberg
e5d6642582
merged encoding issue fix from RC_0_16
2013-08-08 04:32:54 +00:00
Arvid Norberg
e1c4101817
improve peer_connect_alert
2013-08-01 00:44:14 +00:00
Arvid Norberg
beae6cece0
merged ssl fix from RC_0_16
2013-07-28 15:06:28 +00:00
Arvid Norberg
b4c463f862
merged fix from RC_0_16
2013-06-04 02:58:32 +00:00
Arvid Norberg
a75a0581e3
improve error message for listen_failed_alert
2013-06-04 00:35:42 +00:00
Arvid Norberg
c9fae9c0ed
introduce rss_item_alert, posted for each new RSS item
2013-06-02 02:48:57 +00:00
Arvid Norberg
360c6a6e16
introduced a new alert torrent_update_alert, for when a torrent_handle changes info-hash
2013-05-17 03:19:23 +00:00
Arvid Norberg
520b8bfcd1
move out alert_manager to its own compilation unit. remove TORRENT_DISABLE_EXTENSIONS from affecting the public API
2013-04-09 02:38:11 +00:00
Arvid Norberg
0682272661
make libtorrent and examples build with deprecated functions disabled (with some slight performance improvements). use hex encoding instead of base32 in create_magnet_uri
2013-03-04 03:24:53 +00:00
Arvid Norberg
2aacf1cd66
report errors in read_piece_alert
2013-01-29 02:18:32 +00:00
Arvid Norberg
d6fecf4c34
make condition variable c++11 compatible
2013-01-21 22:52:34 +00:00
Arvid Norberg
f440bca2c4
use a condition variable in alert_manager to trigger wait_for_alert threads
2013-01-21 02:29:36 +00:00
Arvid Norberg
f1b8582a95
add gen_todo.py script. include todo.html and mark up some todos in the code with priority
2013-01-20 23:21:53 +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
58d5b9aedc
merged alert fix from libtorrent_aio
2012-11-12 06:08:06 +00:00
Arvid Norberg
65e02c23e8
improve support for loading torrents out of resume files
2012-11-08 02:07:10 +00:00
Arvid Norberg
bff648a89e
update copyright dates and add tool to do so
2012-10-02 03:16:33 +00:00
Arvid Norberg
64a56e4581
merged fix from RC_0_16
2012-08-30 01:54:35 +00:00
Arvid Norberg
e2d46b5563
add performance warning when hitting the file descriptor limit. Log the total number of peers, including half-open TCP connections
2012-03-04 11:18:27 +00:00
Arvid Norberg
5a8037dba2
added performance alert for address-in-use errors
2012-03-03 02:29:37 +00:00
Arvid Norberg
c4232065d8
introduced a more scalable API for torrent status updates (post_torrent_updates())
2011-11-15 02:34:00 +00:00