libevent wrapper of lua