class TrackerInfo extends Object
Compact format 1 - a list of hashes - early format for testing. Compact format 2 - One big string of concatenated hashes - official format.
| 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()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()