Uses of Class
org.klomp.snark.BitField
Packages that use BitField
Package
Description
I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced
to add a web UI, DHT support, and other features.
- 
Uses of BitField in org.klomp.snark
Fields in org.klomp.snark declared as BitFieldModifier and TypeFieldDescription(package private) BitFieldPeerState.bitfieldthe pieces the peer has.Methods in org.klomp.snark that return BitFieldModifier and TypeMethodDescriptionStorage.getBitField()The BitField that tells which pieces this storage contains.CompleteListener.getSavedTorrentBitField(Snark snark) SnarkManager.getSavedTorrentBitField(Snark snark) Get the saved bitfield for a torrent from the config file.UpdateRunner.getSavedTorrentBitField(Snark snark) Methods in org.klomp.snark with parameters of type BitFieldModifier and TypeMethodDescriptionbooleanSnarkManager.addTorrent(MetaInfo metainfo, BitField bitfield, String filename, File baseFile, boolean dontAutoStart) Add a torrent from a MetaInfo.voidCreates (and/or checks) all files from the metainfo file list.PeerCoordinator.getPartialPiece(Peer peer, BitField havePieces) Return partial piece to the PeerState if it's still wanted and peer has it.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 taskbooleanPeerCoordinator.gotBitField(Peer peer, BitField bitfield) Returns true if the given bitfield contains at least one piece we are interested in.booleanPeerListener.gotBitField(Peer peer, BitField bitfield) Called when a bitmap message is received.booleanCalled when we are downloading from the peer and may need to ask for a new piece.booleanCalled when we are downloading from the peer and may need to ask for a new piece.voidPeer.runConnection(I2PSnarkUtil util, PeerListener listener, BandwidthListener bwl, BitField bitfield, MagnetState mState, boolean uploadOnly) Runs the connection to the other peer.voidWebPeer.runConnection(I2PSnarkUtil util, PeerListener listener, BandwidthListener bwl, BitField ignore, MagnetState mState, boolean uploadOnly) Runs the connection to the other peer.(package private) voidPeerConnectionOut.sendBitfield(BitField bitfield)