added many comments
[oweals/gnunet.git] / doc / man / gnunet-transport.1
index 64375939591cd911d1411aabe5f101d0a0c4d501..63c3163b2fd7b958a0f9ea212e6d275dafae64f7 100644 (file)
@@ -1,96 +1,62 @@
-.TH GNUNET-TRANSPORT "1" "23 Dec 2006" "GNUnet"
+.TH gnunet\-transport "1" "26 Oct 2011" "GNUnet"
 .SH NAME
-gnunet\-transport \- a tool to test a GNUnet transport service
+gnunet\-transport \- measure and control the transport subsystem
+
 .SH SYNOPSIS
-.B gnunet\-transport\
+.B gnunet\-transport
 [\fIOPTIONS\fR]
 .SH DESCRIPTION
 .PP
-gnunet\-transport can be used to test or profile
-a GNUnet transport service.  The tool can be used to test
-both the correctness of the software as well as the correctness
-of the configuration.  gnunet\-transport features two modes,
-called loopback mode and ping mode.  In loopback mode the test is limited to testing if the
-transport can be used to communicate with itself (loopback).
-This mode does not include communication with other peers which
-may be blocked by firewalls and other general Internet connectivity
-problems.  The loopback mode is particularly useful to test
-the SMTP transport service since this service is fairly hard to
-configure correctly and most problems can be reveiled by just
-testing the loopback.  In ping mode the tool will attempt to download
-peer advertisements from the URL specified in the configuration file
-and then try to contact each of the peers.  Note that it is perfectly
-normal that some peers do not respond, but if no peer responds something
-is likely to be wrong.  The configuration is always taken
-from the configuration file.  Do not run gnunetd while running
-gnunet\-transport since the transport services cannot
-be used by two processes at the same time.
-.PP
-gnunet\-transport will always produce an error\-message for
-the NAT transport in loopback mode.  If NAT is configured in accept\-mode (as in,
-accept connections from peers using network address translation),
-the check will fail with the message "could not create HELO",
-which is correct since the peer itself is clearly not going to
-advertise itself as a NAT.  If the peer is configured in NAT\-mode,
-that is, the peer is behind a NAT box, the message will be
-'could not connect'.  For NAT, both messages are NOT errors
-but exactly what is supposed to happen.
-.PP
-Similarly, a NAT\-ed peer should typically configure the TCP transport
-to use port 0 (not listen on any port).  In this case,
-gnunet\-transport will print 'could not create HELO' for the
-TCP transport.  This is also ok.  In fact, a correctly configured
-peer using NAT should give just two errors (could not connect for
-tcp and could not create HELO for NAT) when tested using
-gnunet\-transport\.  The reason is, that gnunet\-transport\
-only tests loopback connectivity, and for a NAT\-ed peer, that just
-does not apply.
-.PP
-Note that in ping mode the HTTP download times out after 5 minutes,
-so if the list of peers is very large and not all peers can be
-queried within the 5 minutes the tool may abort before trying all
-peers.
+
+gnunet\-transport is a tool to access various functions of GNUnet's transport subsystem from the command\-line.  Most of these are not expected to be useful for end-users.  gnunet\-transport can be used to evaluate the performance of the transports, force a peer to connect to another peer (if possible).  Other functions should be added in the near future.
+
+.TP
+\fB\-b\fR, \fB\-\-benchmark\fR
+measure how fast we are receiving data (from all connections).  On exit, the data rate will be reported.  Runs until aborted with CTRL-C.
 .TP
-\fB\-c \fIFILENAME\fR, \fB\-\-config=\fIFILENAME\fR
-use config file (default: /etc/gnunetd.conf)
+\fB\-C \fIPEER\fR, \fB\-\-connect=PEER\fR
+peer to connect to (used in conjunction with \-p)
+.TP
+\fB\-c \fIFILENAME\fR, \fB\-\-config=FILENAME\fR
+configuration file to use
+.TP
+\fB\-e \fB\-\-events\fR
+provide information about all connect and disconnect events (continuously)
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 print help page
 .TP
-\fB\-L \fILOGLEVEL\fR, \fB\-\-loglevel=\fILOGLEVEL\fR
-change the loglevel. Possible values for \fILOGLEVEL\fR are NOTHING, FATAL, ERROR, FAILURE, WARNING, MESSAGE, INFO, DEBUG, CRON and EVERYTHING.
+\fB\-i\fR, \fB\-\-information\fR
+print information about our current connections (once)
 .TP
-\fB\-p\fR, \fB\-\-ping\fR
-use ping mode (loopback mode is default)
+\fB\-L \fILOGLEVEL\fR, \fB\-\-loglevel=LOGLEVEL\fR
+Change the loglevel.  Possible values for LOGLEVEL are ERROR, WARNING, INFO and DEBUG.
 .TP
-\fB\-r\fI COUNT \fB\-\-repeat=\fICOUNT\fR
-send COUNT messages in a sequence over the same connection
+\fB\-l \fILOGFILE\fR, \fB\-\-logfile=LOGFILE\fR
+configure logging to write logs to LOGFILE
 .TP
-\fB\-s\fI SIZE \fB\-\-size=\fISIZE\fR
-test using the specified message size, default is 11
+\fB\-m\fR, \fB\-\-monitor\fR
+print information about our current connections (continuously)
 .TP
-\fB\-t\fI TRANSPORT\fR, \fB\-\-transport=\fITRANSPORT\fR
-run using the specified transport, if not given the transports
-configured in the configuration file are used.
+\fB\-p \fIPEER\fR, \fB\-\-peer=PEER\fR
+the peer identity
 .TP
-\fB\-u \fIUSER\fR, \fB\-\-user=USER\fR
-run as user USER (and if available as group USER). Note that to use this option, you will probably have to start gnunet-transport as
-root. It is typically better to directly start gnunet-transport as that user instead.
+\fB\-s\fR, \fB\-\-send\fR
+transmit (dummy) traffic as quickly as possible to the peer specified with the \-p option.  The rate will still be limited by the quota(s) determined by the peers (ATS subsystem).  Will run until CTRL\-C is pressed or until the connection to the other peer is disrupted.
+.TP
+\fB\-t\fR, \fB\-\-test\fR
+test transport configuration.  With this flag, the tool will check if each of the configured transport plugins has a working address.  Plugins that do not have a listen port configured will be ignored.  The test is performed with the help of an external server (by default running on gnunet.org) which tries to contact the local machine.  The test can only work if the local GNUnet peer is not yet running.
 .TP
 \fB\-v\fR, \fB\-\-version\fR
 print the version number
 .TP
 \fB\-V\fR, \fB\-\-verbose\fR
 be verbose
+
 .SH NOTES
-gnunet\-transport can run for a long time, depending on
-how high you have set the \fICOUNT\fR level. Run first with small numbers
-for \fICOUNT\fR to get an initial estimate on the runtime.
-.SH FILES
-.TP
-/etc/gnunetd.conf
-default gnunetd configuration file
+
+
 .SH "REPORTING BUGS"
-Report bugs by using mantis <https://gnunet.org/mantis/> or by sending electronic mail to <gnunet-developers@gnu.org>
+Report bugs by using mantis <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet\-developers@gnu.org>
 .SH "SEE ALSO"
-\fBgnunetd.conf\fP(5), \fBgnunetd\fP(1)
+\fBgnunet\-arm\fP(1)