public interface IPeerConnector
PeerConnectInfo received from
ITracker. Implementation must honor the results IPeerDistributor| Modifier and Type | Method and Description |
|---|---|
void |
enqueuePeer(PeerConnectInfo peer)
Queues a peer to be connected
|
int |
getConnectingCount()
Gets the amount of peers are pending to be connected.
|
int |
getConnectingCountFor(Torrent torrent)
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
|
void |
start()
Starts the peer connector
|
void |
stop()
Stops the peer connector.
|
void enqueuePeer(PeerConnectInfo peer)
peer - the peer to be connectedvoid start()
void stop()
int getConnectingCount()
int getConnectingCountFor(Torrent torrent)
torrent - The torrent for which connections must be counted.Copyright © 2016. All rights reserved.