Package | Description |
---|---|
org.klomp.snark |
Modifier and Type | Method and Description |
---|---|
Snark |
SnarkManager.getTorrent(String filename)
Grab the torrent given the (canonical) filename of the .torrent file
|
Snark |
SnarkManager.getTorrentByBaseName(String filename)
Grab the torrent given the base name of the storage
|
Snark |
SnarkManager.getTorrentByInfoHash(byte[] infohash)
Grab the torrent given the info hash
|
Snark |
SnarkManager.stopTorrent(String filename,
boolean shouldRemove)
Stop the torrent, leaving it on the list of torrents unless told to remove it
|
Modifier and Type | Method and Description |
---|---|
void |
SnarkManager.deleteMagnet(Snark snark)
Stop and delete a torrent running in magnet mode
|
BitField |
SnarkManager.getSavedTorrentBitField(Snark snark)
Get the saved bitfield for a torrent from the config file.
|
BitField |
Snark.CompleteListener.getSavedTorrentBitField(Snark snark) |
long |
SnarkManager.getSavedTorrentTime(Snark snark)
Get the timestamp for a torrent from the config file.
|
long |
Snark.CompleteListener.getSavedTorrentTime(Snark snark) |
String |
SnarkManager.gotMetaInfo(Snark snark)
We transitioned from magnet mode, we have now initialized our
metainfo and storage.
|
String |
Snark.CompleteListener.gotMetaInfo(Snark snark)
We transitioned from magnet mode, we have now initialized our
metainfo and storage.
|
void |
SnarkManager.loadSavedFilePriorities(Snark snark)
Get the saved priorities for a torrent from the config file.
|
void |
SnarkManager.stopTorrent(Snark torrent,
boolean shouldRemove)
Stop the torrent, leaving it on the list of torrents unless told to remove it
|
void |
SnarkManager.torrentComplete(Snark snark)
A Snark.CompleteListener method.
|
void |
Snark.CompleteListener.torrentComplete(Snark snark) |
void |
SnarkManager.updateStatus(Snark snark)
A Snark.CompleteListener method.
|
void |
Snark.CompleteListener.updateStatus(Snark snark) |
Constructor and Description |
---|
PeerCoordinator(I2PSnarkUtil util,
byte[] id,
byte[] infohash,
MetaInfo metainfo,
Storage storage,
CoordinatorListener listener,
Snark torrent) |
TrackerClient(I2PSnarkUtil util,
MetaInfo meta,
String additionalTrackerURL,
PeerCoordinator coordinator,
Snark snark) |