摘要: libev是一个开源的事件驱动库,基于epoll,kqueue等OS提供的基础设施。其以高效出名,它可以将IO事件,定时器,和信号统一起来,统一放在事件处理这一套框架下处理。libev的基本使用方法如下: int main (void) { // use the default event loop unless you have special needs struct ev_loop *loop = EV_DEFAULT; // initialise an io watcher, then start it // this one will watch ... 阅读全文
posted @ 2013-02-04 11:08 吴镝 阅读(6413) 评论(1) 推荐(1) 编辑