예제 #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();
 }
예제 #3
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();
        }
예제 #4
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();
 }
예제 #5
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();
        }
 /// <summary>
 /// Starts all the listeners in this tracker.
 /// </summary>
 public void Start() {
   _dictListener.Start();
   _httpListener.Start();
   Logger.WriteLineIf(LogLevel.Verbose, _log_props,
     string.Format("DhtTracker started."));
 }