libev本地调试操作https://gitlab.com/lets2rs/libev
- 依赖command:autoconf,automake,libtool,make,gcc/clang
- sh autogen.sh
- ./configure
- make && make install
- 删除ev.c和ev.h不依赖的文件
- 添加自己的main函数,进行编译调试
通用接口
- [epoll|poll|select]_init
- [epoll|poll|select]_destory
- [epoll|poll|select]_modify
- [epoll|poll|select]_poll
事件注册
- ev_[io|timer|signal]_init
- ev_[io|timer|signal]_start
事件循环
- ev_loop_new(0):初始化
- ev_run(loop,0):启动事件循环