I need to write the following process and would like some guidance on where to start with this and if there are any useful libraries I should be looking at.
1. The process will sit on a Linux box
2. It will listen for incoming connections on two ports, say 60000 and 60001
3. Once both incoming connections are up, the process needs to pass everything from port 60000 to 60001 and visa-versa
4. When either of the connections is dropped, communication should stop.
Help gratefully received.
PS: I am not adverse to use another scripting language if that will be better for the job.