AmarOk
d19ba2cb41
proxyserver: add lock_guard to avoid to manually unlock
2017-12-06 14:43:28 -06:00
AmarOk
557323deff
refactor: use new jsoncpp API
...
Use the latest jsoncpp API to remove depreciation warning.
2017-12-06 08:49:24 -06:00
AmarOk
b1a9742889
dhtproxyclient: add lock_guards for mutex and clean code
2017-12-04 09:42:37 -06:00
Sébastien Blin
e7d8bc4275
proxyclient: erase finished operation threads
2017-11-29 14:44:02 -05:00
Sébastien Blin
eb750f5b7f
proxy_client: execute callbacks in main thread
2017-11-27 17:51:33 -05:00
Sébastien Blin
5967c89c23
proxy: don't reinit dhtproxy multiple times and forward encrypted messages
...
+ Having a null dht_proxy_client can lead to using nullptr.
+ securedht should forward messages if we are using a proxy.
+ Protect callback segfault
2017-11-22 16:09:45 -05:00
Sébastien Blin
eb1f9d64e1
dhtproxyclient: add listen ability.
...
+ Fix LISTEN endpoint for DhtProxyServer
= DhtProxyServer use multiple worker threads
+ Add listen/cancelListen for DhtProxyClient
+ Add connectivityChanged.
2017-11-20 16:01:44 -05:00
Sébastien Blin
cb72c104fd
proxy: implement basic DhtProxyClient with the ability to get and put.
...
+ Add an abstract class to describe the Dht
+ Now, we can modify the Dht linked to a SecureDht. So we can choose
between the classic Dht and the Dht using a proxy.
+ Implement a basic client which can Get and Put values on the Dht using
the proxy.
Note: Update dhtnode to have the ability to use the DhtProxyClient.
Todo: Implement Listen, ping, connectivityChanged for the client.
2017-11-20 15:45:29 -05:00
Adrien Béraud
d7aaa4ae56
proxy server: add Access-Control-Allow-Origin
2017-11-08 15:12:43 -05:00
Sébastien Blin
65e88f2fa6
build: toInfoHash->to
2017-11-08 15:07:04 -05:00
Sébastien Blin
e2c534df5a
add std::bind, fix put, avoid overflow on base64
2017-11-08 14:33:07 -05:00
Sébastien Blin
2ca2835c9b
add options method handler
2017-11-08 12:14:44 -05:00
Sébastien Blin
bbe922dd7d
remove headers, fix HTTP status, fix get /
2017-11-07 16:08:55 -05:00
Sébastien Blin
67ba435ba6
base64: take the old implementation from ring-daemon
2017-11-06 16:24:00 -05:00
Sébastien Blin
6413571301
clean code
2017-11-06 12:53:35 -05:00