|[ 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-09-21|
|TorX Test Tool Information|
tmcs opens a socket at port portnr, if given, or the first free one. If this succeeds, it prints on standard output a line of the form
ipaddr hostname localportnrwhere localportnr is the number of the opened port. Both ipaddr and hostname may have the value 0.0.0.0. After this it waits for connections that are made to the socket, and for messages that arrive over these connections. Each message (usually: line of text) received over one connection is forwarded over all other connections. tmcs will exit when its last connection is closed. Initially it has no connections, so in order to make it exit (without explicitly killing it) at least one connection must be made to it.
When invoked with the -i flag, it will start a command interpreter. Otherwise, invoke it as for example
var=`tmcs|head -1`to get the port number of tmcs in var.
Table of Contents
|Prev||Table of Contents||Next|
|Appendix D: TorX Manual Pages: tcp(1) - tcp connection program||Appendix D: TorX Manual Pages: torx-hostname(1) - print hostname taken from network database|