public UdpTrackerFixture() { keys = new List <string>(); server = new System.Net.BitTorrent.Tracker.Tracker(); server.AllowUnregisteredTorrents = true; listener = new System.Net.BitTorrent.Tracker.Listeners.UdpTrackerListener(6767); listener.AnnounceReceived += delegate(object o, System.Net.BitTorrent.Tracker.AnnounceParameters e) { keys.Add(e.Key); }; server.RegisterListener(listener); listener.Start(); }
public UdpTrackerTests(UdpTrackerFixture f) { keys = f.keys; server = f.server; listener = f.listener; }