* i2psnark:

- Remove static SnarkManager instance
   - Allow DHT-only torrents
   - DHT debugging
This commit is contained in:
zzz
2012-08-08 17:00:33 +00:00
parent 9c7f4cc604
commit 9cee0ee504
12 changed files with 110 additions and 28 deletions

View File

@ -1179,6 +1179,15 @@ public class Snark
//System.exit(0);
}
/**
* StorageListener and CoordinatorListener callback
* @since 0.9.2
*/
public void addMessage(String message) {
if (completeListener != null)
completeListener.addMessage(this, message);
}
public interface CompleteListener {
public void torrentComplete(Snark snark);
public void updateStatus(Snark snark);
@ -1198,6 +1207,11 @@ public class Snark
*/
public void fatal(Snark snark, String error);
/**
* @since 0.9.2
*/
public void addMessage(Snark snark, String message);
// not really listeners but the easiest way to get back to an optional SnarkManager
public long getSavedTorrentTime(Snark snark);
public BitField getSavedTorrentBitField(Snark snark);