Edric
623dd4f2a7
Correctly close socket on win32
...
Refs : https://msdn.microsoft.com/en-us/library/windows/desktop/ms740126%28v=vs.85%29.aspx
2015-08-07 12:45:56 -04:00
Adrien Béraud
873fbd3d8e
dht: add public address reporting
2015-08-06 15:41:16 -04:00
Adrien Béraud
02d4afa555
python: split pxd file, remove Py* from Python type names
2015-08-05 21:55:20 -04:00
Adrien Béraud
15f3dee293
introduce configuration structure
2015-08-05 21:55:20 -04:00
Adrien Béraud
30f083d45a
dhtnode: make ID generation optional
2015-08-04 23:40:30 -04:00
Adrien Béraud
59182aa0c4
securedht, dhtrunner: support bootstrap mode
2015-08-04 23:39:15 -04:00
Adrien Béraud
2130d38820
securedht: allow null key or certificate
...
If no key is provided, no value is decrypted.
If no certficate is provided, it is not published and
a random node Id is choosed.
2015-08-04 14:02:04 -04:00
Adrien Béraud
948475301e
infohash: add getRandom()
2015-08-04 14:02:04 -04:00
Adrien Béraud
830c39e8f6
tools: add usage (-h, --help)
2015-07-31 15:51:06 -04:00
Adrien Béraud
761b9b73ec
tools: use getopt to parse cmd args
2015-07-31 15:26:24 -04:00
Adrien Béraud
3cba698cdd
Travis CI: use apt addon
2015-07-31 11:23:19 -04:00
Adrien Béraud
02d8742af0
add initial Travis CI configuration
2015-07-31 11:14:07 -04:00
Adrien Béraud
3dc1966dcc
python: check both done callback existence and value
2015-07-29 17:27:44 -04:00
Adrien Béraud
c10494557c
dht: fix done callback sometimes called more than once
2015-07-29 16:58:15 -04:00
Adrien Béraud
c964d0e5df
python: cleanup
2015-07-29 16:58:15 -04:00
Adrien Béraud
930e3e890b
Merge pull request #10 from EckoEdc/patch-5
...
Install rng header for external use of random_device
2015-07-29 15:51:19 -04:00
Edric
baa2a14596
Install rng header for external use of random_device
2015-07-29 14:43:50 -04:00
Adrien Béraud
b2bc9d7ad5
Merge pull request #9 from sim590/benchmark-refactor
...
Benchmark refactoring
2015-07-28 17:58:12 -04:00
Simon Désaulniers
9bfe07cf6d
benchmark: refactor tests into functions
2015-07-28 17:29:20 -04:00
Adrien Béraud
ac3d29c041
python/dhtnetwork: add fallback bootstrap
2015-07-28 16:53:52 -04:00
Adrien Béraud
69cf65d1b2
dhtrunner: update doc
2015-07-28 16:26:46 -04:00
Adrien Béraud
f13b28fed4
dht: add connectivityChanged()
2015-07-28 16:26:35 -04:00
Adrien Béraud
3f7d2df9b1
python: add listen, cancelListen
2015-07-28 15:18:54 -04:00
Adrien Béraud
c9ee6eca44
move python to top directory
2015-07-27 15:18:23 -04:00
Adrien Béraud
3cbae5526a
dht: add bootstap mode
...
The bootstrap mode is used only for bootstrap nodes.
A bootstrap node will maintain a tree of the whole dht
up to 6 bits deep (8*2^6 = 4096 nodes).
This allows to provide better initial answers to new nodes.
Bootstrap nodes act otherwise normally.
2015-07-27 14:47:58 -04:00
Adrien Béraud
76413c25ef
python: scanner improvements
2015-07-27 14:33:53 -04:00
Adrien Béraud
8287416164
dht: add getNodes, isExpired with no time argument
2015-07-27 14:33:47 -04:00
Adrien Béraud
ced114eba4
dht: combine counting of get and announce/listen requests
2015-07-27 14:33:39 -04:00
Adrien Béraud
433f690bed
dht: don't make new nodes candidates
2015-07-27 14:33:39 -04:00
Adrien Béraud
5323ebd6b1
dht: use a listen keep-alive of 30 seconds
2015-07-27 14:33:39 -04:00
Adrien Béraud
4ad1495e39
dht: improve listen, announce timing consistency
2015-07-24 01:02:35 -04:00
Adrien Béraud
a2eed7e7af
dht: limit total node number per search
2015-07-24 01:02:35 -04:00
Adrien Béraud
cf3fa7b954
dht: increase max requests per second
2015-07-24 01:02:35 -04:00
Adrien Béraud
8693d7301d
python scanner: improve appearance
2015-07-24 01:02:35 -04:00
Adrien Béraud
178eeae94f
dht: log cleanup
2015-07-24 01:02:35 -04:00
Adrien Béraud
52cbf43e91
benchmark: choose IPv4/IPv6 with cmd arguments
2015-07-23 18:03:01 -04:00
Adrien Béraud
8d44e48c8b
bemchmark: choose IPv4/IPv6 with cmd arguments
2015-07-23 16:56:23 -04:00
Adrien Béraud
d4094bed9b
tools: update copyright
2015-07-23 14:32:52 -04:00
Adrien Béraud
2b16937c2d
temporarly disable IPv6
...
IPv6 is for some reason not working properly.
Disable it while we are investingating
2015-07-23 11:07:29 -04:00
Adrien Béraud
d95b11aefa
dht:use appropriate node array size
2015-07-23 11:06:16 -04:00
Adrien Béraud
3124d13004
infohash: toFloat optimisation
2015-07-23 11:06:16 -04:00
Adrien Béraud
a090baba08
doc update
2015-07-23 11:06:16 -04:00
Adrien Béraud
ae178c4d25
fix some compiler warnings
2015-07-23 11:06:04 -04:00
Adrien Béraud
d2ed99742e
zero-initialise sockaddr structures
2015-07-23 11:05:50 -04:00
Adrien Béraud
925be39aa1
python benchmark: add ipv6, ip forwarding
2015-07-23 01:16:39 -04:00
Adrien Béraud
a10ba60086
add python benchmark
2015-07-23 01:16:39 -04:00
Adrien Béraud
6d36f21822
python: add dhtscanner implementation
2015-07-15 12:49:41 -04:00
Adrien Béraud
790bfcd4ab
tools: add dhtscanner
...
The dhtscanner scans the network to get a full network map
2015-07-14 12:47:12 -04:00
Adrien Béraud
ac13795db0
crypto: add DecryptError
2015-07-14 12:47:12 -04:00
Adrien Béraud
593ca81dbd
infohash: add toFloat()
2015-07-14 12:09:14 -04:00