├── Aria2c
├── Aria2c.cs
├── Aria2c.csproj
├── Aria2cBittorrent.cs
├── Aria2cEvent.cs
├── Aria2cFiles.cs
├── Aria2cGlobalStat.cs
├── Aria2cGlobalStatEvent.cs
├── Aria2cLink.cs
├── Aria2cOption.cs
├── Aria2cPeers.cs
├── Aria2cProxy.cs
├── Aria2cRuntime.cs
├── Aria2cSettings.cs
├── Aria2cTask.cs
├── Aria2cTaskEvent.cs
├── Aria2cTools.cs
├── Aria2cUri.cs
├── Aria2cWarpper.cs
└── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Readme
└── XmlRpcNet
├── AssemblyDesc.cs
├── AssemblyDescFX1_0.cs
├── AssemblyInfo.cs
├── CookComputing.XmlRpc.Targets
├── DateTime8601.cs
├── GuidEx.cs
├── IXmlRpcProxy.cs
├── MappingActions.cs
├── MappingStack.cs
├── RequestResponseLogger.cs
├── Tracer.cs
├── WebSettings.cs
├── XmlRpcAsyncResult.cs
├── XmlRpcBeginAttribute.cs
├── XmlRpcClientFormatterSink.cs
├── XmlRpcClientFormatterSinkProvider.cs
├── XmlRpcClientProtocol.cs
├── XmlRpcClientProtocol.resx
├── XmlRpcDebugLogger.cs
├── XmlRpcDeserializer.cs
├── XmlRpcEndAttribute.cs
├── XmlRpcEnumMapping.cs
├── XmlRpcException.cs
├── XmlRpcFaultException.cs
├── XmlRpcFormatSettings.cs
├── XmlRpcLogger.cs
├── XmlRpcMemberAttribute.cs
├── XmlRpcMethodAttribute.cs
├── XmlRpcMethodInfo.cs
├── XmlRpcMissingMappingAttribute.cs
├── XmlRpcNet.csproj
├── XmlRpcNonStandard.cs
├── XmlRpcNullMappingAttribute.cs
├── XmlRpcParameterAttribute.cs
├── XmlRpcParameterInfo.cs
├── XmlRpcParser.cs
├── XmlRpcProxyCodeGen.cs
├── XmlRpcProxyGen.cs
├── XmlRpcRequest.cs
├── XmlRpcRequestEventArgs.cs
├── XmlRpcRequestSerializer.cs
├── XmlRpcResponse.cs
├── XmlRpcResponseDeserializer.cs
├── XmlRpcResponseEventArgs.cs
├── XmlRpcReturnValueAttribute.cs
├── XmlRpcSerializer.cs
├── XmlRpcStruct.cs
├── XmlRpcTypeInfo.cs
├── XmlRpcUrlAttribute.cs
├── XmlRpcXmlReader.cs
├── XmlRpcXmlWriter.cs
└── util.cs
/Aria2c/Aria2c.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {E352E426-A614-4E27-A8EE-CD80FA184FF2}
8 | Library
9 | Properties
10 | FlyVR.Aria2
11 | Aria2c
12 | v4.5.2
13 | 512
14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
15 | 4
16 | true
17 |
18 |
19 | AnyCPU
20 | true
21 | full
22 | false
23 | bin\Debug\
24 | DEBUG;TRACE
25 | prompt
26 | 4
27 |
28 |
29 | AnyCPU
30 | pdbonly
31 | true
32 | bin\Release\
33 | TRACE
34 | prompt
35 | 4
36 |
37 |
38 |
39 |
40 |
41 | true
42 | bin\x64\Debug\
43 | DEBUG;TRACE
44 | full
45 | x64
46 | prompt
47 | MinimumRecommendedRules.ruleset
48 |
49 |
50 | bin\x64\Release\
51 | TRACE
52 | true
53 | pdbonly
54 | x64
55 | prompt
56 | MinimumRecommendedRules.ruleset
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | 4.0
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 | Code
96 |
97 |
98 | True
99 | True
100 | Resources.resx
101 |
102 |
103 | True
104 | Settings.settings
105 | True
106 |
107 |
108 | ResXFileCodeGenerator
109 | Resources.Designer.cs
110 |
111 |
112 | SettingsSingleFileGenerator
113 | Settings.Designer.cs
114 |
115 |
116 |
117 |
118 |
119 | {1F8D0987-7BE8-47DC-BFAD-9CA61F2F3D9D}
120 | DebugLog
121 |
122 |
123 | {1B4B0A58-0AFB-4090-91DD-18912CC7DE65}
124 | XmlRpcNet
125 |
126 |
127 |
128 |
135 |
--------------------------------------------------------------------------------
/Aria2c/Aria2cBittorrent.cs:
--------------------------------------------------------------------------------
1 | #region 类信息
2 | /*----------------------------------------------------------------
3 | * 模块名:Aria2cBittorrent
4 | * 创建者:isRight
5 | * 修改者列表:
6 | * 创建日期:2016.12.29
7 | * 模块描述:aria2c种子任务信息
8 | *----------------------------------------------------------------*/
9 | #endregion
10 |
11 | namespace FlyVR.Aria2
12 | {
13 | using CookComputing.XmlRpc;
14 | using System;
15 | using System.Collections.Generic;
16 | using System.Linq;
17 | using System.Text;
18 | using System.Threading.Tasks;
19 |
20 | ///
21 | /// 种子文件模式
22 | ///
23 | public enum Aria2cBittorrentMode
24 | {
25 | Single,
26 | Multi,
27 | }
28 |
29 | public sealed class Aria2cBittorrent
30 | {
31 |
32 | public Aria2cBittorrent()
33 | {
34 |
35 | }
36 |
37 | ///
38 | /// 将rpc信息转换为种子信息
39 | ///
40 | ///
41 | public Aria2cBittorrent(XmlRpcStruct rpcStruct)
42 | {
43 | List keyList = rpcStruct.Keys as List;
44 | List