| Package | Description |
|---|---|
| org.klomp.snark | I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced to add a web UI, DHT support, and other features. |
| Modifier and Type | Field and Description |
|---|---|
protected I2PSnarkUtil | Snark._utilThe util |
| Modifier and Type | Method and Description |
|---|---|
I2PSnarkUtil | PeerListener.getUtil()Convenience |
I2PSnarkUtil | PeerCoordinator.getUtil()Convenience |
I2PSnarkUtil | SnarkManager.util()The I2PSnarkUtil instance for this manager. |
| Modifier and Type | Method and Description |
|---|---|
UDPTrackerClient | TorrentDest.getUDPTracker(I2PSnarkUtil util)Lazily create the UDP tracker client on this destination's session. |
void | Peer.runConnection(I2PSnarkUtil util,
PeerListener listener,
BandwidthListener bwl,
BitField bitfield,
MagnetState mState,
boolean uploadOnly)Runs the connection to the other peer. |
void | WebPeer.runConnection(I2PSnarkUtil util,
PeerListener listener,
BandwidthListener bwl,
BitField ignore,
MagnetState mState,
boolean uploadOnly)Runs the connection to the other peer. |
| Constructor and Description |
|---|
ConnectionAcceptor(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. |
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 |
Snark(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,
MetaInfo metainfo,
StorageListener listener,
boolean preserveFileNames)Creates a new storage based on the supplied MetaInfo. |
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. |
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)Create tracker info for the metainfo. |
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 |
UDPTrackerClient(I2PAppContext ctx,
I2PSession session,
I2PSnarkUtil util) |