mirror of
https://github.com/zhangkong828/DHTSpider.git
synced 2026-10-18 05:00:44 +08:00
34 lines
903 B
C#
34 lines
903 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Spider
|
|
{
|
|
public class SpiderSetting
|
|
{
|
|
public int LocalPort { get; set; }
|
|
|
|
public bool IsSaveTorrent { get; set; }
|
|
|
|
public string TorrentSavePath { get; set; }
|
|
|
|
public int MaxDownLoadThreadCount { get; set; }
|
|
|
|
public int MaxSpiderThreadCount { get; set; }
|
|
|
|
public SpiderSetting(int localPort = 6881, bool isSaveTorrent = false, string torrentSavePath = "", int maxDownLoadThreadCount = 10, int maxSpiderThreadCount = 1)
|
|
{
|
|
LocalPort = localPort;
|
|
IsSaveTorrent = isSaveTorrent;
|
|
TorrentSavePath = torrentSavePath;
|
|
MaxDownLoadThreadCount = maxDownLoadThreadCount;
|
|
MaxSpiderThreadCount = maxSpiderThreadCount;
|
|
}
|
|
|
|
|
|
}
|
|
}
|