Files
DHTSpider/Spider/SpiderSetting.cs
ZhangKong a0434f8013 优化udp
2017-07-20 21:02:45 +08:00

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;
}
}
}