Libev on Windows

2019-03-27 15:30发布

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

3条回答
聊天终结者
2楼-- · 2019-03-27 15:58

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

查看更多
聊天终结者
3楼-- · 2019-03-27 16:04

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.

查看更多
爷的心禁止访问
4楼-- · 2019-03-27 16:12

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.

查看更多
登录 后发表回答