[ Home | What's New | Contents | Overview | Contributors | Distribution | Examples | Documentation | Manual | Publications | Mailing List Archive | Problems ] | This page was last updated by Axel Belinfante on 2004-10-25 | |
TorX Test Tool Information | ||
Prev | Next |
HOSTPORT localportnrwhere localportnr is the number of the opened port, after which it waits for commands on standard input and messages that arrive on the socket, until it detects end of file on its standard input, after which it closes the socket and exits. The recognized commands are discussed below. When a message arrives on the socket, it outputs on standard output a line of the form
RECV peerhost peeraddr peerport dataif printing of data is enabled, and/or, if printing of data in hexadecimal form is enabled, a line of the form
RECVHEX peerhost peeraddr peerport datahexIn these lines peerhost, peeraddr and peerport are the hostname, the IP number and the port number of the peer, and data and datahex are the contents of the message, as received resp. in hexadecimal form. By default, output in hexadecimal format is enabled, and output in ``normal'' format is disabled. This can be changed using the command line options -[no]printdatahex and -[no]printdata and with corresponding commands, as discussed below.
The -delay option enables randomly chosen 1-second delays (sleeps) between receipt of a message on standard input and forwarding of the message over the socket. If messages arrive at the socket (from over the network) during the delay (sleep), also they suffer from the delay. However, the FIFO behaviour of the program is untouched. This option is meant to (crudely) simulate the behaviour of buffering channels, such that if there are multiple channels we may see random interleavings of the messages on the different channels.
The -debug [nr] option opens a hardcoded pseudo terminal (pty) on which debugging information is printed. The amount of information printed depends on the numeric debug mode given (see the source).
There is no option to set the seed of the random number generator used for the -[no]delay command line option.
Prev | Table of Contents | Next |
Appendix D: TorX Manual Pages: torx_open(1) - run open/caesar tool on torx explorer program | Appendix D: TorX Manual Pages: unhexify(1) - translate from hexadecimal to ascii |