Packages that use TorrentDest
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 TorrentDest in org.klomp.snark
Fields in org.klomp.snark declared as TorrentDestModifier and TypeFieldDescriptionprivate TorrentDestSnark._destThe transient destination, when multi-dest is enabled; null otherwise or on stop.private final TorrentDestConnectionAcceptor._tdThe torrent destination being advertised.private final TorrentDestConnectionAcceptor.TorrentAcceptLoop._tdThe torrent destination being served.Fields in org.klomp.snark with type parameters of type TorrentDestModifier and TypeFieldDescriptionprivate final Map<TorrentDest, ConnectionAcceptor.TorrentAcceptLoop> ConnectionAcceptor._torrentAcceptorsAccept loops per destination, shared by the torrents pooled on it.private final Map<String, TorrentDest> I2PSnarkUtil._torrentDestsPer-torrent destinations by info hash.Methods in org.klomp.snark that return TorrentDestModifier and TypeMethodDescriptionSnark.getDest()The transient multi-dest destination, or null when multi-dest is disabled or the torrent is stopped.I2PSnarkUtil.getOrCreateTorrentDest(String key, String name) The destination for a torrent, creating the destination and session on first use, or assigning the torrent to a shared pool when the configured maximum number of destinations is exceeded.private TorrentDestI2PSnarkUtil.getTorrentDest(byte[] ih) The transient destination for the torrent, or null if none.Methods in org.klomp.snark that return types with arguments of type TorrentDestModifier and TypeMethodDescriptionI2PSnarkUtil.getTorrentDests()All active transient destinations, for the tunnel quantity ramp in the IdleChecker.Methods in org.klomp.snark with parameters of type TorrentDestModifier and TypeMethodDescriptionvoidConnectionAcceptor.addTorrentAcceptor(TorrentDest td, PeerCoordinator coordinator) Start an accept loop on a torrent's destination, adding the torrent to the destination's loop when one already runs for a pooled destination.private voidIdleChecker.applyToPool(TorrentDest td, boolean live, int peers) Applies the decided quantity to one pool's own session, if it changed.private intIdleChecker.peersIn(TorrentDest td, int poolIndex) Connected peers belonging to torrents assigned to a pool, so each pool's tunnel count is driven by its own members rather than by the whole client.voidConnectionAcceptor.removeTorrentAcceptor(TorrentDest td, PeerCoordinator coordinator) Remove a torrent from its destination's accept loop, halting the loop when it no longer serves any torrent.private voidIdleChecker.setTunnels(TorrentDest td, int target, boolean increased) Apply a quantity to one pool's own session.Constructors in org.klomp.snark with parameters of type TorrentDestModifierConstructorDescriptionConnectionAcceptor(I2PSnarkUtil util, PeerAcceptor peeracceptor, TorrentDest td) Single torrent on its own destination.Prepares to accept connections for one torrent.