arvidn
be2b1d3991
split the dht test into a few parts (still need more splitting)
2015-08-23 09:23:51 +02:00
arvidn
e7b8b6da49
forward port DHT routing table fix from RC_1_0
2015-08-22 15:51:28 +02:00
arvidn
ffa870d280
fixed some GCC warnings
2015-08-20 01:33:20 +02:00
arvidn
24b20a59cd
remove some randomness from the unit tests
2015-08-13 02:06:30 -04: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
Steven Siloti
29ba738876
fix_dht mutable get test
2015-08-10 20:05:04 -07:00
Thomas
e51b61870a
Call callback function immediately when get mutable data.
2015-08-08 20:28:53 -04:00
Jakob Petsovits
79947dbd2a
Remove the last bits of TORRENT_DHT_VERBOSE_LOGGING.
2015-07-17 20:13:14 -04:00
arvidn
15dd15d0d6
fix no-deprecated build. extend .travis.yml to build the 3 test configurations too. rename README to README.rst
2015-06-05 02:31:52 -04: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
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
99de70604a
remove dht-verbose logging build configuration. tie it to the main logging configuration (which now is on by default) and make it less costly when dht logging alerts are disabled
2015-05-16 19:29:49 +00:00
Arvid Norberg
ca577796d3
fix test build
2015-05-10 05:25:31 +00:00
Arvid Norberg
ca581f2258
rename dht::node_impl -> dht::node, since this hasn't been a pimpl for quite a while
2015-05-09 19:00:22 +00:00
Arvid Norberg
6557910c7f
remove the DHT's last dependency on session_impl
2015-05-09 18:06:02 +00:00
Arvid Norberg
f5629eb403
cleanup and fixing of more warnings
2015-04-21 00:23:00 +00:00
Arvid Norberg
013ed36f09
landed alert_queue feature branch into trunk
2015-04-03 20:15:48 +00:00
Arvid Norberg
37225b71ae
const static -> static const (thanks gubatron). helps swigs parser
2015-03-14 00:42:27 +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
7668bf5d4c
downgrade some todo comments
2015-01-15 19:13:45 +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
0977d94dbc
merged changes from RC_1_0
2014-12-25 11:24:02 +00:00
Arvid Norberg
1e12b50b24
merge changes from RC_1_0
2014-11-30 00:30:30 +00:00
Arvid Norberg
8ec7cff993
merged changes from RC_1_0
2014-11-26 02:02:32 +00:00
Arvid Norberg
aae56c991c
merged changes from RC_1_0
2014-11-08 16:58:18 +00:00
Arvid Norberg
601f0dc434
merged changes from RC_1_0
2014-11-03 06:15:51 +00:00
Arvid Norberg
3742fd2699
merged changes from RC_1_0
2014-11-02 09:41:29 +00:00
Arvid Norberg
a44900e5db
merged changes from RC_1_0
2014-09-02 08:03:01 +00:00
Arvid Norberg
4d57456199
merged changes from RC_1_0
2014-09-02 06:28:27 +00:00
Arvid Norberg
48e4cf9478
merged changes from RC_1_0
2014-08-28 07:11:34 +00:00
Arvid Norberg
48ea42c990
merged changes from RC_1_0
2014-08-27 05:57:37 +00:00
Arvid Norberg
524384045c
transition to use boost.random instead of rand() and custom pseudo random generator
2014-08-16 20:26:00 +00:00
Arvid Norberg
30d561d0c5
merged random_seed assert into trunk
2014-07-19 02:17:19 +00:00
Arvid Norberg
7351389ce8
land libtorrent_aio branch in trunk
2014-07-06 19:18:00 +00:00
Arvid Norberg
9f0aec9427
attempt at msvc-10.0 build fix for test_dhy + small documentation note
2014-04-01 00:09:23 +00:00
Arvid Norberg
043d540627
update dht unit test
2014-03-02 23:44:53 +00:00
Arvid Norberg
c8b38dcacd
fix dht unit test
2014-03-01 09:04:23 +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
6c22d426d4
make all unit tests pass msvc's /RTCc instrumentation (no implicit integer truncation in casts)
2014-02-05 09:38:32 +00:00
Arvid Norberg
86b68e65e4
merged dht node ID change from RC_0_16
2014-01-11 08:08:43 +00:00
Arvid Norberg
ae7bb20170
update node ID generation algorithm from RC_0_16
2014-01-06 05:46:46 +00:00
Arvid Norberg
54bbd3cae0
support salt feature in DHT put
2014-01-03 04:18:46 +00:00
Arvid Norberg
260e97c4e0
document salt feature in put and get DHT extensions. include a test vector and add that to the unit test. (salt is not implemented)
2013-12-31 08:37:42 +00:00
Arvid Norberg
d6b1aa4c36
DHT refactoring and support for storing arbitrary data with put
2013-12-27 04:28:25 +00:00
Arvid Norberg
1a2226b8f0
fix test_dht to take into account the slightly more relaxed semantics of routing_table::find_node
2013-10-22 05:20:00 +00:00
Arvid Norberg
a627a4e156
add negative test for put/get DHT feature. fix bug in signature verification and in DHT unit test
2013-10-22 01:24:33 +00:00
Arvid Norberg
1b888eeec6
optimize DHT
2013-10-20 07:06:42 +00:00
Arvid Norberg
73323e2c3d
more valgrind instrumentation
2013-10-16 08:11:19 +00:00
Arvid Norberg
0985c9e6c8
don't run the CPU intensive part of test_dht under valgrind
2013-10-14 08:52:45 +00:00