Beispiel #1
0
 public TrackerInfo(string url)
 {
     Url           = url;
     LastAnnounced = DateTime.MinValue;
     LastState     = AnnounceState.None;
     _client       = new TrackerClient(new[] { Url });
 }
Beispiel #2
0
 public TrackerInfo(string url)
 {
     Url = url;
     LastAnnounced = DateTime.MinValue;
     LastState = AnnounceState.None;
     client = new TrackerClient(new[]{Url});
 }
Beispiel #3
0
 private void StartActions()
 {
     _stop             = false;
     _stopping         = false;
     Running           = true;
     _tracker          = new TrackerClient(Data.Announces);
     _statsReportTimer = new Timer(o => OnStatsReport(), new object(), 0, Timeout.Infinite);
     //таймер за отчитане на състоянието
     _monitor        = new TransferMonitor(Data.InfoHash, Data.TotalLength);
     AnnounceManager = new AnnounceManager(Data.Announces, _monitor, Data);
     AnnounceManager.PeersReceived += (sender, args) =>
     {
         Mode?.AddEndpoints(args.Value);
     };
 }
 private void StartActions()
 {
     stop             = false;
     stopping         = false;
     Running          = true;
     tracker          = new TrackerClient(Data.Announces);
     statsReportTimer = new Timer(o => OnStatsReport()); //таймер за отчитане на състоянието
     monitor          = new TransferMonitor(Data.InfoHash, Data.TotalLength);
     AnnounceManager  = new AnnounceManager(Data.Announces, monitor, Data);
     AnnounceManager.PeersReceived += (sender, args) =>
     {
         if (Mode != null)
         {
             Mode.AddEndpoints(args.Value);
         }
     };
 }
 private void StartActions()
 {
     stop = false;
     stopping = false;
     Running = true;
     tracker = new TrackerClient(Data.Announces);
     statsReportTimer = new Timer(o => OnStatsReport()); //таймер за отчитане на състоянието
     monitor = new TransferMonitor(Data.InfoHash, Data.TotalLength);
     AnnounceManager = new AnnounceManager(Data.Announces, monitor, Data);
     AnnounceManager.PeersReceived += (sender, args) =>
     {
         if (Mode != null)
             Mode.AddEndpoints(args.Value);
     };
 }