Adrien Béraud
d825f4e5ae
misc: use std::make_unique
2022-06-08 13:14:09 -04:00
Adrien Béraud
61b7bed0f8
network engine: minor refactoring
2022-04-22 20:25:18 -04:00
Adrien Béraud
12b75a612c
misc: fix various clang-tidy warnings
2022-04-06 12:18:20 -04:00
Adrien Béraud
1bc65bc5f5
network engine: use string_view for better performance
2022-04-01 11:04:59 -04:00
Adrien Béraud
c59f951e5a
update copyright
2022-03-10 19:51:25 -05:00
Adrien Béraud
896b6de60c
dht: remove default constructor
2021-03-18 10:35:35 -04:00
Lucas Dias
c996220685
network_engine::process could throw an exception in message type MessageType::ValueUpdate if rsocket does not exist. processMessage called process out of try-catch
2021-01-19 12:55:02 -05:00
Adrien Béraud
323a2b5093
dht: move socket to SearchNode
2020-06-15 17:46:43 -04:00
Adrien Béraud
563811ebf8
dht: add error handler for sendRefreshValue
2020-06-15 17:46:43 -04:00
Adrien Béraud
190c7f2063
network engine: complete request in case of error
2020-06-15 17:46:43 -04:00
Adrien Béraud
6158751a32
network engine: auth success in case of refresh
2020-06-12 02:51:08 -04:00
Adrien Béraud
4c7d126782
network engine: fix sendError with non-default netId
2020-06-11 15:10:48 -04:00
Adrien Béraud
a2afb5bb31
network engine: send confirmation for value update
2020-05-24 00:20:27 -04:00
Sébastien Blin
28b5893239
listener: fully migrate to requests
...
This patch migrates tellListenerRefreshed and tellListenerExpired
to the new behavior
2020-05-05 10:38:03 -04:00
Adrien Béraud
c754b5cfce
update to version 2.1.0
2020-04-30 14:58:25 -04:00
Adrien Béraud
b0c1249710
network engine: check for logger
2020-04-29 20:23:19 -04:00
Sébastien Blin
8c4a894f93
misc: replace TransId to Tid
2020-04-28 13:55:29 -04:00
Sébastien Blin
dd3de412fb
dht: move updateValues logic into network_engine
2020-04-28 13:55:29 -04:00
Sébastien Blin
4ad5e6c9ba
misc: clean
2020-04-28 13:55:29 -04:00
Sébastien Blin
7c14ea1730
network_engine: fix pack for sendUpdateValues
2020-04-28 13:55:29 -04:00
Sébastien Blin
7bf9f861a5
dht: send update values for listeners
2020-04-28 13:55:29 -04:00
Sébastien Blin
4cf5c87761
network_engin: move to pack(socket)
2020-04-28 13:55:29 -04:00
Sébastien Blin
e1c6fec581
dht: starts to add update and version support
2020-04-28 13:55:29 -04:00
Sébastien Blin
31da5b91fa
[WIP]net: add updateValues to replace Listen operations
...
Actually, packets are not retransmitted for listen operations. This
leads to some problems when they are already several values present
at one hash. Ideally, packets should be transmitted inside a request
to avoid packet loss and get all datas.
This patch breaks the compatibility with previous versions
2020-04-28 13:55:29 -04:00
Adrien Béraud
01bcb1a750
network engine: completely remove TransId
2020-04-24 18:46:46 -04:00
Adrien Béraud
c92f553a24
network engine: retransmit value parts
2020-03-30 17:54:50 -04:00
Adrien Béraud
95028e3770
dht: always use pseudo-RNG for non-critical random numbers
2020-02-07 00:36:42 -05:00
Adrien Béraud
707fb39975
net: fix sending query in sendGetValues
2020-01-20 12:15:33 -05:00
Adrien Béraud
dc46c2274c
net: exponential backoff, randomize packet expiration time
2020-01-19 14:32:57 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -05:00
Adrien Béraud
259986e786
network engine: don't throw in case of unknown transaction
2019-12-01 14:52:21 -05:00
Adrien Béraud
cb7d7f6614
dht: allow to configure rate limiter
2019-11-07 16:43:04 -05:00
Adrien Béraud
feb498305f
network engine: convert mapped IPv4
2019-06-22 18:37:58 -04:00
Adrien Béraud
120c017399
net: add DatagramSocket, UdpSocket transport
2019-06-07 14:14:15 -04:00
Adrien Béraud
7f48c4808b
network engine: minor cleanup
2019-04-30 17:47:40 -04:00
Adrien Béraud
6a5724a868
peerdiscovery: allow per-domain publish, cleanup
2019-04-23 12:09:08 -04:00
Adrien Béraud
ef82652a1e
network: header cleanup
2019-04-14 11:30:10 -04:00
Adrien Béraud
6c705e525f
net: factorize logic to network_utils
2019-04-08 12:07:11 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
1e10e28fd7
network: improve message parsing performance
2019-03-17 16:07:20 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
313f54c840
dht: disable some verbose logs
2019-03-10 17:27:37 -04:00
Adrien Béraud
39e69f813c
network engine: cleanup
2019-02-19 01:59:59 -05:00
Adrien Béraud
c0e376e15a
dht: reduce log verbosity
2018-12-28 01:41:10 -05:00
Yanfei Han
dc4a790a38
A obviouse bug on network engine
2018-11-29 00:47:00 +08:00
Adrien Béraud
092f5cfef0
network_engine: fix warning
2018-11-26 16:34:19 -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
b2171d707a
network engine: properly apply flag MSG_NOSIGNAL
2018-05-25 10:26:58 -04:00
Adrien Béraud
60db9fd9cd
logs: reduce node expiration to debug level
2018-05-25 10:26:58 -04:00