I've written my fair share of loops around accept() or select(); fork() or Thread.start().
I'd like to avoid doing it again. I'd prefer not to re-use my own code. And I'd like to take advantage of benefits that a 'serious' framework offers, such as preforking, thread pooling, etc.
What frameworks do you recommend - in any language - that accept socket connections and present the programmer with a stream handle to work with? There are plenty of well known ones for HTTP. I'm looking for something one protocol level lower down.
Two I'm aware of are:
- Netty for Java
- SocketServer for Python