You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
downkyi/DownKyi.Core/Aria2cNet/Server/AriaConfig.cs

28 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections.Generic;
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 long MaxOverallUploadLimit { get; set; } // 上传速度限制取值1-*
public long MaxUploadLimit { get; set; } // 上传单文件速度限制取值1-*
public bool ContinueDownload { get; set; } // 断点续传
public AriaConfigFileAllocation FileAllocation { get; set; } // 文件预分配, none prealloc
public List<string> Headers { get; set; }
}
}