Is it possible to open two sockets on different ports in the same program? I mean, this certainly seems right, but I can't seem to make it work. I have read up on Socket, IO::Socket, forking, select(), etc. and can't get it to work.
What I would like to accomplish is to have one server.pl server respond to requests from (a) clients on port, say, 7070 and (b) other type of clients on, say, 7071. When I build and listen to both sockets, though, they seem to get in each other's way. Or am I wrong, can you not create two sockets on different ports with the same script?