libevent study