[ 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 2003-08-05
TorX Test Tool Information
Prev   Next

hexcontext(1) - run program in hexadecimal context

Table of Contents

Name

hexcontext - run program in hexadecimal context

Synopsis

hexcontext [ -debug [ nr ] ] [ -port portnr ] [ -[no]printdata ] [ -[no]printdatahex ] program args ...

Description

hexcontext starts the given program with given args, keeping pipes between itself and the standard input, standard output and standard error of the started program. If this succeeds, it waits for commands on standard input and output of the program that arrives on the pipes, until end of file is detected on the standard input of hexcontext and the standard output and standard error of program, after which hexcontext will wait for program to exit, and then exits itself. The recognized commands are discussed below. When output of the program arrives on the pipes, hexcontext outputs on standard output a line of the form
RECV pipe data
if printing of data is enabled, and/or, if printing of data in hexadecimal form is enabled, a line of the form
RECVHEX pipe datahex
In these lines pipe will be stdout if the data was received from the standard output of program, and stderr if the data was received from the standard error of program, 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 -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. For more information, use the source.

Commands

The following commands can be given on the standard input of hexcontext. The command keyword (printed in capitals in this section) is recognized regardless of case (uppercase, lowercase, mixed).
SENDHEX datahex
send the data (given as hexadecimal string) to the standard input of program.
PRINTDATA
enable printing of data ``as received'', in the form of RECV lines
NOPRINTDATA
disable printing of data ``as received'', in the form of RECV lines
PRINTDATAHEX
enable printing of data in hexadecimal form, in the form of RECVHEX lines
NOPRINTDATAHEX
disable printing of data in hexadecimal form, in the form of RECVHEX lines
DEBUG [nr]
set debugging mode. Debugging mode 0 disables debugging, for the other modes, see the source.
NODEBUG
disable debugging

See Also

torx-intro(1), tcp(1), udp(1), unhexify(1)

Contact

By Email: <torx_support@cs.utwente.nl>

Version

This manual page documents version 3.9.0 of torx.


Table of Contents


Prev Table of Contents Next
Appendix D: TorX Manual Pages: cppmkprimer(1) - preprocess input with cpp before invoking mkprimer Valid HTML 4.01! Appendix D: TorX Manual Pages: instantiator(1) - instantiate free variables for torx