polling:epoll,kqueue,事件端口和wepoll的便携式接口

时间:2021-03-12 18:36:37
【文件属性】:
文件名称:polling:epoll,kqueue,事件端口和wepoll的便携式接口
文件大小:25KB
文件格式:ZIP
更新时间:2021-03-12 18:36:37
Rust 轮询 epoll,kqueue,事件端口和wepoll的便携式接口。 支持平台: :Linux,Android :macOS,iOS,FreeBSD,NetBSD,OpenBSD,DragonFly BSD :illumos,Solaris :Windows 轮询是在单发模式下完成的,这意味着如果我们对同一类型的下一个事件感兴趣,则需要在交付事件后重置对I / O事件的兴趣。 一次只能有一个线程在等待I / O事件。 例子 use polling :: {Event, Poller}; use std :: net :: TcpListener; // Create a TCP listener. let socket = TcpListener :: bind ( "127.0.0.1:8000" )?; socket. set_nonblocking ( true
【文件预览】:
polling-master
----LICENSE-MIT(1023B)
----Cargo.toml(780B)
----.github()
--------workflows()
----src()
--------port.rs(5KB)
--------kqueue.rs(7KB)
--------wepoll.rs(6KB)
--------lib.rs(15KB)
--------epoll.rs(8KB)
----LICENSE-APACHE(11KB)
----examples()
--------two-listeners.rs(983B)
----README.md(2KB)
----tests()
--------timeout.rs(632B)
--------notify.rs(697B)
--------precision.rs(1KB)
----.gitignore(19B)
----CHANGELOG.md(1KB)

网友评论