Packages that use PeerID
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of PeerID in org.klomp.snark
Classes in org.klomp.snark that implement interfaces with type arguments of type PeerIDFields in org.klomp.snark declared as PeerIDFields in org.klomp.snark with type parameters of type PeerIDModifier and TypeFieldDescriptionPiece.peersPeers this piece was requested from.PeerCoordinator.pexPeersPeers we heard about via PEX.PeerCoordinator.StalledPiece.requestersPeers that had the piece requested.Piece.requestsPeers currently requested from for this piece.Methods in org.klomp.snark that return PeerIDMethods in org.klomp.snark that return types with arguments of type PeerIDModifier and TypeMethodDescriptionPeerCoordinator.getPEXPeers()Called byTrackerClient.Piece.getRequesters()Returns a snapshot of the peers currently requesting this piece.Methods in org.klomp.snark with parameters of type PeerIDModifier and TypeMethodDescriptionintCompares port, address and id.(package private) I2PSocketConnect to the given peer over the shared destination.(package private) I2PSocketConnect to the given destination through the torrent's own destination, or the shared destination if multi-dest is disabled or the torrent has no destination yet.private I2PSocketI2PSnarkUtil.connect(PeerID peer, I2PSocketManager mgr, Destination myDest) Connect to the given destination via the given socket manager.private static PeerPeerCoordinator.peerIDInList(PeerID pid, Collection<Peer> peers) The peer with the given ID, or null.booleanReturns true if and only if this peerID and the given peerID have the same destination hash.(package private) voidPiece.setRequested(PeerID pid, boolean requested) Marks a peer as requesting or no longer requesting this piece, stamping the last-activity time when a request is made.Method parameters in org.klomp.snark with type arguments of type PeerIDModifier and TypeMethodDescriptionprivate voidPeerCoordinator.expireStalledPiece(Piece p, Set<PeerID> requesters) Cancels the outstanding requests for a stalled piece and returns its partial data to the partial piece list, so the piece can be re-requested from other peers.voidHandle peers from PEX; a PeerListener callback.voidCalled when peers are received via PEX.Constructors in org.klomp.snark with parameters of type PeerIDModifierConstructorDescriptionOutgoing connection.WebPeer(PeerCoordinator coord, URI uri, PeerID peerID, MetaInfo metainfo) Outgoing connection.Constructor parameters in org.klomp.snark with type arguments of type PeerIDModifierConstructorDescription(package private)StalledPiece(Piece piece, Set<PeerID> requesters) Records one stalled piece.