Adrien Béraud
e0393ff8ad
Merge pull request #403 from binarytrails/proxy_restinio
...
dhtproxy: replace restbed by restinio & asio
2019-08-14 15:50:14 -04:00
Seva
023b4aff61
dhtnode: use generated identity only if specified
2019-08-13 14:53:45 -04:00
Seva
86429aa360
http: support all connections contd.
2019-08-13 13:45:10 -04:00
Seva
96992b803c
dhtproxy: implement https in server
2019-08-10 15:34:36 -04:00
Seva
b01d3cfca5
dhtproxy: add identity to constructor if openssl
2019-08-07 11:57:18 -04:00
Adrien Béraud
c1f805e6e2
tools: use default port from network utils
2019-08-02 19:53:39 -04:00
Seva
a72ddfdb03
dhtnode: fix shutdown deadlock
2019-07-16 15:57:19 -04:00
Seva
cf18effebb
dhtnode: fix logging
2019-06-25 15:21:49 -04:00
Seva
2067cb052f
dhtproxy: default to curly brakets instead of nullptr
2019-06-21 13:10:33 -04:00
Seva
971f590941
Merge branch 'master' github.com:savoirfairelinux/opendht into proxy_restinio
2019-06-13 17:19:49 -04:00
Adrien Béraud
777505434c
tools: always handle signals, don't block in signal handling
2019-06-08 09:23:34 -04:00
Adrien Béraud
18c3161261
tools: allow to use existing certificate/private key
2019-06-08 01:43:07 -04:00
Seva
2e7767d192
dhtproxy: fix restinio start w/o dhtlogger
2019-06-03 13:52:35 -04:00
Seva
330ad8ed12
dhtproxy: pipe restinio logs to opendht logger
2019-05-29 16:02:25 -04:00
Adrien Béraud
e4516772ee
dht: log cleanup
2019-05-22 11:20:27 -04:00
Adrien Béraud
c7e2483160
dht: add logger to constructor
2019-05-22 00:47:25 -04:00
Adrien Béraud
d0362e58e0
dhtnode: update dht instance name
...
Avoid confusion with the namespace
2019-04-25 23:33:22 -04:00
Adrien Béraud
958cb250a3
dhtnode: show both IPv4, IPv6 bound ports
2019-04-23 12:13:53 -04:00
Adrien Béraud
c2fdf6ae92
dhtnode: show grouped get results, improve duration display
2019-04-21 21:39:54 -04:00
Adrien Béraud
5257ac314f
add API to retrieve version string
2019-04-14 00:19:01 -04:00
Adrien Béraud
96347d83e1
tools: add argument for peer discovery
2019-04-08 11:34:52 -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
04850e1701
dht: add configuration to persist state
2019-03-10 16:39:16 -04:00
Adrien Béraud
55f6c847b8
build: use define flags for proxy
2019-02-19 18:43:14 -05:00
Sébastien Blin
f54fcd768f
proxyserver: add stats endpoint for monitoring
2018-08-10 15:03:09 -04:00
Adrien Béraud
1fe9f2fdb1
dhtnode: default-initialize dht config
2018-05-23 11:21:25 -04:00
Adrien Béraud
9f35acf559
dhtnode: continue cmd loop on connectivity change
2018-05-05 18:23:52 -04:00
Adrien Béraud
8b6dcb1cd5
dhtnode: allow to trigger connectivity change
2018-04-19 11:31:08 -04:00
Adrien Béraud
7c5145bca5
dhtnode: don't maintain storage
2018-04-10 16:01:14 -04:00
Sébastien Blin
5b71af3cec
proxy: remove useless callback_id
...
callback_id was used for token problems which are not present anymore.
Now token is sufficient and we can remove callback_id.
2018-04-03 10:43:56 -04:00
Adrien Béraud
0edee443f5
cache: improve value expiration handling
2018-03-28 09:54:04 -04:00
Adrien Béraud
2f4acd26d6
dhtinterface: add listen() callback to signal expired values
2018-03-16 13:34:41 -04:00
Adrien Béraud
4261bd2c85
dhtinterface: remove resubscribe
2018-03-16 13:34:32 -04:00
Adrien Béraud
80b944d943
dhtnode: prevent crash in cancelListen
2018-03-14 23:39:35 -04:00
Adrien Béraud
c9cbced0c8
build: make indexation optional
2018-02-27 21:48:49 -05:00
Adrien Béraud
2cf2112aec
dhtnode: simplify macros
2018-02-27 21:33:48 -05:00
Sébastien Blin
22ef53acef
dhtproxy: fix cancelListen with pushNotifications
...
Fill the body of the UNSUBSCRIBE method and fix dhtnode application
2018-02-26 15:25:48 -05:00
Sébastien Blin
63c9c607bd
pushnotifications: fix build without push notifications, improve travis script
2018-02-26 13:27:06 -05:00
Adrien Béraud
2c0f4a897c
dhtnode: fix cancelListen
2018-02-10 14:31:00 +01:00
Sébastien Requiem
962249ec75
Generates RSA pairs for dhtnode instead of EC cert
...
* dhtnode was generating twice an EC cert which rendered encryption
impossible since opendht lib is expecting an RSA public key to encrypt
the data for the destination.
* fix savoirfairelinux/opendht#235
2018-02-08 10:56:17 +01:00
Adrien Béraud
c03ba57895
dhtnode: use explicit unique_ptr constructor
2018-02-07 17:40:59 +01:00
Adrien Béraud
e274ffd83b
headers: unify API across build options
2018-01-31 18:07:43 +01:00
Adrien Béraud
636eb1972d
proxy client: improve robustness, switch behavior
2018-01-18 16:36:13 -05:00
Adrien Béraud
15e3696b88
proxy client: fix build when push notifications are disabled
2018-01-13 16:16:19 -05:00
Adrien Béraud
ca693a6ac1
pushNotificationReceived: take a map<string, string>
...
JSON is used for the DHT proxy protocol and to communicate with gorush.
Push notifications services might use any format, not necessarily JSON.
Push values are received as a map<string, string>, so receive them in
that format.
2018-01-12 13:20:07 -05:00
Adrien Béraud
227cca883c
dhtrunner: start proxy ASAP, use local dht for node stats/import/export
2018-01-11 14:24:59 -05:00
Adrien Béraud
a0d8f4734a
dhtproxy: allow token refresh, set clientID ( #6 )
...
* add method to set the push token independently from other configuration,
since the push token can be updated during runtime.
* allow to provide a "clientID" to be sent in push notifications,
used to demultiplex push notifications to multiple OpenDHT nodes running
on the same host. For instance Ring uses the accountID as the clientID
to know which account received the push notification.
* use {"platform":"android"/"ios"} to communicate the platform instead of {"isAndroid":true/false}.
2018-01-10 16:32:57 -05:00
Sébastien Blin
37a9a3d9da
dhtproxy: inject push notifications in opendht
...
+ add the ability to inject push notifications in opendht to call
correct callbacks
+ if a timeout occurs and no cancelListen was called, relaunch the
listen operation
+ Pass devicekey to enable push notifications for DhtProxyClient
+ Update sockaddr to fix the build on all platforms
Note: update dhtnode
2017-12-12 15:03:02 -06:00
Sébastien Blin
75cca66d7e
dhtproxy: support push notifications for mobile clients
...
+ Add SUBSCRIBE and UNSUBSCRIBE for DhtProxyServer
+ Add the ability to stop Listen via a timeout (and send a push
Notification for the client)
+ Add the ability to use gorush to send push notifications
Note: Update dhtnode
2017-12-12 10:24:54 -06:00