| 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 | Method and Description |
|---|---|
PeerID | Peer.getPeerID()Returns the id of the peer. |
| Modifier and Type | Method and Description |
|---|---|
(package private) Set<PeerID> | PeerCoordinator.getPEXPeers()Called by TrackerClient |
Set<PeerID> | Piece.getRequesters()Returns a snapshot of the peers currently requesting this piece. |
| Modifier and Type | Method and Description |
|---|---|
int | PeerID.compareTo(PeerID pid)Compares port, address and id. |
(package private) I2PSocket | I2PSnarkUtil.connect(PeerID peer)Connect to the given destination |
(package private) I2PSocket | I2PSnarkUtil.connect(PeerID peer,
byte[] ih)Connect to the given destination through the torrent's own destination, or the shared
destination if multi-dest is disabled or the torrent has no destination yet. |
boolean | PeerID.sameID(PeerID pid)Returns true if and only if this peerID and the given peerID have the same destination hash |
(package private) void | Piece.setRequested(PeerID pid,
boolean requested)Marks a peer as requesting or no longer requesting this piece, stamping the last-activity
time when a request is made. |
| Modifier and Type | Method and Description |
|---|---|
void | PeerListener.gotPeers(Peer peer,
List<PeerID> pIDList)Called when peers are received via PEX |
void | PeerCoordinator.gotPeers(Peer peer,
List<PeerID> peers)Handle peers from PEX; a PeerListener callback. |
| Constructor and Description |
|---|
Peer(PeerID peerID,
byte[] myId,
byte[] infohash,
MetaInfo metainfo)Outgoing connection. |
WebPeer(PeerCoordinator coord,
URI uri,
PeerID peerID,
MetaInfo metainfo)Outgoing connection. |