| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BandwidthManager
Bandwidth and bandwidth limits
|
class |
Peer
Represents a peer in the BitTorrent network, managing all public information and communication
with that peer.
|
(package private) class |
PeerCoordinator
Coordinates peer activities for a single torrent including upload/download management,
peer selection, piece distribution, and bandwidth allocation.
|
(package private) class |
WebPeer
BEP 19.
|
| Modifier and Type | Method and Description |
|---|---|
BandwidthListener |
CompleteListener.getBandwidthListener() |
BandwidthListener |
SnarkManager.getBandwidthListener()
The BandwidthManager.
|
BandwidthListener |
UpdateRunner.getBandwidthListener() |
(package private) BandwidthListener |
PeerState.getBandwidthListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
Request.read(DataInputStream din,
BandwidthListener bwl) |
void |
PartialPiece.read(DataInputStream din,
int offset,
int len,
BandwidthListener bwl)
Reads data from the input stream into this piece starting at offset.
|
void |
Peer.runConnection(I2PSnarkUtil util,
PeerListener listener,
BandwidthListener bwl,
BitField bitfield,
MagnetState mState,
boolean uploadOnly)
Runs the connection to the other peer.
|
void |
WebPeer.runConnection(I2PSnarkUtil util,
PeerListener listener,
BandwidthListener bwl,
BitField ignore,
MagnetState mState,
boolean uploadOnly)
Runs the connection to the other peer.
|
| Constructor and Description |
|---|
PeerCoordinator(I2PSnarkUtil util,
byte[] id,
byte[] infohash,
MetaInfo metainfo,
Storage storage,
CoordinatorListener listener,
Snark torrent,
BandwidthListener bwl) |
PeerState(Peer peer,
PeerListener listener,
BandwidthListener bwl,
MetaInfo metainfo,
PeerConnectionIn in,
PeerConnectionOut out) |