class TrackerInfo extends Object
| Constructor and Description |
|---|
TrackerInfo(InputStream in,
byte[] my_id,
byte[] infohash,
MetaInfo metainfo,
I2PSnarkUtil util) |
TrackerInfo(Set<Hash> hashes,
int interval,
int complete,
int incomplete,
String error,
byte[] my_id,
byte[] infohash,
MetaInfo metainfo,
I2PSnarkUtil util)
To convert returned UDPTracker data to the standard structure
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFailureReason()
Not HTML escaped.
|
int |
getInterval()
in seconds
|
int |
getPeerCount() |
Set<Peer> |
getPeers() |
int |
getSeedCount() |
String |
toString() |
public TrackerInfo(InputStream in, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util) throws IOException
metainfo - may be nullIOExceptionpublic TrackerInfo(Set<Hash> hashes, int interval, int complete, int incomplete, String error, byte[] my_id, byte[] infohash, MetaInfo metainfo, I2PSnarkUtil util)
hashes - may be nullerror - may be nullpublic String getFailureReason()
public int getInterval()
public int getPeerCount()
public int getSeedCount()