using tcpcat/tcpclient bidirectionally

[email protected] Tue, 30 Sep 2014 15:23:28 +0000
Newsgroups gmane.org.djb.miscellaneous
Message-ID <[email protected]>
Hi I'm trying to use tcpcat/tcpclient as a secure and simple netcat 
replacement.

I need to read from Tor's ControlPort as well as write to Tor's 
ControlPort, usin a "file" that is open for both, reading and writing. 
This is not a Tor specific question but a certain example of what I'm 
trying to do, for more context.

I looked through the documentation but am unsure on how to accomplish 
this specifically.

At the moment netcat is used this way:

nc 127.0.0.1 9051 < "$OUT" > "$IN" &

This doesn't work with tcpcat:

tcpcat 127.0.0.1 9051 < "$OUT" > "$IN" &

How can tcpcat or tcpclient be used to do this?

Thanks