| 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 |
|---|---|
(package private) Request | PeerState.getOutstandingRequest(int piece,
int begin,
int length)Called when a piece message is being processed by the incoming connection. |
Request | PartialPiece.getRequest()Creates a Request object for the next missing chunk in this piece. |
| Modifier and Type | Method and Description |
|---|---|
(package private) List<Request> | PeerState.returnPartialPieces()Get partial pieces, give them back to PeerCoordinator. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | PeerState.pieceMessage(Request req)Called when a full chunk (i.e. |
(package private) void | PeerConnectionOut.sendCancel(Request req)Send a cancel message and remove any matching request from the queue. |
(package private) void | PeerConnectionOut.sendRequest(Request req)Queue a request message, checking for duplicates. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | PeerConnectionOut.retransmitRequests(List<Request> requests)Retransmit requests that haven't been received within REQ_TIMEOUT. |
void | PeerListener.savePartialPieces(Peer peer,
List<Request> pcs)Called when the peer has disconnected and the peer task may have a partially downloaded piece
that the PeerCoordinator can save |
void | PeerCoordinator.savePartialPieces(Peer peer,
List<Request> partials)Save partial pieces on peer disconnection and hopefully restart it later. |
(package private) void | PeerConnectionOut.sendRequests(List<Request> requests)Send all requests in the list. |