Seva
fc3686d817
dhtproxy: comment/remove restbed leftovers to build w/o
2019-06-06 11:08:39 -04:00
Seva
6266f88cd5
dhtproxy: port doPut,sendListen logic new http client
2019-06-04 17:21:44 -04:00
Seva
0a3320e2c8
dhtproxy: enhance http async api & finish client get
2019-06-04 16:14:37 -04:00
Seva
10971f700f
dhtproxy: add http classes with fully async client
...
use server's pushNotifications of this client
2019-06-03 17:10:19 -04:00
Seva
3252e6daa3
dhtproxy: rewrite sendListen with restinio
2019-05-29 11:59:09 -04:00
Seva
07599239a6
dhtproxy: port restbed client listen to server
2019-05-28 11:39:04 -04:00
Seva
eac61678f4
dhtproxy: add client request conn_cb for listeners
2019-05-28 10:26:47 -04:00
Seva
078c1198b0
Merge branch savoirfairelinux 'master' changes
2019-05-27 15:23:26 -04:00
Seva
3d525030b9
dhtproxy: add async put & swap threading for io_context
2019-05-27 15:06:11 -04:00
Seva
3733fc2890
dhtproxy: switch threading to io_context
2019-05-27 15:06:11 -04:00
Seva
c40f35fa06
dhtproxy: fix context type casting in client get
2019-05-27 14:59:19 -04:00
Seva
4e934f8902
dhtproxy: add ipv6 to restinio client & get method
2019-05-27 14:59:19 -04:00
Seva
125a05a5fc
dhtproxy: fix sendPushNotification
2019-05-27 14:59:19 -04:00
Seva
868c114bcb
dhtproxy: fix restinio client rx by parts
2019-05-27 14:59:19 -04:00
Seva
f0acc3e735
dhtproxy: add sendPushNotification to server
2019-05-27 14:59:19 -04:00
Seva
171e2b130b
dhtproxy: implement restinio client
2019-05-27 14:59:19 -04:00
Seva
1c3132e0ef
dhtproxy: add async put & swap threading for io_context
2019-05-27 14:57:05 -04:00
Seva
f3e304e661
dhtproxy: switch threading to io_context
2019-05-27 11:17:51 -04:00
Seva
2545282624
dhtproxy: fix context type casting in client get
2019-05-26 09:50:44 -04:00
Seva
ab082543ea
dhtproxy: add ipv6 to restinio client & get method
2019-05-24 11:01:35 -04:00
Seva
bd994384f0
dhtproxy: fix sendPushNotification
2019-05-22 17:23:36 -04:00
Seva
598e38dbf4
dhtproxy: fix restinio client rx by parts
2019-05-22 16:21:07 -04:00
Seva
b1a35b82a2
dhtproxy: add sendPushNotification to server
2019-05-22 11:55:37 -04:00
Seva
c7844fc320
dhtproxy: implement restinio client
2019-05-22 10:29:27 -04:00
Adrien Béraud
c7e2483160
dht: add logger to constructor
2019-05-22 00:47:25 -04:00
Adrien Béraud
17b772e6cc
proxy client: close all sockets before joining
2019-04-20 22:38:36 -04:00
Adrien Béraud
75738ac28b
proxy client: don't hold lock while calling callback
2019-04-20 22:07:48 -04:00
Adrien Béraud
35a9d1f612
proxy client: catch exception in Http::close()
2019-04-18 17:38:00 -04:00
Adrien Béraud
af940c63b1
proxy: mute unused variable warning if disabled
2019-04-13 23:02:57 -04:00
Adrien Béraud
e86d717e81
dht: make getPut() const
2019-04-05 10:49:35 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
9319bec7b8
proxy client: close previous request on resubscribe
2019-02-19 18:43:14 -05:00
Adrien Béraud
e5f2a6eef5
proxy: send expired to sync values
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
a1f8cc906c
proxy client: use SyncCallback
2019-02-19 01:59:59 -05:00
Adrien Béraud
35c6a57526
dht: add synced status
2019-02-19 01:59:59 -05:00
Sébastien Blin
79a2f4280f
proxy: resolve url with protocol and port
2019-02-14 11:04:11 -05:00
Sébastien Blin
769ce45740
proxy_client: support prototype in serverHost
2019-01-22 07:56:27 -08: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
14f6e6e5f3
proxy client: catch exceptions in restbed::Http::async
2018-12-22 23:45:37 -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
Sébastien Blin
00a9333de7
dht_proxy_client: fix finished behavior
...
callback_.emplace_back() returns immediately, so, in some case,
finished can be set to true even before we execute one callback.
Finished should not be used into callback. This patch adds a
finished variable only used by the callbacks to avoid this
case.
This improve the reactivity of the proxy client.
2018-11-11 15:27:57 -05:00
Adrien Béraud
ff83a6daab
proxy: support value expiration
2018-10-29 12:45:52 -04:00
Sébastien Blin
6069fba18f
dhtproxyclient: fix ok when a permanent PUT operations fails
2018-07-31 09:42:23 -04:00
Sébastien Blin
3cf2c092f2
proxy: remove useless convertion from InfoHash to InfoHash
2018-06-06 12:16:10 -04:00
Sébastien Blin
0c61a605ad
proxy: refresh puts and subscriptions when connectivity changes
2018-06-06 11:29:40 -04:00