88 Commits
Author SHA1 Message Date
kaldoran e279728483 Fix print of the lookup output 2016-08-16 15:32:08 -04:00
kaldoran c08333f213 pht: bit padding when the key is too short 2016-06-29 22:32:13 +02:00
Simon Désaulniers 81df8982a8 pht: moved some defs in cpp file 2016-06-17 15:44:10 -04:00
Simon Désaulniers bb3069170c pht: add key spec, handling maximum prefix length
This commit adds the new KeySpec in the Pht constructor signature so that all
keys used inside a same PHT structure have the same maximal length.
2016-06-17 15:44:05 -04:00
Simon Désaulniers d5e6ef007c pht: a Key is rather map str:Blob not str:Prefix 2016-06-14 17:46:14 -04:00
Adrien Béraud 08465a6c9a update for API changes 2016-06-07 12:13:20 -04:00
kaldoran a5e3597e68 benchmark: timing pht insert operations 2016-06-07 11:47:17 -04:00
Simon Désaulniers 00d3335ad6 cover empty leaf case in inexact match lookup
In case this is inexact match lookup and we end up on an empty leaf (diffrent
than the root), the search goes on in the leaf's sibling subtree.
2016-06-07 11:46:24 -04:00
Simon Désaulniers fd32e6c42e pht tools 2016-06-07 11:46:24 -04:00
Adrien Béraud 8cc53b1751 add node cache, split dhtrunner.h from dht.h 2016-05-08 00:37:52 -04:00
Simon Désaulniers 8cce5cd6e8 removed commented duplicate utility function 2016-05-02 15:25:15 -04:00
Adrien Béraud 3367043e92 NE fixes 2016-05-02 15:25:15 -04:00
Simon Désaulniers badf9a3027 replaced tabs with spaces in multiple files. 2016-05-02 15:25:15 -04:00
Simon Désaulniers ba5953bc6b reference instead of copy, removing forgotten cout 2016-05-02 15:25:15 -04:00
Simon Désaulniers 4b13fcac70 fixing various compilation errors 2016-05-02 15:25:14 -04:00
Adrien Béraud 6e0e63c3a5 CMake: add static/shared library build options
Add -DOPENDHT_STATIC=Off to disable static library build,
add -DOPENDHT_SHARED=Off to disable shared library build.
2016-04-30 03:16:05 -04:00
Baptiste Jonglez 269fc57f22 dhtscanner: Report both IPv4 and IPv6 for the same ID (dual-stacked peers) 2016-04-28 12:08:22 +02:00
Simon Désaulniers 4e54ac3ac3 dht: adding dht::log common utilities namespace 2016-04-08 18:36:02 -04:00
Adrien Béraud e00c8e9598 update copyright headers for 2016 2016-01-07 18:02:35 -05:00
Adrien Béraud 439b7d966c dhtnode: daemonize with the new -d argument
Running dhtnode with -d will make it detach and fork.
Add an argument to -v to log to a file instead of stdio.
2015-12-19 20:33:03 -05:00
Adrien Béraud 74aae03b5f dhtnode: gracefully stop node 2015-12-10 13:18:55 -05:00
Adrien Béraud 2842f45cbd dhtchat: show public key ID 2015-12-09 14:40:58 -05:00
Adrien Béraud af6f33e9ee Merge branch 'casparcedro-master' 2015-12-07 12:20:09 -05:00
casparcedro 895492450c Updated tools/tools_common.h to remove std::to_string
Fixed for building with cygwin.
2015-12-06 23:07:55 -05:00
casparcedro fb0450d309 Updated tools/dhtnode.cpp to remove std::to_string
Fixed for building with cygwin.
2015-12-06 23:06:06 -05:00
Adrien Béraud 7e346cfcb8 update license terms
* removed OpenSSL exception
  (OpenDHT doesn't make use of OpenSSL)
* properly capitalize "Savoir-faire Linux"
2015-11-08 16:06:30 -05:00
Adrien Béraud 78e5c6fc5f autoconf: readline dependency is mendatory 2015-11-06 13:07:46 -05:00
Adrien Béraud 014bf168bb tools: use GNU Readline
* live command edition
* history browsing
2015-11-04 00:50:12 -05:00
Adrien Béraud 64d52f7418 tools: more constness 2015-11-04 00:50:12 -05:00
Adrien Béraud a298c2065c dhtnode: add command b to ping a node 2015-10-18 02:32:51 -04:00
Adrien Béraud 4caa8ce126 dhtnode: improve help messages 2015-10-18 02:32:51 -04:00
Adrien Béraud 4ecd212517 dhtrunner: support port 0 (OS assigned port) 2015-10-18 02:32:51 -04:00
Adrien Béraud 30a484cbe2 dhtnode: move help to it's own function 2015-10-18 02:32:51 -04:00
Adrien Béraud 1b7ba2a24d ImMessage: add id, use MSGPACK_DEFINE_MAP 2015-10-16 13:44:18 -04:00
Adrien Béraud 45d8817e32 tools: install to bin instead of libexec
tools are meant to be used by humans (for testing the DHT),
not by programs.
2015-08-25 22:12:21 +02:00
Adrien Béraud 95da14254b cmake: install tools 2015-08-25 21:39:33 +02:00
Simon Désaulniers 167a447d5f fix dhtnode typo 2015-08-21 19:42:32 -04:00
Adrien Béraud e1b9256f19 Merge pull request #14 from savoirfairelinux/v2
Release version 2
2015-08-19 16:21:09 -04:00
Shaun Daley b205f96a13 bug fix: in DHTChat tool, signed message should emit entire line 2015-08-19 01:38:32 +02:00
Adrien Béraud c4dfd40199 tools: allow IPv6 bootstrap cmd argument 2015-08-13 16:02:12 -04:00
Adrien Béraud 844d371320 add initial cmake support 2015-08-13 11:28:29 -04:00
Adrien Béraud 46d59141ac tools: add "-v" cmd argument to enable logging 2015-08-13 11:28:29 -04:00
Adrien Béraud 873fbd3d8e dht: add public address reporting 2015-08-06 15:41:16 -04:00
Adrien Béraud 30f083d45a dhtnode: make ID generation optional 2015-08-04 23:40:30 -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 c9ee6eca44 move python to top directory 2015-07-27 15:18:23 -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 8693d7301d python scanner: improve appearance 2015-07-24 01:02:35 -04:00