Adrien Béraud
7f1d960a56
dhtrunner: add async/non-blocking version of getNodeInfo
2020-01-16 13:24:37 -05:00
Adrien Béraud
91e1e942ab
Update peer_discovery.cpp
2020-01-15 23:16:36 -05:00
Adrien Béraud
ae89365f23
Update peer_discovery.cpp
2020-01-15 23:16:36 -05:00
Adrien Béraud
93cd8d541c
Update peer_discovery.cpp
2020-01-15 23:16:36 -05:00
Paymon
9487bc5e42
implement connectivity change in peer discovery
...
this makes peer discovery pub/sub on connectivity change, it aims to
make peer discovery more energy efficient.
also, stop echo'ing.
TODO:
in its current implementation however, peer_discovery operates in the
dark; it doesn't know routes available to it (v4 vs v6); nor does it
know of the state of the link(s) (UP vs. DOWN) and therefore it merely
tries to, on connectivity change, (re)pub/sub on previous ip version
routes.
IDEA:
open an interface to kernel so that peer discovery, and perhaps others,
can learn about the routes available to them.
don't leave
add query() and direct publish(endpoint)
check if peer discovery was request (run and compile time)
add try/catch routine to DomainPeerDiscovery's constructor
2020-01-15 23:16:36 -05:00
Adrien Béraud
10d48137a9
proxy server: update stats on node info
2020-01-15 17:04:12 -05:00
Adrien Béraud
5b15fdeeef
proxy server: use shared_ptr for stats, remove statsMutex_
2020-01-15 13:54:24 -05:00
Adrien Béraud
3ba43c80a2
http: add weak_ptr to Request in Response
2020-01-15 11:45:26 -05:00
Adrien Béraud
16333f4224
http: add mutex to Request, Connection
2020-01-15 11:45:03 -05:00
Adrien Béraud
0864ac9a39
proxy server: handle put session id provided after first request
2020-01-10 12:26:57 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
dea4b202bf
proxy server: make json type explicit
2020-01-03 15:10:22 -05:00
Adrien Béraud
dc2f354652
proxy: use timestamps to handle reordered notifications
2020-01-03 14:47:22 -05:00
Sébastien Blin
87041e301f
proxyclient: refresh put on restartListeners
...
There is no need to check if the put is ok or not before refreshing it. Indeed,
the first successful put will make the ok flag to true. But, if an expiration
is missed (when not connected for example), the put will not be refreshed when
the connectivity will change (moreover, server and client can have different
timeouts).
2020-01-03 11:39:05 -05:00
Sébastien Blin
189f94442e
dhtproxyclient: setPushNotification before first permanent put
...
When SecureDHT is initialized, a permanent put is done to announce the node
and then the push token is set. This means the the first permanent put will not
get expirations notification because it's considered as a non push device's put.
We should inject the push token as soon as possible.
2020-01-03 11:39:05 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -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
99890fca64
proxy server: update sessionId when necessary
2019-12-19 14:20:03 -05:00
Adrien Béraud
2dbf57d36b
Update README.md
2.0.0beta3
2019-12-16 23:42:31 -05:00
Adrien Béraud
5438d50578
proxy: add session token
2019-12-16 16:37:07 -05:00
Adrien Béraud
548255073f
docker: build c bindings, use asio 1.12
2019-12-16 12:22:05 -05:00
Adrien Béraud
abaf091772
c binding: fix build
2019-12-16 11:41:49 -05:00
Adrien Béraud
7094b79714
crypto: add PublicKey::pack(uint8_t* out, size_t* out_len)
2019-12-14 15:29:42 -05:00
Adrien Béraud
1f672773ba
proxy server: respect value priority for push notifications
2019-12-14 13:02:07 -05:00
Adrien Béraud
374fdd6cc9
proxy: send normal priority push message for value expiration
2019-12-14 13:02:07 -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
2d358adf0e
utils: add findMapValue(string)
2019-12-14 13:00:13 -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
c1e2a368a8
docker: add ssl, install http-parser to /usr
2019-12-13 16:24:46 -05:00
Adrien Béraud
c62f27c929
tools: add missing include
2019-12-12 17:00:35 -05:00
Adrien Béraud
ec0c3d4d25
docker: build asio without tests and examples
2019-12-12 15:04:45 -05:00
Adrien Béraud
17a1178054
tools: add missing includes for indexation support
2019-12-12 15:00:17 -05:00
Adrien Béraud
6256c576c9
configure: cleanup
2019-12-12 14:51:59 -05:00
Adrien Béraud
9565adf693
proxy server: always depend on jsoncpp
2019-12-12 14:51:59 -05:00
Adrien Béraud
c10aa32596
cpp: include config.h when necessary
2019-12-12 14:51:59 -05:00
Adrien Béraud
21c294f352
docker: update asio
2019-12-12 14:51:59 -05:00
Adrien Béraud
4654f78e08
autotools: allow to build without peer discovery
2019-12-12 14:51:59 -05:00
Adrien Béraud
38644fc934
includes: don't include proxy server, pht by default
2019-12-12 14:44:53 -05:00
Adrien Béraud
fa8dc4c835
callbacks: add missing header
2019-12-12 14:33:00 -05:00
Adrien Béraud
6dab10cac2
github: disable tests and examples when building asio
2019-12-12 12:24:56 -05:00
Adrien Béraud
77a1c27f2b
github: build asio
2019-12-12 11:52:43 -05:00
Adrien Béraud
e8577bfd05
dhtrunner: fix build without peer discovery
2019-12-12 11:42:06 -05:00
Adrien Béraud
c0327a9881
dhtrunner: fix build without peer discovery
2019-12-11 11:43:20 -05:00
Adrien Béraud
2a1eacc949
tests: only link with ssl if required
2019-12-09 16:23:15 -05:00
Adrien Béraud
e705bebc25
github: don't build proxy
2019-12-09 16:06:39 -05:00
Adrien Béraud
a330762f40
build: always use standalone asio
2019-12-09 15:40:48 -05:00
Adrien Béraud
e7972ae897
dockerfiles: update
2019-12-09 15:34:26 -05:00