Libevent based server on c++