Simple socket server.