Use libevent for server.