97 Commits
Author SHA1 Message Date
Adrien Béraud 3283e34dcf pht: rebase over queries 2016-09-01 18:02:23 -04:00
kaldoran 2d8fe502f2 Fix print of the lookup output 2016-09-01 18:02:23 -04:00
kaldoran d2ccde4859 pht: bit padding when the key is too short 2016-09-01 18:02:23 -04:00
Simon Désaulniers b6832869b1 pht: moved some defs in cpp file 2016-09-01 18:02:23 -04:00
Simon Désaulniers f8cf1316ad 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-09-01 18:02:23 -04:00
Simon Désaulniers 736606a845 pht: a Key is rather map str:Blob not str:Prefix 2016-09-01 18:02:23 -04:00
Adrien Béraud eb90fffb5e update for API changes 2016-09-01 18:02:23 -04:00
kaldoran 041e280bde benchmark: timing pht insert operations 2016-09-01 18:02:23 -04:00
Simon Désaulniers 63c4eeb9c9 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-09-01 18:02:23 -04:00
Simon Désaulniers d45f777099 pht tools 2016-09-01 18:02:23 -04:00
Adrien Béraud 132fe66699 dhtnode: cleanup 2016-07-29 15:49:43 -04:00
Adrien Béraud a28fc4dfb1 tools: remove optional arguments 2016-07-29 15:39:50 -04:00
Simon Désaulniers 0fa8cfdb71 tools: enable queries in dhtnode 2016-07-10 19:26:13 +02:00
Simon Désaulniers 49129ec1b2 tools: specify optional arg syntax -o[ARG] 2016-06-30 01:33:14 +02:00
Simon Désaulniers 29834b714e dhtnode: manpage and add all options in help text 2016-06-28 18:51:40 +02:00
Simon Désaulniers bba27adf4d dhtnode: fix getopt optional arg parsing 2016-06-27 21:14:54 +02:00
Adrien Béraud b09e3df2e2 add network id to distinguish different networks 2016-06-21 03:06:47 -04:00
Adrien Béraud 5bcf1da505 autotools: cleanup 2016-06-11 16:10:27 -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