Przeglądaj źródła

Add documentation for 'btpd --numwant' and 'btcli rate'

master
Marq Schneider 15 lat temu
rodzic
commit
c550cbb435
3 zmienionych plików z 19 dodań i 1 usunięć
  1. +4
    -0
      README
  2. +8
    -0
      doc/btcli.1
  3. +7
    -1
      doc/btpd.1

+ 4
- 0
README Wyświetl plik

@@ -50,6 +50,7 @@ Contents
* del - Remove torrents from btpd. * del - Remove torrents from btpd.
* kill - Shut down btpd. * kill - Shut down btpd.
* list - List torrents. * list - List torrents.
* rate - Set the global up and download rates in KB/s.
* start - Activate torrents. * start - Activate torrents.
* stat - Display stats for active torrents. * stat - Display stats for active torrents.
* stop - Deactivate torrents. * stop - Deactivate torrents.
@@ -160,6 +161,9 @@ Contents
Same as above, but also display individual stats for each active torrent. Same as above, but also display individual stats for each active torrent.
# btcli stat -w 5 -i # btcli stat -w 5 -i


Set the global upload rate to 20KB/s and download rate to 1MB/s.
# btcli rate 20K 1M

Shut down btpd. Shut down btpd.
# btcli kill # btcli kill




+ 8
- 0
doc/btcli.1 Wyświetl plik

@@ -27,6 +27,8 @@ One of the following operations must be specified when running btcli:
.TP .TP
\fBlist\fR \- List torrents. \fBlist\fR \- List torrents.
.TP .TP
\fBrate\fR \- Set the global up and download rates in KB/s.
.TP
\fBstart\fR \- Activate torrents. \fBstart\fR \- Activate torrents.
.TP .TP
\fBstat\fR \- Display stats for active torrents. \fBstat\fR \- Display stats for active torrents.
@@ -225,6 +227,12 @@ Same as above, but also display individual stats for each active torrent.
.B $ btcli stat \-w 5 \-i .B $ btcli stat \-w 5 \-i
.RE .RE
.PP .PP
Set the global upload rate to 20KB/s and download rate to 1MB/s.
.br
.RS 4
.B $ btcli rate 20K 1M
.RE
.PP
Shut down btpd. Shut down btpd.
.br .br
.RS 4 .RS 4


+ 7
- 1
doc/btpd.1 Wyświetl plik

@@ -63,10 +63,13 @@ Set the protection mode of the command socket. The mode is specified by an octa
.B \-\-logfile \fIfile\fR .B \-\-logfile \fIfile\fR
Where to put the logfile. By default it's put in the btpd dir. Where to put the logfile. By default it's put in the btpd dir.
.TP .TP
.B \-\-logmask \fImask\fR
Bitfield to specify which data to record in the btpd log (dev info).
.TP
.B \-\-max\-peers \fIn\fR .B \-\-max\-peers \fIn\fR
Limit the amount of peers to \fIn\fR. Limit the amount of peers to \fIn\fR.
.TP .TP
.B \-\-max\-uploads n
.B \-\-max\-uploads \fIn\fR
Controls the number of simultaneous uploads. The possible values are: Controls the number of simultaneous uploads. The possible values are:
.RS .RS
\fIn\fR < \-1 : Choose \fIn\fR >= 2 based on \fB\-\-bw\-out\fR (default). \fIn\fR < \-1 : Choose \fIn\fR >= 2 based on \fB\-\-bw\-out\fR (default).
@@ -83,6 +86,9 @@ Keep the btpd process in the foregorund and log to std{out,err}. This option is
.TP .TP
.B \-\-prealloc \fIn\fR .B \-\-prealloc \fIn\fR
Preallocate disk space in chunks of \fIn\fR kB. Default is 2048. Note that \fIn\fR will be rounded up to the closest multiple of the torrent piece size. If \fIn\fR is zero no preallocation will be done. Preallocate disk space in chunks of \fIn\fR kB. Default is 2048. Note that \fIn\fR will be rounded up to the closest multiple of the torrent piece size. If \fIn\fR is zero no preallocation will be done.
.TP
.B \-\-numwant \fIn\fR
Specify the number of wanted peers 'numwant' tracker request parameter. Default is 50.
.SH "STARTING BTPD" .SH "STARTING BTPD"
To start btpd with default settings you only need to run it. However, there are many useful options you may want to use. To see a full list run \fBbtpd \-\-help\fR. If you didn't specify otherwise, btpd starts with the same set of active torrents as it had the last time it was shut down. To start btpd with default settings you only need to run it. However, there are many useful options you may want to use. To see a full list run \fBbtpd \-\-help\fR. If you didn't specify otherwise, btpd starts with the same set of active torrents as it had the last time it was shut down.
.PP .PP


Ładowanie…
Anuluj
Zapisz