public class MldhtService extends Object implements DHTService
Constructor and Description |
---|
MldhtService(IRuntimeLifecycleBinder lifecycleBinder,
Config config,
DHTConfig dhtConfig,
Set<PortMapper> portMappers,
TorrentRegistry torrentRegistry,
EventSource eventSource) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(Peer node)
Add a DHT node.
|
Stream<Peer> |
getPeers(Torrent torrent)
Creates a peer lookup for a given torrent.
|
Stream<Peer> |
getPeers(TorrentId torrentId)
Creates a peer lookup for a given torrent.
|
@Inject public MldhtService(IRuntimeLifecycleBinder lifecycleBinder, Config config, DHTConfig dhtConfig, Set<PortMapper> portMappers, TorrentRegistry torrentRegistry, EventSource eventSource)
public Stream<Peer> getPeers(Torrent torrent)
DHTService
getPeers
in interface DHTService
public Stream<Peer> getPeers(TorrentId torrentId)
DHTService
getPeers
in interface DHTService
public void addNode(Peer node)
DHTService
addNode
in interface DHTService
node
- DHT nodeCopyright © 2016–2021. All rights reserved.