From 50b4cf67e04f4253891c53c1b1b97168fdc1aa76 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 23 Jun 2007 06:25:12 +0000 Subject: [PATCH] 2007-06-23 Tatsuhiro Tsujikawa Added the default listening ports to the help message. * src/main.cc (showUsage) --- ChangeLog | 5 +++++ doc/aria2c.1 | 6 +++--- doc/aria2c.1.txt | 1 + src/main.cc | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61401460..1b3edc4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-23 Tatsuhiro Tsujikawa + + Added the default listening ports to the help message. + * src/main.cc (showUsage) + 2007-06-20 Tatsuhiro Tsujikawa Reduce the number of calls to gettimeofday to lower CPU load. diff --git a/doc/aria2c.1 b/doc/aria2c.1 index 727239b0..bc95021c 100644 --- a/doc/aria2c.1 +++ b/doc/aria2c.1 @@ -1,11 +1,11 @@ .\" Title: aria2c .\" Author: .\" Generator: DocBook XSL Stylesheets v1.72.0 -.\" Date: 06/10/2007 +.\" Date: 06/23/2007 .\" Manual: .\" Source: .\" -.TH "ARIA2C" "1" "06/10/2007" "" "" +.TH "ARIA2C" "1" "06/23/2007" "" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -292,7 +292,7 @@ Directly read from and write to each file mentioned in .torrent file. Default: .PP \-\-listen\-port=PORT .RS 4 -Set port number to listen to for peer connection. +Set port number to listen to for peer connection. Default: 6881\-6999 .RE .PP \-\-max\-upload\-limit=SPEED diff --git a/doc/aria2c.1.txt b/doc/aria2c.1.txt index 34b423c3..faf0c841 100644 --- a/doc/aria2c.1.txt +++ b/doc/aria2c.1.txt @@ -201,6 +201,7 @@ OPTIONS --listen-port=PORT:: Set port number to listen to for peer connection. + Default: 6881-6999 --max-upload-limit=SPEED:: Set max upload speed in bytes per sec. diff --git a/src/main.cc b/src/main.cc index 4ab57210..ef1e92c2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -224,7 +224,8 @@ void showUsage() { cout << _(" --direct-file-mapping=true|false Directly read from and write to each file\n" " mentioned in .torrent file.\n" " Default: true") << endl; - cout << _(" --listen-port=PORT Set port number to listen to for peer connection.") << endl; + cout << _(" --listen-port=PORT Set port number to listen to for peer connection.\n" + " Default: 6881-6999") << endl; cout << _(" --max-upload-limit=SPEED Set max upload speed in bytes per sec.\n" " 0 means unrestricted.\n" " You can append K or M(1K = 1024, 1M = 1024K).\n"