Commit Graph
2527 Commits
Author SHA1 Message Date
Justus Ranvier 002b8377dd bump msgpack required version to 1.2 since package doesn't compile against 1.1 2015-12-22 16:19:35 -06:00
Justus Ranvier 263aef687c add -pthread to CXX_FLAGS 2015-12-22 16:18:51 -06:00
Guillaume Roguez 8c552d3466 default_types: virtualize msgpack_unpack
This is needed to override this method in inheriting.
2015-12-22 11:46:43 -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
Guillaume Roguez 1a888dbe66 Fix RCTP multi-inheriting in Serialized and derived classes
This patch fixes Serialized derived classes, using CRTP idom,
by fixing the "constructor forwarding problem".

A derived class has no to use dht::Value::Serialized<Derived, Base>
as super class, by replacing itself in "Derived" and use the
right "Base" class. Ex:

class MyImMessage : public dht::Value::Serializable<MyImMessage, dht::ImMessage>
{
  ...
}

No more needed to overload getType and define TYPE static.
2015-12-18 21:31:37 -05:00
Adrien Béraud 94bfc67708 value: add non-static unpack<T>() 2015-12-17 15:31:41 -05:00
Adrien Béraud d5ed6ca8e8 switch to new ICE serialisation 2015-12-17 15:31:41 -05:00
Adrien Béraud 62583557c0 rng: code cleanup 2015-12-17 15:31:41 -05:00
Adrien Béraud 8d1c3f1bbe dht: drop storage immediately after retransmission 2015-12-17 15:31:41 -05:00
Adrien Béraud e102e2b673 dht: findStorage now returns iterator instead of pointer 2015-12-17 15:31:41 -05:00
Adrien Béraud 884fcbe1e0 Update README.md 2015-12-17 11:22:47 -05:00
Adrien Béraud 0fafcacdfa Merge pull request #25 from sim590/dp-enhance
Data persistence: only store relevant values
2015-12-16 23:36:04 -05:00
Simon Désaulniers 38306eaec5 only one refill allowed before expiring search 2015-12-15 18:18:17 -05:00
Simon Désaulniers 04632a8288 fix findclosestnodes() (was inverted)... 2015-12-15 18:18:14 -05:00
Simon Désaulniers 2dcaef5c97 accept storing values based on XOR proximity to id. 2015-12-15 18:17:37 -05:00
Simon Désaulniers e447dc5e36 removed undefined function in header 2015-12-14 17:54:26 -05:00
Adrien Béraud b7e0f73931 Update README.md 2015-12-13 02:09:17 -05:00
Adrien Béraud 1f25263d71 Update README.md 2015-12-13 02:08:55 -05:00
Adrien Béraud c37a4411fc Update README.md 2015-12-13 01:31:03 -05:00
Adrien Béraud ebb4c5f983 Update README.md 2015-12-13 01:30:40 -05:00
Adrien Béraud 142ca8bf42 Update README.md 2015-12-13 01:13:09 -05:00
Adrien Béraud 0076ae001c dht: drop value after successfull announce 2015-12-10 17:26:39 -05:00
Adrien Béraud 9a301569a4 dht: use proper value in log 2015-12-10 15:06:25 -05:00
Adrien Béraud 74aae03b5f dhtnode: gracefully stop node 2015-12-10 13:18:55 -05:00
Adrien Béraud 67464fde9a dhtrunner: run shutdown in priority queue
Fix calling shutdown on a non-connected node.
2015-12-10 13:18:55 -05:00
Adrien Béraud 328a61df00 dht: preserve value creation time 2015-12-10 13:18:55 -05:00
Adrien Béraud 04aa3d3dba dht: improve value storage log 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 8fd71c7f3d dhtrunner: add missing shared_ptr<Value> versions of putSigned, putEncrypted. 2015-12-09 14:40:00 -05:00
Adrien Béraud af6f33e9ee Merge branch 'casparcedro-master' 2015-12-07 12:20:09 -05:00
Adrien Béraud aed80a04eb Merge branch 'master' of https://github.com/casparcedro/opendht into casparcedro-master 2015-12-07 12:11:32 -05:00
Adrien Béraud 7c1beeaa5c Merge pull request #17 from savoirfairelinux/yomgui-patch-dht
Simplify the simplification
2015-12-07 12:01:58 -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 0a4195ae08 Update README.md 2015-11-20 22:30:26 -05:00
Adrien Béraud aa08cf488c Merge pull request #19 from sim590/dp-enhance
performance fix to data persistence feature
2015-11-17 00:43:39 -05:00
Simon Désaulniers 725ca7a4d6 only remove Announce upon value expiration time 2015-11-16 22:15:06 -05:00
Adrien Béraud d1c4d2446e add Simon Désaulniers to author lists 2015-11-13 16:45:43 -05:00
Adrien Béraud cdec9b0d24 value: add documentation 2015-11-08 16:13:04 -05:00
Adrien Béraud 46ab981eab dhtrunner: update documentation 2015-11-08 16:13:04 -05:00
Adrien Béraud f94de5ac2b values: apply a maximum value size 2015-11-08 16:06:30 -05:00
Adrien Béraud 4aebef5e51 dhtrunner: don't block networking thread during processing 2015-11-08 16:06:30 -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 430daf5986 add utils module for common definitions/utilities 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 8575bd4f96 dht: allow to specify address family for getPublicAddress 2015-11-06 01:49:13 -05:00
Adrien Béraud a340943994 dht: clear bad nodes on connectivity change 2015-11-06 00:51:58 -05:00
Adrien Béraud a073fd468d autoconf: add readline dependency for tools 2015-11-06 00:51:58 -05:00
Adrien Béraud 4f74a3b10d update version to 0.5 v0.5 2015-11-04 00:56:23 -05:00
Adrien Béraud 014bf168bb tools: use GNU Readline
* live command edition
* history browsing
2015-11-04 00:50:12 -05:00