パッケージ | 説明 |
---|---|
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 |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
java.util.Map<java.lang.String,BEValue> |
Peer.getHandshakeMap() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
Peer.setHandshakeMap(java.util.Map<java.lang.String,BEValue> map) |
コンストラクタ | 説明 |
---|---|
MetaInfo(java.util.Map<java.lang.String,BEValue> m) |
Creates a new MetaInfo from a Map of BEValues and the SHA1 over
the original bencoded info dictonary (this is a hack, we could
reconstruct the bencoded stream and recalculate the hash).
|
PeerID(java.util.Map<java.lang.String,BEValue> m) |
Creates a PeerID from a Map containing BEncoded peer id, ip and
port.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
BEValue |
BDecoder.bdecode() |
Gets the next indicator and returns either null when the stream
has ended or bdecodes the rest of the stream and returns the
appropriate BEValue encoded object.
|
static BEValue |
BDecoder.bdecode(java.io.InputStream in) |
Creates a new BDecoder and immediatly decodes the first value it
sees.
|
BEValue |
BDecoder.bdecodeBytes() |
Returns the next bencoded value on the stream and makes sure it
is a byte array.
|
BEValue |
BDecoder.bdecodeList() |
Returns the next bencoded value on the stream and makes sure it
is a list.
|
BEValue |
BDecoder.bdecodeMap() |
Returns the next bencoded value on the stream and makes sure it
is a map (dictonary).
|
BEValue |
BDecoder.bdecodeNumber() |
Returns the next bencoded value on the stream and makes sure it
is a number.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
java.util.List<BEValue> |
BEValue.getList() |
Returns this BEValue as a List of BEValues.
|
java.util.Map<java.lang.String,BEValue> |
BEValue.getMap() |
Returns this BEValue as a Map of BEValue keys and BEValue
values.
|
コンストラクタ | 説明 |
---|---|
BEValue(java.util.List<BEValue> value) |
|
BEValue(java.util.Map<java.lang.String,BEValue> value) |