예제 #1
0
 public void FixtureSetup()
 {
     listener = new MonoTorrent.Tracker.Listeners.HttpListener(uri.OriginalString);
     listener.Start();
     server = new MonoTorrent.Tracker.Tracker();
     server.RegisterListener(listener);
     listener.Start();
 }
예제 #2
0
 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();
        }
예제 #4
0
        //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);
        }
예제 #5
0
        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();
        }
예제 #6
0
        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();
        }
예제 #7
0
        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();
        }
예제 #8
0
        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();
        }