Adrien Béraud
f9b2285593
use string view literals where relevant
2022-03-29 14:47:01 -04:00
Adrien Béraud
ca5455302d
value: support std::string_view
2022-03-23 13:35:14 -04:00
Adrien Béraud
c59f951e5a
update copyright
2022-03-10 19:51:25 -05:00
Adrien Béraud
1ea7a2994e
value: use non-const PublicKey
2021-06-07 14:45:58 -04:00
Adrien Béraud
f99fe16a46
subset: use const ref
2021-05-28 13:17:25 -04:00
Adrien Béraud
e970cac4d7
infohash: expose toHex
2020-11-16 14:58:35 -05:00
Adrien Béraud
e7c810d5d6
value: don't print large values
2020-03-30 17:54:42 -04:00
Adrien Béraud
bc7c43dfd1
value: cleanup
2020-02-22 19:59:36 -05:00
Adrien Béraud
707fb39975
net: fix sending query in sendGetValues
2020-01-20 12:15:33 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
6a7ad871e2
value: toString prints raw data if text/plain
2019-12-19 15:12:23 -05:00
Adrien Béraud
54b1314ab8
value: optimize json parsing
2019-12-14 13:02:07 -05:00
Adrien Béraud
51c35d8b54
value: add priority
2019-12-14 13:02:07 -05:00
Adrien Béraud
fea736428e
msgpack: take const reference in unpack
2019-12-14 13:01:24 -05:00
Adrien Béraud
26c2e16a42
value: optimize json parsing
2019-12-14 00:41:41 -05:00
Adrien Béraud
e8b385c220
utils: optimize findMapValue
2019-12-13 23:57:22 -05:00
Adrien Béraud
c10aa32596
cpp: include config.h when necessary
2019-12-12 14:51:59 -05:00
Adrien Béraud
5e92777702
fix clang-tidy warnings
2019-03-17 19:22:28 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
989f32eb56
filter: cleanup and optimize
2019-02-19 01:59:59 -05:00
Adrien Béraud
1ca181db1d
value: simplify expression
2019-02-19 01:59:59 -05:00
Adrien Béraud
71b9672b96
value: don't print certificate id in toString by default
2018-12-28 01:38:45 -05:00
Adrien Béraud
aa202b2cd8
dhtrunner: add getNodeInfo()
...
Allow to retrieve all dht stats in a single API call using
the new method getNodeInfo() and the JSON-serializable
new structure NodeInfo.
2018-06-05 19:43:56 -04:00
Adrien Béraud
7b88a2122a
proxy: always use string tokens
2018-04-10 12:48:19 -04:00
Adrien Béraud
12db1f88dc
dht: introduce cache for values and operations
...
Multiplex multiple listen operations on a single key through
a unique listen operation on the network.
2018-03-16 13:34:32 -04:00
Sébastien Blin
547fa2eff5
dht_proxy_client: fix getCallback for push notifications
...
Note: Also fix Value deserialization
2018-03-05 19:15:04 -05:00
Adrien Béraud
15e3696b88
proxy client: fix build when push notifications are disabled
2018-01-13 16:16:19 -05:00
Sébastien Blin
6413571301
clean code
2017-11-06 12:53:35 -05:00
Sébastien Blin
8e43775394
update dhtnode + clean code
2017-11-01 14:52:29 -04:00
Sébastien Blin
dc66b3847a
make code for DHT Proxy Server optionnal
2017-11-01 14:52:29 -04:00
Sébastien Blin
c4ba8670e4
add Putxxx value endpoints
2017-11-01 14:52:29 -04:00
Sébastien Blin
a3348c85d6
value to JSON and begin to clean endpoints
2017-11-01 14:52:29 -04:00
Adrien Beraud
dc99919338
InfoHash: add explicit operator bool()
2017-11-01 11:59:11 -04:00
Adrien Béraud
1a54aff7bc
storage policies: use SockAddr
...
API-breaking change to use const SockAddr& instead of sockaddr*.
2017-10-13 01:10:09 +02:00
Adrien Béraud
323ad774e5
value: restore stream state after change
2017-10-09 15:14:20 +02:00
Adrien Beraud
1d84b34cf6
value: avoid checking failbit directly
...
failbit is implementation defined, use the bool operator instead.
2017-08-30 10:46:30 +02:00
Simon Désaulniers
b96d0de8a2
python: make use of Filter, Where in DhtRunner.get
2017-06-27 09:59:01 +02:00
Adrien Beraud
73bcebf355
license cleanup
2017-04-10 01:43:20 +02:00
Adrien Beraud
70ccbe4e40
value: remove FieldSelectorDescription
...
FieldSelectorDescription is just Value::Field and
adds nothing on top of it.
Remove it in favor of Value::Field.
2017-04-03 19:10:01 +02:00
Simon Désaulniers
b03a8b5b50
update license notice (2017)
2017-01-13 17:27:29 -05:00
Adrien Béraud
65c915fd9d
value: print hex value data contiguously
2016-11-23 11:01:14 -05:00
Adrien Béraud
659d893dee
network: transmit large values in multiple packets
2016-10-09 16:22:33 -04:00
Simon Désaulniers
ca6aa6706d
dht/value: make 'find_node' queries satisfied by any queries
...
'find_node' requests don't ask for values. Then, the idea of a Query makes less
sense, but since we still need those to map status to network engine requests,
we introduce dummy queries which with the field Query::none. Those queries will
then only serve as key to network engine's requests.
2016-09-23 19:27:58 -04:00
Simon Désaulniers
8f2cc937c5
dht: introduce light put
...
The 'put' operation will now first check if nodes already store the value we
have to announce. If so, we don't announce it to that node.
2016-09-08 12:24:35 -04:00
Adrien Béraud
690682408b
build with -pedantic-errors, fix pedantic build errors
2016-08-16 10:26:44 -04:00
Simon Désaulniers
07e4435a07
value: add Query relevant structures
2016-07-10 19:26:04 +02:00
Adrien Béraud
33f29e95f4
value: add common crypto ops
2016-06-15 13:35:44 -04:00
Adrien Béraud
cc18afd818
value: make 'owner' a shared_ptr
2016-05-17 20:39:16 -04:00
Adrien Béraud
d5dcfa0889
dht: introduce and enforce a maximum storage size
...
The default storage limit is 64 MB
2016-01-22 02:01:07 -05:00