Mingrui Zhang
092cb9551e
peerdiscovery: add testpack into tester to verify the possibility of sending & receiving 2 packages simultaneously (including stop functions)
2019-04-18 09:33:15 -04:00
Mingrui Zhang
a2bbca792c
peerdiscovery: add dmtx_ to distinguish send & listen shared resources, add stopDiscovery, stoplisten to stop listen or discover certain type of service
2019-04-17 10:26:49 -04:00
Adrien Béraud
5ec72e213e
dht: add override
2019-04-17 10:00:15 -04:00
Mingrui Zhang
0f51115f44
peerdiscovery: modify maps to handle more services in one instance
2019-04-16 15:11:07 -04:00
Mingrui Zhang
18aa6ddb7b
peerdiscovery: modify function signatures to make service consistent
2019-04-15 18:24:15 -04:00
Mingrui Zhang
763ffddf51
peerdiscovery: modify to add support for sending and receiving msgpack
2019-04-15 16:50:48 -04:00
Adrien Béraud
ef82652a1e
network: header cleanup
2019-04-14 11:30:10 -04:00
Adrien Béraud
5257ac314f
add API to retrieve version string
2019-04-14 00:19:01 -04:00
Adrien Béraud
af940c63b1
proxy: mute unused variable warning if disabled
2019-04-13 23:02:57 -04:00
Adrien Béraud
15da502354
dhtrunner: make peer discovery port static constexpr
2019-04-13 22:56:31 -04:00
Adrien Béraud
b7a9a52f97
network engine: DhtProtocolException cleanup
2019-04-13 22:56:31 -04:00
Adrien Béraud
453db29058
dht: add override to getNodeId
2019-04-13 20:43:57 -04:00
Adrien Béraud
7fe321e4fc
peerdiscovery: cleanup data serialization
2019-04-09 14:57:48 -04:00
Adrien Béraud
01d8e513a1
peerdiscovery: cleanup
2019-04-08 11:34:52 -04:00
Mingrui Zhang
4240820463
peerdiscovery: add multicast node discovery mechanism
2019-04-08 11:32:08 -04:00
Adrien Béraud
7ebbf17f37
InfoHash: use static size
2019-04-05 11:21:23 -04:00
Adrien Béraud
6821e5bd96
dhtrunner: default to null function instead of AllFilter
2019-04-05 10:49:40 -04:00
Adrien Béraud
e86d717e81
dht: make getPut() const
2019-04-05 10:49:35 -04:00
Adrien Béraud
c647b19e91
infohash: make some methods constexpr, noexcept
2019-04-03 14:52:35 -04:00
Adrien Béraud
9b881d4e95
crypto: add initial certificate request support
2019-03-29 13:13:29 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
71599da8ea
value: add "not" method
2019-03-16 14:27:23 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
57ea09808e
value: fix chain null check
2019-03-10 16:39:31 -04:00
Adrien Béraud
fec5a6ede7
make move operators noexcept
2019-03-10 16:39:16 -04:00
Adrien Béraud
04850e1701
dht: add configuration to persist state
2019-03-10 16:39:16 -04:00
Adrien Béraud
a30f1b8032
dht: make exportNodes const
2019-03-10 16:39:16 -04:00
Adrien Béraud
1c74c2207f
proxy server: cache json StreamBuilder
2019-02-19 18:43:14 -05:00
Adrien Béraud
55f6c847b8
build: use define flags for proxy
2019-02-19 18:43:14 -05:00
Adrien Béraud
00cc4ebe28
proxy server: send push notification on thread pool
2019-02-19 18:43:14 -05:00
Adrien Béraud
aa93db4fa6
proxy server: move json to sendPushNotification
2019-02-19 18:43:14 -05:00
Adrien Béraud
989f32eb56
filter: cleanup and optimize
2019-02-19 01:59:59 -05:00
Adrien Béraud
a1f8cc906c
proxy client: use SyncCallback
2019-02-19 01:59:59 -05:00
Sébastien Blin
75a14d3608
proxy: only get old values at first subscribe
2019-01-18 22:53:24 -08:00
Sébastien Blin
3a3933e6d5
dhtproxy: remove sendSubscribe
2019-01-14 10:53:08 -08:00
Sébastien Blin
70f09ded3f
dhtproxy: avoid notification after subscribe to retrieve values
2019-01-14 10:53:08 -08:00
Sébastien Blin
36cf70f2a7
proxy: remove useless token for push listeners
...
Since we authentificate listeners with the clientId and the hash and
we use only one listener by hash/clientId, we doesn't need to store
a token always equals to 0.
Note: also avoid to get multiple hashes for one push notification.
2018-12-30 13:35:18 -05:00
Adrien Béraud
c0e376e15a
dht: reduce log verbosity
2018-12-28 01:41:10 -05:00
Adrien Béraud
7f0a5dfda3
dht: increase max number of searches and hashes
2018-12-26 10:28:55 -05:00
Adrien Béraud
6d7f8004bf
connectivity change: reset routing table instead of searches
2018-12-26 10:28:30 -05:00
Adrien Béraud
3b26684a87
network engine: add default values for sendFindNodes
2018-12-19 14:07:55 -05:00
Adrien Béraud
7dda5a3d5a
proxy client: schedule listener restart
2018-12-18 10:10:14 -05:00
Adrien Béraud
306d573223
proxy client: fix race condition
2018-12-17 16:41:00 -05:00
Adrien Béraud
f2f913f93f
securedht: add override for relevant methods
2018-12-11 14:04:35 -05:00
Adrien Béraud
4948bd7ad3
node cache: remove expired weak pointers from cache
...
Remove expired Node weak pointers regularly,
in a way that ensures that:
* every expired pointer gets eventually cleaned up
* expired pointer ratio remains reasonably low
* no cleanup pass blocks the node for too long,
* impact on performance is negligible
Impact on performance:
Every N insertions, at most N nodes are tested by iterating the map
-> performance impact in O(1) (constant).
2018-11-29 19:27:32 -05:00
Adrien Béraud
c6bb67d1ac
dht: add storageRefresh
2018-11-26 01:57:57 -05:00
Adrien Béraud
2dd4e640c4
dhtrunner: add APIs for listen<T> with expiration information
2018-11-25 23:01:03 -05:00
Adrien Béraud
b2542a57df
securedht: cache value signature check/decryption results
2018-11-22 15:43:55 -05:00
Adrien Béraud
00c1be9cdc
logger: use DBG for DEBUG to avoid name conflicts
2018-11-22 15:43:55 -05:00
Adrien Béraud
971f96bf95
dhtrunner: improve getId()/getNodeId() documentation.
2018-10-29 16:23:21 -04:00