summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-14 13:40:25 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-14 13:40:25 +0000
commit81b2e6e1089f7765c246a7476df080db2f3499c6 (patch)
tree91a6d5bde27f5a233683918dc6c9766f50e6096e
parent479a16edd6e416dbb846f1ce677a193f6f6bb087 (diff)
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added usage message for --uri-selector, --server-stat-of, --server-stat-in, --server-stat-timeout options. * src/HelpItemFactory.cc * src/usage_text.h
-rw-r--r--ChangeLog7
-rw-r--r--src/HelpItemFactory.cc28
-rw-r--r--src/usage_text.h26
3 files changed, 60 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e135c3a..0b7514c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+ Added usage message for --uri-selector, --server-stat-of,
+ --server-stat-in, --server-stat-timeout options.
+ * src/HelpItemFactory.cc
+ * src/usage_text.h
+
+2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+
Added upper limit of FTP response buffer. The current implementation
uses 4096bytes as a limit.
* src/FtpConnection.cc
diff --git a/src/HelpItemFactory.cc b/src/HelpItemFactory.cc
index 22d951ad..be4c50f0 100644
--- a/src/HelpItemFactory.cc
+++ b/src/HelpItemFactory.cc
@@ -535,6 +535,34 @@ TagContainerHandle HelpItemFactory::createHelpItems(const Option* op)
tc->addItem(item);
}
{
+ HelpItemHandle item(new HelpItem(PREF_URI_SELECTOR, TEXT_URI_SELECTOR,
+ op->get(PREF_URI_SELECTOR)));
+ item->addTag(TAG_HTTP);
+ item->addTag(TAG_FTP);
+ item->setAvailableValues(V_INORDER+","+V_FEEDBACK);
+ tc->addItem(item);
+ }
+ {
+ HelpItemHandle item(new HelpItem(PREF_SERVER_STAT_OF, TEXT_SERVER_STAT_OF));
+ item->addTag(TAG_HTTP);
+ item->addTag(TAG_FTP);
+ tc->addItem(item);
+ }
+ {
+ HelpItemHandle item(new HelpItem(PREF_SERVER_STAT_IF, TEXT_SERVER_STAT_IF));
+ item->addTag(TAG_HTTP);
+ item->addTag(TAG_FTP);
+ tc->addItem(item);
+ }
+ {
+ HelpItemHandle item(new HelpItem(PREF_SERVER_STAT_TIMEOUT,
+ TEXT_SERVER_STAT_TIMEOUT,
+ "86400 (24hours)"));
+ item->addTag(TAG_HTTP);
+ item->addTag(TAG_FTP);
+ tc->addItem(item);
+ }
+ {
HelpItemHandle item(new HelpItem("help", TEXT_HELP, TAG_BASIC));
item->setAvailableValues
(StringFormat("%s,%s,%s,%s,%s,%s,%s,all", TAG_BASIC, TAG_ADVANCED, TAG_HTTP, TAG_FTP, TAG_METALINK, TAG_BITTORRENT,TAG_HELP).str());
diff --git a/src/usage_text.h b/src/usage_text.h
index 96cc4606..fad21898 100644
--- a/src/usage_text.h
+++ b/src/usage_text.h
@@ -372,4 +372,28 @@ _(" --max-file-not-found=NUM If aria2 recieves `file not found' status from
" Specify 0 to disable this option.\n"\
" This options is only effective only when using\n"\
" HTTP/FTP servers.")
-
+#define TEXT_URI_SELECTOR \
+_(" --uri-selector=SELECTOR Specify URI selection algorithm. Possible values\n"\
+ " are 'inorder' and 'feedback'.\n"\
+ " If 'inorder' is given, URI is tried in the order\n"\
+ " appeared in the URI list.\n"\
+ " If 'feedback' is given, aria2 uses download speed\n"\
+ " observed in the previous downloads and choose\n"\
+ " fastest server in the URI list. This also\n"\
+ " effectively skips dead mirrors. The observed\n"\
+ " download speed is a part of performance profile\n"\
+ " of servers mentioned in --server-stat-of and\n"\
+ " --server-stat-if options.")
+#define TEXT_SERVER_STAT_OF \
+_(" --server-stat-of=FILE Specify the filename to which performance profile\n"\
+ " of the servers is saved. You can load saved data\n"\
+ " using --server-stat-if option.")
+#define TEXT_SERVER_STAT_IF \
+_(" --server-stat-if=FILE Specify the filename to load performance profile\n"\
+ " of the servers. The loaded data will be used in\n"\
+ " some URI selector such as 'feedback'.\n"\
+ " See also --uri-selector option")
+#define TEXT_SERVER_STAT_TIMEOUT \
+_(" --server-stat-timeout=SEC Specifies timeout in seconds to invalidate\n"\
+ " performance profile of the servers since the last\n"\
+ " contact to them.")