Package | Description |
---|---|
org.klomp.snark |
Modifier and Type | Method and Description |
---|---|
PartialPiece |
PeerListener.getPartialPiece(Peer peer,
BitField havePieces)
Called when a peer has connected and there may be a partially
downloaded piece that the coordinatorator can give the peer task
|
PartialPiece |
PeerCoordinator.getPartialPiece(Peer peer,
BitField havePieces)
Return partial piece to the PeerState if it's still wanted and peer has it.
|
Modifier and Type | Method and Description |
---|---|
(package private) List<PartialPiece> |
PeerState.returnPartialPieces()
Get partial pieces, give them back to PeerCoordinator.
|
Modifier and Type | Method and Description |
---|---|
void |
PeerListener.savePartialPieces(Peer peer,
List<PartialPiece> 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<PartialPiece> partials)
Save partial pieces on peer disconnection
and hopefully restart it later.
|