public void FixtureSetup() { listener = new MonoTorrent.Tracker.Listeners.HttpListener(uri.OriginalString); listener.Start(); server = new MonoTorrent.Tracker.Tracker(); server.RegisterListener(listener); listener.Start(); }
public TrackerTestRig() { Tracker = new MonoTorrent.Tracker.Tracker(); Listener = new CustomListener(); Tracker.RegisterListener(Listener); GenerateTrackables(); GeneratePeers(); }
//MonoTorrent.Client.Tracker.HTTPTracker tracker; public TrackerTests() { listener = new HttpListener(uri.OriginalString); listener.Start(); server = new MonoTorrent.Tracker.Tracker(); server.RegisterListener(listener); listener.Start(); //tracker = new MonoTorrent.Client.Tracker.HTTPTracker(uri); }
public void FixtureSetup() { server = new MonoTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new MonoTorrent.Tracker.Listeners.HttpListener(ListeningPrefix); listener.AnnounceReceived += delegate(object o, MonoTorrent.Tracker.AnnounceParameters e) { keys.Add(e.Key); }; server.RegisterListener(listener); listener.Start(); }
public void FixtureSetup() { keys = new List<string>(); server = new MonoTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new MonoTorrent.Tracker.Listeners.HttpListener(prefix); listener.AnnounceReceived += delegate (object o, MonoTorrent.Tracker.AnnounceParameters e) { keys.Add(e.Key); }; server.RegisterListener(listener); listener.Start(); }
public void Setup() { keys = new List <string>(); server = new MonoTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new MonoTorrent.Tracker.Listeners.HttpListener(prefix); listener.AnnounceReceived += HandleAnounceReceived; server.RegisterListener(listener); listener.Start(); keys.Clear(); }
public void FixtureSetup() { keys = new List <string>(); server = new MonoTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new IgnoringListener(6767); listener.AnnounceReceived += delegate(object o, MonoTorrent.Tracker.AnnounceParameters e) { keys.Add(e.Key); }; server.RegisterListener(listener); listener.Start(); }
public UdpTrackerTests() { keys = new List<string>(); server = new MonoTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new MonoTorrent.Tracker.Listeners.UdpListener(6767); listener.AnnounceReceived += delegate(object o, MonoTorrent.Tracker.AnnounceParameters e) { keys.Add(e.Key); }; server.RegisterListener(listener); listener.Start(); keys.Clear(); }