2016-07-21 1 views
-6

전 monotorrent를 사용하고 있습니다. 다운로드 속도를 높이기 위해 트래커를 추가 할 수 있는지 알고 싶습니다. 불행히도 MonoTorrent에는 설명서가 없으므로 도움을 받으실 수 있습니다. 내가 다운로드 사용하고더 많은 트래커 추가 - MonoTorrent

코드 (C#을) :

private void downloadTorrent() 
     { 
      infoLabel5.Text = "Torrent downloading, please wait. Don't close AutoDow!"; 
      infoLabel5.ForeColor = Color.Black; 
      browserProgress.Value = 0; 
      EngineSettings settings = new EngineSettings(); 
      settings.AllowedEncryption = EncryptionTypes.All; 
      settings.SavePath = @"E:\AutoDow\series\" + series; 
      ClientEngine engine = new ClientEngine(settings); 
      Torrent torrent = Torrent.Load(@"E:\AutoDow\torrents\" + series + @"\" + series + downloadTorrentCount + ".torrent"); 
      TorrentManager manager = new TorrentManager(torrent, engine.Settings.SavePath, new TorrentSettings()); 
      engine.Register(manager); 
      manager.PieceHashed += new EventHandler<PieceHashedEventArgs>(updateProgress); 
      manager.Start(); 
      manager.TorrentStateChanged += new EventHandler<TorrentStateChangedEventArgs>(handleTorrentStateChanged); 
     } 

답변

0

는이 같은 BEncodedDictionary의 토런트 정보를 얻을 :

BEncodedDictionary dict = (BEncodedDictionary)BEncodedDictionary.Decode(File.ReadAllBytes("path_to_torrent_file")); 

그런 다음 당신이 발표 목록 키에 항목을 추가

그리고 그 사전에서 토렌트를 만드십시오.