单流UDP错误

Monotorrent UDP error

我尝试用这个空文件来下载文件:

        public void DownloadTorrent(string path)
        {
            Torrent torrent = Torrent.Load(path);

            Console.WriteLine(torrent.Files[0]);
            TorrentManager manager = new TorrentManager(torrent, savePath, new TorrentSettings());
            engine.Register(manager);
            manager.HashCheck(true);
            manager.Start();
        }

但是每次我加载 torrent 文件时,我都会收到这个错误:

Unsupported protocol udp://tracker.publicbt.com:80/announce
Unsupported protocol udp://tracker.istole.it:80/announce

有人知道如何解决这个问题

提前致谢。

MonoTorrent 在 almost three years 中还没有提交,甚至在此之前你可以看到它在 2010 年之后的工作非常稀疏。它不会拥有现代 torrent 客户端所具有的所有优秀功能有,只是说。

无论如何,UDP Tracker Protocol first published in 2008 so it's a fair chance that there actually is some support. Looking through their commits on github shows us that c900c7c actually added udp tracker support back in 2009. A quick check in TrackerFactory.cs 也表明支持仍然存在。

但是有一个 pull request regarding the udp tracker protocol that hasn't been merged (and probably never will) so I'd say that your best bet would be to clone or fork the repository (or one of the many other forks) 并使用添加的补丁自己构建它。