A
at
Unix system: I have a compiled application that can only use STDIO
but I now need it to talk to a remote server using TCP on a particular
socket.
I've tried some hardware type interfaces in between but its difficult
if not impossible to control the port assignments.
I was thinking that I could create a perl program and via a pipe
connect it to my compiled application and the perl program could use a
module like Sockets::IO to connect to and pass the IO through both
ways. Sometimes the traffic is incoming and sometimes its outgoing.
Am I crazy or would this be possible and viable? Any other
suggestions also appreciated.
Thanks
but I now need it to talk to a remote server using TCP on a particular
socket.
I've tried some hardware type interfaces in between but its difficult
if not impossible to control the port assignments.
I was thinking that I could create a perl program and via a pipe
connect it to my compiled application and the perl program could use a
module like Sockets::IO to connect to and pass the IO through both
ways. Sometimes the traffic is incoming and sometimes its outgoing.
Am I crazy or would this be possible and viable? Any other
suggestions also appreciated.
Thanks