简体   繁体   English

在Windows上的Libev

[英]Libev on Windows

Considering libevent vs. libev . 考虑到libeventlibev Does the libev library have native support of IOCP on Windows? libev库是否在Windows上具有IOCP的本机支持?

both libev and libevent use select on windows to detect and dispatch events (the event core doesn't do I/O, only events). libev和libevent都使用select来检测和调度事件(事件核心不执行I / O,只执行事件)。

libevent in addition has a socket handle abstraction, which uses iocps on windows to do reads and writes. libevent另外还有一个套接字句柄抽象,它使用Windows上的iocps来进行读写操作。 libev doesn't have anything comparable. libev没有任何可比性。 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. 到目前为止看到的基准测试表明,iocp后端的libevent并不是很快,所以如果你在Windows上寻找快速,那么你最好在这一点上做你自己的I / O.

Take a look at libuv , yet another implementation of event loop. 看一下libuv ,这是事件循环的另一个实现。 It supports IOCP and other backends. 它支持IOCP和其他后端。

This is robust because used by Node.JS. 这很强大,因为Node.JS使用它。

不, 使用select (),就像libevent一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM