network programming question

wildwolf

Golden Member
Jan 9, 2000
1,690
0
76
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.
 

Cerebus451

Golden Member
Nov 30, 2000
1,425
0
76
My first question would be, why the middle man? Is there a reason to not just have client1 talk directly to client2? Or is it just to act as a buffer since the times that client1 will be sending data and client2 wants to receive data will be out of sync?

Not sure how to program sockets in perl, but it's a fairly simple exercise in either C or Java. Plenty of sample code can be found in either language.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |