Package org.klomp.snark
Class PeerCoordinatorSet
java.lang.Object
org.klomp.snark.PeerCoordinatorSet
- All Implemented Interfaces:
Iterable<PeerCoordinator>
class PeerCoordinatorSet extends Object implements Iterable<PeerCoordinator>
Hmm, any guesses as to what this is? Used by the multitorrent functionality
in the PeerAcceptor to pick the right PeerCoordinator to accept the con for.
Each PeerCoordinator is added to the set from within the Snark (and removed
from it there too)
-
Constructor Summary
Constructors Constructor Description PeerCoordinatorSet()
-
Method Summary
Modifier and Type Method Description void
add(PeerCoordinator coordinator)
PeerCoordinator
get(byte[] infoHash)
Iterator<PeerCoordinator>
iterator()
void
remove(PeerCoordinator coordinator)
-
Constructor Details
-
PeerCoordinatorSet
public PeerCoordinatorSet()
-
-
Method Details