Open don-clugston-sociomantic opened 5 years ago
The example in dhtproto/src/dhtproto/client/UsageExamples.d
instead calls dht.blocking.waitAllHashRangesKnown()
which can only be run from inside a Task
and is therefore conceptually completely different.
Both DmqNeo and DlsNeo are usable without Tasks. If DhtNeo requires Tasks, that should be stated somewhere.
The example in src/dhtproto/client/DhtClient.d is essentially
However, step 5 will never be reached. The reason is that
nodeHandshake()
leaves events registered with epoll (they are all of the form10: ConnectProtocol fd=177 events=ReRh
, I think they are listening for read events on each node?) SoeventLoop()
never returns.