org.eclipse.ecf.protocol.bittorrent
Interface ITorrentErrorListener


public interface ITorrentErrorListener

This listener monitors problems that arise such as tracker errors and downloaded pieces which fail hash checks.


Method Summary
 void pieceDiscarded(int piece, int pieceLength)
          This method is called when a piece has failed the integrity hash check and has to be downloaded again.
 void trackerError(java.lang.String message)
          This method is called when the tracker returns an error.
 

Method Detail

trackerError

void trackerError(java.lang.String message)
This method is called when the tracker returns an error.

Parameters:
message - the failure reason provided by the tracker

pieceDiscarded

void pieceDiscarded(int piece,
                    int pieceLength)
This method is called when a piece has failed the integrity hash check and has to be downloaded again.

Parameters:
piece - the number of the piece that failed the hash check
pieceLength - the length of the piece indicating the amount of data that has been discarded