Adrien Béraud
e00c8e9598
update copyright headers for 2016
2016-01-07 18:02:35 -05: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
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
Simon Désaulniers
38306eaec5
only one refill allowed before expiring search
2015-12-15 18:18:17 -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
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
8fd71c7f3d
dhtrunner: add missing shared_ptr<Value> versions of putSigned, putEncrypted.
2015-12-09 14:40:00 -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
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
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
5e265505e9
fix some clang warnings
2015-11-04 00:50:12 -05:00
Simon Désaulniers
4bee62741f
data persistence for all data
2015-11-02 16:45:50 -05:00
Simon Désaulniers
c7298088d9
getNodesStats resets 0, shutdown method in Dht API
2015-11-02 16:45:50 -05:00
Adrien Béraud
184dc17aa8
value: improve serialization backward compatibility
2015-10-24 01:40:59 -04:00
Adrien Béraud
5b0fb9682b
dhtrunner: return port in host byte order
2015-10-21 01:41:23 -04:00
Adrien Béraud
4ecd212517
dhtrunner: support port 0 (OS assigned port)
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
4aca35a5a8
defaul_types: add override
2015-10-16 13:44:18 -04:00
Adrien Béraud
3596f8a97c
default_types: fix unused warning
2015-10-16 13:44:18 -04:00
Adrien Béraud
42c32f98c8
dht: count incoming packets
2015-10-16 13:44:18 -04:00
Adrien Béraud
eea097961a
dht: add message counting
2015-10-06 11:58:26 -04:00
Adrien Béraud
a7bea1c953
infohash: add support for std::hash
2015-09-02 19:40:31 +02:00
Adrien Beraud
6e6882ca7a
dht: cleanup
2015-09-01 18:10:00 +02:00
Adrien Beraud
0ea48ed1de
dht: remove custom memmem
2015-09-01 17:42:07 +02:00
Adrien Béraud
4096e7ff03
dht: bootstrap local id on first connection
2015-09-01 16:46:42 +02:00
Adrien Béraud
f3eb11270d
rng: static initialisation of hasRdrand()
2015-08-24 16:38:40 +02:00
Adrien Béraud
ac08beb582
dht: search own id
2015-08-24 16:38:40 +02:00
Adrien Béraud
40f7399d48
value: encypted value is not signed (until decrypted)
2015-08-23 17:36:24 +02:00
Adrien Béraud
ab0cb7433d
value: properly move user_type
2015-08-20 15:05:06 -04:00
Adrien Béraud
aae6484a58
dhtrunner: delay ops until dht is connected (except bootstrap)
2015-08-18 13:47:33 -04:00
Adrien Béraud
ee501d0060
Filter: cleanup
2015-08-18 12:18:19 -04:00
Adrien Béraud
790c32048c
ValueSerializable: refactoring
2015-08-18 10:57:46 -04:00
Adrien Béraud
d5ff0e2187
dhtrunner: unpack value
2015-08-14 21:37:51 -04:00
Adrien Béraud
fa304786c1
IceCandidates: use private value ID
2015-08-13 16:23:49 -04:00
Adrien Béraud
cdcaebbc80
crypto: use AES-GCM + RSA for encryption rather than RSA-ECB
2015-08-13 11:28:29 -04:00
Adrien Béraud
70dfb4bbcf
use msgpack for dht protocol and value serialization
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
15f3dee293
introduce configuration structure
2015-08-05 21:55:20 -04:00