A simple socket server (multiplex)