Previous - Next
Why Perl?
- The company class library had "client" and "server" socket classes
- A server socket listened on a port and accepted a connection--once
But I needed two listening (server) sockets on the same port
- I needed to read from both sockets
- I could have fiddled with select, reading from one socket at a time
- But I didn't particularly fancy doing that
- And anyway, our classes didn't provide for two sockets listening on the same port
- I could also have forked a new process for each socket
- But I needed to exchange data between the server socket and the client socket
- I would have needed some sort of IPC to pass this data from one process to another
- This wasn't particularly appealing, either
Previous - Next