Adrien Béraud
c4e75ae66c
update copyright year
2025-05-22 19:07:32 -04:00
Lucas Dias
83ae498008
Catch exception of DeserializeNodes
...
Fix calls to DeserializeNodes. They must
catch possible exceptions
Signed-off-by: Lucas Dias <lucas_dias@redes.ufsm.br >
2024-12-17 14:06:36 -05:00
Adrien Beraud
cd92eeaae5
dht: add support to behave as a client node
2024-06-07 09:52:01 -04:00
Amna
3e888d8e2d
network engine: remove link-local condition from isMartian()
2023-07-05 19:38:24 -04:00
Adrien Béraud
411d8dbe62
network_engine: add missing headers
2023-06-28 11:27:03 -04:00
Adrien Béraud
aff1ed4575
network engine: make UA private, constexpr
2023-06-27 20:07:03 -04:00
Adrien Béraud
8c94dc8f89
dht: update User-Agent (UA) to "o2"
...
The update reflects the slow evolution of the protocol.
Also, saves two bytes in every packet.
2023-06-26 18:25:31 -04:00
Adrien Béraud
fafd2f0233
update copyright year
2023-06-02 23:16:04 -04:00
Adrien Béraud
2654970499
logger: remove OPENDHT_LOG, rename to logger.h
2023-05-18 12:31:42 -04:00
Adrien Beraud
424fe61a49
dht: send large amounts of values in multiple messages
2023-03-25 17:49:16 -04:00
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