ovari
5237f0a3b3
Update dht.cpp
2025-01-05 10:01:40 -05:00
Adrien Béraud
c7ba7f6703
utils: use fmt::format for time
2024-11-20 11:40:12 -05:00
Adrien Beraud
c73c8c77f2
search: combine callbacks in case of multiple equivalent puts
2024-11-20 11:39:19 -05:00
Adrien Beraud
cd92eeaae5
dht: add support to behave as a client node
2024-06-07 09:52:01 -04:00
Adrien Béraud
7a61fa371f
dht: allow to provide rng to constructor
2023-12-10 15:06:51 -05:00
Adrien Béraud
ae56d4e9be
dht: implement OnPublicAddressChanged
2023-08-30 17:58:45 -04:00
Adrien Béraud
27ce8b00ed
add syncLevel to send announce/listen early
2023-08-30 16:31:47 -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 Béraud
58bc772256
NodeExport: use SockAddr, move to separate header
2023-03-23 16:50:19 -04:00
Adrien Béraud
9e60a681f3
use ostringstream instead of stringstream where possible
2023-03-23 16:50:19 -04:00
Adrien Béraud
813c3b43d2
move filter
2023-02-28 12:58:13 -05:00
Adrien Béraud
e6971c196b
dht: fix value edition, add unit test
2023-01-27 17:31:59 -05:00
Adrien Béraud
db3a4e52b2
dht: add config max_store_keys
2022-04-22 20:24:59 -04:00
Adrien Béraud
724c3e431c
dht: notify listeners when value is removed because of limits
2022-04-18 17:19:32 -04:00
Adrien Béraud
75834fb08f
dht: fix potential of-by-one largest computation, cleanup
2022-04-15 20:12:48 -04:00
Adrien Béraud
9991c976ff
dht: prevent potential use-after-free in storageChanged
2022-04-15 20:12:48 -04:00
Adrien Béraud
92b08bbbc9
dht: pass value directly to storageChanged
2022-04-15 20:12:48 -04:00
Adrien Béraud
d6d73efa37
dht: update storage bucket on refresh
2022-04-15 19:14:12 -04:00
Adrien Béraud
c59f951e5a
update copyright
2022-03-10 19:51:25 -05:00
Adrien Béraud
ac51c2300e
dht: remove canceled tasks from scheduler
2022-02-27 03:34:36 -05:00
Adrien Béraud
c2415f38fa
dht: avoid job & search leak
2022-02-24 13:33:42 -05:00
Adrien Béraud
32f72c245d
dht: add max bootstrap period
2022-02-19 09:23:57 -05:00
Adrien Béraud
043ef8da72
dht: reset bootstrap period on connectivity change
...
Also starts a bootstrap if disconnected.
2022-02-19 09:23:57 -05:00
Adrien Béraud
6812b733bb
dht: respect exponential backoff
2022-02-19 09:23:57 -05:00
Adrien Béraud
e58d09e5da
dht: always display value ID as hex
2021-08-05 12:42:29 -04:00
Adrien Béraud
00e595d737
dht: fail if op key is null
2021-06-03 16:54:31 -04:00
Adrien Béraud
a178a8f820
dht, dhtrunner: add shutdown stop argument
2021-05-31 14:43:57 -04:00
Adrien Béraud
40fdd04cb3
dht: cleanup handling of onConnectCallback
2021-04-16 15:13:07 -04:00
Adrien Béraud
d3fc75589f
dht: add onConnect callback
2021-04-15 12:36:03 -04:00
Adrien Béraud
5527869d13
Revert "dht: don't send unnecessary findNode"
...
This reverts commit 0b4caeda73 .
2021-03-22 13:55:04 -04:00
Adrien Béraud
896b6de60c
dht: remove default constructor
2021-03-18 10:35:35 -04:00
Adrien Béraud
0b4caeda73
dht: don't send unnecessary findNode
2021-03-09 17:43:35 -05:00
Adrien Béraud
b5b4eea253
dht: reschedule search step
2020-07-06 10:26:08 -04:00
Adrien Béraud
cfa21df8b3
http: cleanup, always verify host in TLS mode
2020-06-29 12:12:22 -04: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
15fbfdebcc
dht: only load id if set in configuration
2020-05-22 12:28:25 -04:00
Adrien Béraud
15eb221cd1
dht: save id, port when saving state
2020-05-22 12:15:10 -04:00
Adrien Béraud
7d3781acc8
dht: use pseudo-rng for ID generation
2020-05-22 12:14:47 -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
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
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
35348bf77f
dht: use default port for bootstraping
2020-04-24 17:45:40 -04:00
Adrien Béraud
f30d21e96f
move bootstrap logic from DhtRunner to Dht
2020-04-24 16:32:07 -04:00
Adrien Béraud
f4cba56b3c
dht: optimize getStatus()
2020-04-17 02:09:57 -04:00
Adrien Béraud
7155dc4fb7
stats: add search, cached node count
2020-04-16 02:08:00 -04:00