| 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.bencode |
Bencode parsing and serialization for BitTorrent protocol.
|
| Modifier and Type | Method and Description |
|---|---|
MetaInfo |
MetaInfo.reannounce(String announce)
Creates a copy of this MetaInfo that shares everything except the announce URL.
|
| Constructor and Description |
|---|
MetaInfo(Map<String,BEValue> m)
Creates a new MetaInfo from a Map of BEValues and the SHA1 over the original bencoded info
dictionary (this is a hack, we could reconstruct the bencoded stream and recalculate the
hash).
|
PeerID(byte[] dest_hash,
I2PSnarkUtil util)
Creates a PeerID from a destHash
|
PeerID(Map<String,BEValue> m)
Creates a PeerID from a Map containing BEncoded peer id, ip and port.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
BEValue.getBytes()
Returns this BEValue as a byte[].
|
int |
BEValue.getInt()
Returns this BEValue as int.
|
List<BEValue> |
BEValue.getList()
Returns this BEValue as a List of BEValues.
|
long |
BEValue.getLong()
Returns this BEValue as long.
|
Map<String,BEValue> |
BEValue.getMap()
Returns this BEValue as a Map of BEValue keys and BEValue values.
|
Number |
BEValue.getNumber()
Returns this BEValue as a Number.
|
String |
BEValue.getString()
Returns this BEValue as a String.
|