I am not asking for code (yet), but is it feasible to have a perl socket listener on one single tcp port that then redirects the socket feed after examining the ip address to another listener on the same box ? I have multiple Tandem event feeds that can only connect to one single global ip and port combination, yet each of the 5 Tandem feeds needs to go to its own listening port (process) on this linux box. It sounds just like a firewall sort of function, but it doesn't have to be secure.
Thanks