main: listen for client requests on multiple sockets
Merge pull request #1090 from jonboulle/1090_multiple_sockets

listen on multiple sockets