Hosting a tracker

Version 1 (olivier dufour, 04/08/2009 09:07 AM) → Version 2/6 (olivier dufour, 04/08/2009 10:27 PM)


h1. Tracker example

<pre>
<code class="java"> type="java">

tracker = new Tracker();
tracker.AllowUnregisteredTorrents = true;
tracker.RegisterListener(listener);
listener.Start();

//trackable inehrit from ITrackable and must implement getters:
// TorrentFile[] Files, InfoHash InfoHash, string Name

tracker.Add(trackable);

</code>
</pre>