org.eclipse.ecf.protocol.bittorrent
Interface IPieceProgressListener


public interface IPieceProgressListener

The IPieceProgressListener is used to indicate that one of the pieces has just retrieved some amount of additional data from a peer.


Method Summary
 void blockDownloaded(int piece, int index, int blockLength)
          This method is called when additional bytes has been written for a piece.
 

Method Detail

blockDownloaded

void blockDownloaded(int piece,
                     int index,
                     int blockLength)
This method is called when additional bytes has been written for a piece.

Parameters:
piece - the piece's number
index - the position in the piece where the bytes were written to
blockLength - the amount of bytes that has been written