a simple net frame base on libevent