I have built many TCP clients and servers
I assume that you have built many blocking servers, but you have trouble with non-blocking architecture, am I right? If that's so I'd recommend to try one of CPAN's async I/O toolkits -
POE,
IO::Lambda,
AnyEvent,
EV
. Sure you can do the same without a toolkit, it just gets messy; begin with perldoc -f select if you need to build it from the ground up. | [reply] |
If you're familiar with creating non-blocking network servers and clients, maybe you could make TCP Client (with capital "C") act as a TCP server (with small "s") for connections from the TCP Server (with capital "s") rather than using pipes? TCP Server would simply connect to the TCP Client and send some data.
| [reply] |