| 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. |
| org.klomp.snark.web | The I2PSnark web user interface package, providing a complete web-based torrent management system
implemented as a webapp in i2psnark.war. |
| Modifier and Type | Field and Description |
|---|---|
(package private) Storage | PeerCoordinator.storageWill be null when in magnet mode. |
| Modifier and Type | Method and Description |
|---|---|
Storage | Snark.getStorage()Get the storage. |
Storage | PeerCoordinator.getStorage()Returns the storage for this torrent. |
| Modifier and Type | Method and Description |
|---|---|
void | PeerCoordinator.setStorage(Storage stg)Sets the storage after transition out of magnet mode Snark calls this after we call
gotMetaInfo() |
void | Snark.setWantedPieces(Storage storage)StorageListener callback to update the coordinator's wanted piece set. |
void | StorageListener.setWantedPieces(Storage storage)Resets the peer's wanted pieces table. |
void | Snark.storageAllChecked(Storage storage)StorageListener callback called when all pieces have been checked. |
void | StorageListener.storageAllChecked(Storage storage)Called when all pieces in the storage have been checked. |
void | Snark.storageAllocated(Storage storage,
long length)does nothing |
void | StorageListener.storageAllocated(Storage storage,
long length)Called to indicate that length bytes have been allocated. |
void | Snark.storageChecked(Storage storage,
int num,
boolean checked)StorageListener callback called when a piece check completes. |
void | StorageListener.storageChecked(Storage storage,
int num,
boolean checked)Called when storage is being checked and the num piece of that total pieces has been checked. |
void | Snark.storageCompleted(Storage storage)StorageListener callback called when the torrent has completed. |
void | StorageListener.storageCompleted(Storage storage)Called the one time when the data is completely received and checked. |
void | Snark.storageCreateFile(Storage storage,
String name,
long length)StorageListener no-op |
void | StorageListener.storageCreateFile(Storage storage,
String name,
long length)Called when the storage creates a new file of a given length. |
| Constructor and Description |
|---|
PeerCoordinator(I2PSnarkUtil util,
byte[] id,
byte[] infohash,
MetaInfo metainfo,
Storage storage,
CoordinatorListener listener,
Snark torrent,
BandwidthListener bwl) |
| Constructor and Description |
|---|
FileAndIndex(File file,
Storage storage,
long[] remainingArray) |
FileAndIndex(File file,
Storage storage,
long[] remainingArray,
long[] previewArray) |