boolean |
SnarkManager.addTorrent(MetaInfo metainfo,
BitField bitfield,
String filename,
File baseFile,
boolean dontAutoStart) |
Add a torrent from a MetaInfo.
|
void |
Storage.check(long savedTime,
BitField savedBitField) |
Creates (and/or checks) all files from the metainfo file list.
|
PartialPiece |
PeerCoordinator.getPartialPiece(Peer peer,
BitField havePieces) |
Return partial piece to the PeerState if it's still wanted and peer has it.
|
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
|
boolean |
PeerCoordinator.gotBitField(Peer peer,
BitField bitfield) |
Returns true if the given bitfield contains at least one piece we
are interested in.
|
boolean |
PeerListener.gotBitField(Peer peer,
BitField bitfield) |
Called when a bitmap message is received.
|
boolean |
PeerCoordinator.needPiece(Peer peer,
BitField havePieces) |
Called when we are downloading from the peer and may need to ask for
a new piece.
|
boolean |
PeerListener.needPiece(Peer peer,
BitField bitfield) |
Called when we are downloading from the peer and may need to ask for
a new piece.
|
void |
Peer.runConnection(I2PSnarkUtil util,
PeerListener listener,
BitField bitfield,
MagnetState mState,
boolean uploadOnly) |
Runs the connection to the other peer.
|
void |
WebPeer.runConnection(I2PSnarkUtil util,
PeerListener listener,
BitField ignore,
MagnetState mState,
boolean uploadOnly) |
Runs the connection to the other peer.
|
(package private) void |
PeerConnectionOut.sendBitfield(BitField bitfield) |
|
int |
PeerCoordinator.wantPiece(Peer peer,
BitField havePieces) |
Returns one of pieces in the given BitField that is still wanted or
-1 if none of the given pieces are wanted.
|
int |
PeerListener.wantPiece(Peer peer,
BitField bitfield) |
Called when we are downloading from the peer and need to ask for
a new piece.
|