ch.claudio.trial.torrent
Class Tracker

java.lang.Object
  extended by ch.claudio.trial.torrent.Tracker

public class Tracker
extends java.lang.Object

Version:
$Id: Tracker.java 148 2006-09-14 20:52:32Z claudio $
Author:
Claudio Nieder

Constructor Summary
Tracker(Metainfo meta)
          Create a tracker for a given torrent
 
Method Summary
 void sendRequest(int hashIndex)
          send a request for a piece.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tracker

public Tracker(Metainfo meta)
Create a tracker for a given torrent

Parameters:
meta - metainfo of the torrent
Method Detail

sendRequest

public void sendRequest(int hashIndex)
send a request for a piece.

Parameters:
hashIndex - number of the piece to request.