|
@@ -2983,12 +2983,22 @@ example, imagine that three downloads "A","B" and "C" are waiting in
|
|
|
this order. aria2.tellWaiting(0, 1) returns "A". aria2.tellWaiting(1,
|
|
|
2) returns "B" and "C". The respose is of type array and its element
|
|
|
is the same struct returned by <strong>aria2.tellStatus</strong> method.</p></div>
|
|
|
+<div class="paragraph"><p><strong>aria2.getOption</strong> <em>gid</em></p></div>
|
|
|
+<div class="paragraph"><p>This method returns options of the download denoted by <em>gid</em>. The
|
|
|
+response is of type struct. Its key is the name of option. The value type
|
|
|
+is string.</p></div>
|
|
|
<div class="paragraph"><p><strong>aria2.changeOption</strong> <em>gid, options</em></p></div>
|
|
|
<div class="paragraph"><p>This method changes options of the download denoted by <em>gid</em>
|
|
|
dynamically. <em>gid</em> is of type string. <em>options</em> is of type struct
|
|
|
and the available options are: <strong>bt-max-peers</strong>,
|
|
|
<strong>bt-request-peer-speed-limit</strong>, <strong>max-download-limit</strong> and
|
|
|
<strong>max-upload-limit</strong>. This method returns "OK" for success.</p></div>
|
|
|
+<div class="paragraph"><p><strong>aria2.getGlobalOption</strong></p></div>
|
|
|
+<div class="paragraph"><p>This method returns global options. The response is of type
|
|
|
+struct. Its key is the name of option. The value type is string.
|
|
|
+Because global options are used as a template for the options of newly
|
|
|
+added download, the response contains keys returned by
|
|
|
+<strong>aria2.getOption</strong> method.</p></div>
|
|
|
<div class="paragraph"><p><strong>aria2.changeGlobalOption</strong> <em>options</em></p></div>
|
|
|
<div class="paragraph"><p>This method changes global options dynamically. <em>options</em> is of type
|
|
|
struct and the available options are <strong>max-concurrent-downloads</strong>,
|
|
@@ -3486,7 +3496,7 @@ files in the program, then also delete it here.</p></div>
|
|
|
<div id="footnotes"><hr /></div>
|
|
|
<div id="footer">
|
|
|
<div id="footer-text">
|
|
|
-Last updated 2009-12-20 18:35:41 JST
|
|
|
+Last updated 2009-12-20 23:42:01 JST
|
|
|
</div>
|
|
|
</div>
|
|
|
</body>
|