Files
downkyicore/DownKyi.Core/Aria2cNet/Server/AriaConfig.cs
2024-12-02 13:46:03 +08:00

24 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace DownKyi.Core.Aria2cNet.Server;
/// <summary>
/// Aria服务器的启动配置
/// </summary>
public class AriaConfig
{
public int ListenPort { get; set; } // 服务器端口号取值1024-65535
public string Token { get; set; } // 连接服务器的token
public AriaConfigLogLevel LogLevel { get; set; } // 日志等级debug info notice warn error
public int MaxConcurrentDownloads { get; set; } // 最大同时下载数(任务数)取值1-*
public int MaxConnectionPerServer { get; set; } // 同服务器连接数取值1-16
public int Split { get; set; } // 单文件最大线程数取值1-*
//public int MaxTries { get; set; } //当服务器返回503错误时尝试重连尝试重连次数0代表无限默认:5
public int MinSplitSize { get; set; } // 最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要单位MB
public long MaxOverallDownloadLimit { get; set; } // 下载速度限制取值1-*
public long MaxDownloadLimit { get; set; } // 下载单文件速度限制取值1-*
public bool ContinueDownload { get; set; } // 断点续传
public AriaConfigFileAllocation FileAllocation { get; set; } // 文件预分配, none prealloc
public List<string> Headers { get; set; }
}