【问题标题】:Creation of torrent using monotorrent使用 monotorrent 创建 torrent
【发布时间】:2019-04-12 17:01:12
【问题描述】:

我正在尝试使用 C# 创建一个带有 monotorrent 包的 torrent 文件。

我已经使用 torrent 创建器创建了 torrent 文件,但我想添加一些在 torrent 创建器方法或属性中找不到的其他选项。

我正在寻找的选项:

  • 添加跟踪网址,
  • 网络种子 URL,
  • 来源,
  • 优化对齐。

这是我的代码的 sn-p:

string filepath = ofd.FileName;
PathDirectoryTxt.Text = filepath;
MonoTorrent.Common.TorrentCreator torrentcreaotr = new MonoTorrent.Common.TorrentCreator();
ITorrentFileSource fileSource = new TorrentFileSource(filepath);
torrentcreaotr.Comment = CommentsRichTxt.Text;
torrentcreaotr.CreatedBy = "Google using " + VersionInfo.ClientVersion;
torrentcreaotr.Publisher = "www.itsitus.com";
if ((PrivateTorrentCheckbox.Checked))
{
    torrentcreaotr.Private = true;
}
else if (!PrivateTorrentCheckbox.Checked)
{
    torrentcreaotr.Private = false;
}

string savepath = sfd.FileName;

torrentcreaotr.Create(fileSource, savepath);
MessageBox.Show("torrent file has been created successfully !");

【问题讨论】:

    标签: c# bittorrent monotorrent


    【解决方案1】:

    您是否尝试过使用跟踪器的 URL 设置“公告”属性,或者如果您有跟踪器层/后备,则设置“公告”?同样,使用 GetrightHttpSeed 属性设置 Webseed。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多