Overview -------- "multiplex" is a minimalistic tool that reads continuous stream of data from its standard input and multiplexes it to all the currently connected TCP clients. It's intended to be a companion to "socat" and "netcat". It tries to read a chunk of up to 8192 bytes of input data every time anything is available, and writes the same buffer to all the clients in non-blocking mode. If output buffers are too small or the link is too slow, the corresponding client is dropped immediately, no additional buffering is performed. Clients can connect and disconnect any time and start receiving as soon as new data is available. Usage ----- $ multiplex Read continious stream of data from standard input and multiplex it to all the connected TCP clients. is the TCP port number to listen on Example reading from a file: $ tail -F tracelog.bin | multiplex 7777 Example reading from a named pipe: $ ( while true; do cat tracepipe.bin; done ) | multiplex 7777 Copyright (C) 2015 Paul Fertser , distributed under GPLv3+ conditions