パッケージ | 説明 |
---|---|
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 user interface, implemented as a webapp in i2psnark.war.
|
修飾子とタイプ | フィールド | 説明 |
---|---|---|
(package private) Storage |
PeerCoordinator.storage |
External use by PeerMonitorTask only.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
Storage |
PeerCoordinator.getStorage() |
|
Storage |
Snark.getStorage() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
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) |
|
void |
StorageListener.setWantedPieces(Storage storage) |
Reset the peer's wanted pieces table
Call after the storage double-check fails
|
void |
Snark.storageAllChecked(Storage storage) |
|
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) |
|
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) |
|
void |
StorageListener.storageCompleted(Storage storage) |
Called the one time when the data is completely received and checked.
|
void |
Snark.storageCreateFile(Storage storage,
java.lang.String name,
long length) |
does nothing
|
void |
StorageListener.storageCreateFile(Storage storage,
java.lang.String name,
long length) |
Called when the storage creates a new file of a given length.
|
コンストラクタ | 説明 |
---|---|
PeerCoordinator(I2PSnarkUtil util,
byte[] id,
byte[] infohash,
MetaInfo metainfo,
Storage storage,
CoordinatorListener listener,
Snark torrent) |
|
SnarkShutdown(Storage storage,
PeerCoordinator coordinator,
ConnectionAcceptor acceptor,
TrackerClient trackerclient,
ShutdownListener listener) |
推奨されていません。
|
コンストラクタ | 説明 |
---|---|
FileAndIndex(java.io.File file,
Storage storage,
long[] remainingArray) |