Hi.
I want to be able to have a perl script (but am willing to switch languages if it's easier) running and accepting connections from 2 different machines in my home, receive the input (ascii text) from one, and send it (still as ascii text) to the other.
The easiest way to explain it, is I almost want a proxy. In a proxy, a program accepts a connection (it is a server) with an address, it connects TO that address (connecting as a client), and returns what was returned to it to the original connection, right?
What I need is a server, that accepts a client's connection, receives its data. Accepts another connection from a different client, and sends client1 data to client2. Both connections need to remain...well connected, if possible.
I hope this is explained well enough. I am not looking for anybody to write this, I am just hoping somebody can point me into the right direction on how to accept two connections and keep them open...and pass data from one to the other (data will always only flow 1 way): client1 => client2.
I've looked at this for sometime now, and am baffled on how to accomplish this.
Thanks.
I want to be able to have a perl script (but am willing to switch languages if it's easier) running and accepting connections from 2 different machines in my home, receive the input (ascii text) from one, and send it (still as ascii text) to the other.
The easiest way to explain it, is I almost want a proxy. In a proxy, a program accepts a connection (it is a server) with an address, it connects TO that address (connecting as a client), and returns what was returned to it to the original connection, right?
What I need is a server, that accepts a client's connection, receives its data. Accepts another connection from a different client, and sends client1 data to client2. Both connections need to remain...well connected, if possible.
I hope this is explained well enough. I am not looking for anybody to write this, I am just hoping somebody can point me into the right direction on how to accept two connections and keep them open...and pass data from one to the other (data will always only flow 1 way): client1 => client2.
I've looked at this for sometime now, and am baffled on how to accomplish this.
Thanks.