Prepare for SocketServer.