Packages that use I2PSnarkUtil
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 I2PSnarkUtil in org.klomp.snark
Fields in org.klomp.snark declared as I2PSnarkUtilModifier and TypeFieldDescriptionprivate final I2PSnarkUtilConnectionAcceptor._utilThe plugin's shared utilities.private final I2PSnarkUtilIdleChecker._utilThe torrent being watched.private final I2PSnarkUtilPeerCheckerTask._utilThe torrent the peers belong to.private final I2PSnarkUtilPeerCoordinator._utilThe plugin's shared utilities.protected final I2PSnarkUtilSnark._utilThe util.private final I2PSnarkUtilSnarkManager._utilShared utilities and settings for the torrents.private final I2PSnarkUtilStorage._utilThe webapp's configuration helper.private final I2PSnarkUtilTrackerClient._utilUtil providing the session and proxy settings.private final I2PSnarkUtilUDPTrackerClient._utilThe webapp's configuration helper.private final I2PSnarkUtilPeerID.utilSupplies the shared destination hash cache.Methods in org.klomp.snark that return I2PSnarkUtilModifier and TypeMethodDescriptionPeerCoordinator.getUtil()Returns the shared torrent utility this coordinator was built with.PeerListener.getUtil()Retrieves the shared torrent utility.SnarkManager.util()The I2PSnarkUtil instance for this manager.Methods in org.klomp.snark with parameters of type I2PSnarkUtilModifier and TypeMethodDescriptionTrackerInfo.getPeers(byte[] l, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) One big string of concatenated 32-byte hashes.TrackerInfo.getPeers(List<BEValue> l, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) List of Dictionaries or List of Strings.TrackerInfo.getPeers(Set<Hash> hashes, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) From Hash to Peer.TorrentDest.getUDPTracker(I2PSnarkUtil util) Lazily create the UDP tracker client on this destination's session.voidPeer.runConnection(I2PSnarkUtil util, PeerListener listener, BandwidthListener bwl, BitField bitfield, MagnetState mState, boolean uploadOnly) Runs the connection to the other peer.voidWebPeer.runConnection(I2PSnarkUtil util, PeerListener listener, BandwidthListener bwl, BitField ignore, MagnetState mState, boolean uploadOnly) Runs the connection to the other peer.Constructors in org.klomp.snark with parameters of type I2PSnarkUtilModifierConstructorDescriptionConnectionAcceptor(I2PSnarkUtil util, PeerAcceptor peeracceptor) Unused (single torrent).ConnectionAcceptor(I2PSnarkUtil util, PeerAcceptor peeracceptor, TorrentDest td) Single torrent on its own destination.ConnectionAcceptor(I2PSnarkUtil util, PeerCoordinatorSet set) Multitorrent.MagnetURI(I2PSnarkUtil util, String url) Parse a magnet or maggot URI.(package private)PeerCheckerTask(I2PSnarkUtil util, PeerCoordinator coordinator) Creates a new checker task for the given coordinator.PeerCoordinator(I2PSnarkUtil util, byte[] id, byte[] infohash, MetaInfo metainfo, Storage storage, CoordinatorListener listener, Snark torrent, BandwidthListener bwl) Create a peer coordinator for the torrent.PeerID(byte[] destHashParam, I2PSnarkUtil util) Creates a PeerID from a destHash.protectedSnark(I2PSnarkUtil util, String torrent, byte[] ih, String trackerURL, CompleteListener complistener, PeerCoordinatorSet peerCoordinatorSet, ConnectionAcceptor connectionAcceptor, boolean ignored, String rootDir) Create the torrent in multitorrent or magnet mode, for the snark-rpc plugin.Snark(I2PSnarkUtil util, String torrent, byte[] ih, String trackerURL, CompleteListener complistener, PeerCoordinatorSet peerCoordinatorSet, ConnectionAcceptor connectionAcceptor, String rootDir) Create the torrent in multitorrent or magnet mode.Snark(I2PSnarkUtil util, String torrent, String ip, int user_port, StorageListener slistener, CoordinatorListener clistener, CompleteListener complistener, PeerCoordinatorSet peerCoordinatorSet, ConnectionAcceptor connectionAcceptor, String rootDir) Create the torrent in multitorrent mode.Snark(I2PSnarkUtil util, String torrent, String ip, int user_port, StorageListener slistener, CoordinatorListener clistener, CompleteListener complistener, PeerCoordinatorSet peerCoordinatorSet, ConnectionAcceptor connectionAcceptor, String rootDir, File baseFile) Create the torrent in multitorrent mode.Storage(I2PSnarkUtil util, File baseFile, String announce, List<List<String>> announce_list, String created_by, boolean privateTorrent, List<String> url_list, String comment, StorageListener listener, List<TorrentCreateFilter> filters) Creates a storage from the existing file or directory.Storage(I2PSnarkUtil util, File baseFile, String announce, List<List<String>> announce_list, String created_by, boolean privateTorrent, StorageListener listener, List<TorrentCreateFilter> filters) Creates a storage from the existing file or directory.Storage(I2PSnarkUtil util, File baseFile, MetaInfo metainfo, StorageListener listener, boolean preserveFileNames) Creates a new storage based on the supplied MetaInfo.TrackerClient(I2PSnarkUtil util, MetaInfo meta, String additionalTrackerURL, PeerCoordinator coordinator, Snark snark) Call start() to start it.TrackerInfo(InputStream in, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) Reads a tracker response from a stream and parses it.privateTrackerInfo(Map<String, BEValue> m, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) Reads a tracker response into a record.TrackerInfo(Set<Hash> hashes, int interval, int complete, int incomplete, int downloaders, String error, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) To convert returned UDPTracker data to the standard structure.privateTrackerInfo(BDecoder be, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) Parses a tracker response from a decoder.UDPTrackerClient(I2PAppContext ctx, I2PSession session, I2PSnarkUtil util) Create a client bound to one torrent's session, listening on the port just belowTrackerClient.PORTso it never collides with the HTTP tracker client.