public interface IPeerRegistry
Modifier and Type | Method and Description |
---|---|
void |
addPeer(TorrentId torrentId,
Peer peer)
Add peer for a given torrent and notify all peer consumers.
|
void |
addPeerSource(TorrentId torrentId,
AnnounceKey announceKey)
Register a new tracker peer source for a given torrent, based on the provided announce key.
|
Peer |
getLocalPeer()
Returns local peer, that represents current runtime in the swarm.
|
void |
triggerPeerCollection(TorrentId torrentId)
Trigger a collection of peers for the specified torrent.
|
Peer getLocalPeer()
void addPeer(TorrentId torrentId, Peer peer)
void addPeerSource(TorrentId torrentId, AnnounceKey announceKey)
void triggerPeerCollection(TorrentId torrentId)
torrentId
- the torrent ID to AnnounceCopyright © 2016–2021. All rights reserved.