Libev on Windows

我的未来我决定 提交于 2020-01-01 05:17:06

问题


Considering libevent vs. libev. Does the libev library have native support of IOCP on Windows?


回答1:


both libev and libevent use select on windows to detect and dispatch events (the event core doesn't do I/O, only events).

libevent in addition has a socket handle abstraction, which uses iocps on windows to do reads and writes. libev doesn't have anything comparable. the benchmarks seen so far indicate that the iocp backend of libevent is not very fast though, so if you are looking for fast on windows, you better do your own I/O at this point.




回答2:


Take a look at libuv, yet another implementation of event loop. It supports IOCP and other backends.

This is robust because used by Node.JS.




回答3:


No, it uses select() , just as libevent does.



来源:https://stackoverflow.com/questions/8042796/libev-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!