public void FixtureSetup() { listener = new System.Net.BitTorrent.Tracker.Listeners.HttpListener(uri.OriginalString); listener.Start(); server = new System.Net.BitTorrent.Tracker.Tracker(); server.RegisterListener(listener); listener.Start(); }
public void FixtureSetup() { keys = new List <string>(); server = new System.Net.BitTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new System.Net.BitTorrent.Tracker.Listeners.HttpListener(prefix); listener.AnnounceReceived += delegate(object o, System.Net.BitTorrent.Tracker.AnnounceParameters e) { keys.Add(e.Key); }; server.RegisterListener(listener); listener.Start(); }
public HttpTrackerTests(HttpTrackerFixture f) { keys = f.Keys; server = f.Server; listener = f.Listener; }