【文件属性】:
文件名称:epoll:Ruby 中的 epoll(7) 绑定
文件大小:9KB
文件格式:ZIP
更新时间:2021-07-02 22:19:33
ruby epoll Ruby
民意调查
Ruby 上的 epoll(7) 绑定。
epoll(7)只能使用 Linux。 (因为必须安装sys/epoll.h)
用法
require 'epoll'
# Epoll < IO
# Epoll.create
# call epoll_create(2)
# it's just alias of `open`
# Epoll object stock a File Descriptor returned by epoll_create(2)
# return: instance of Epoll (kind of IO)
epoll = Epoll . create
# IO object add to interest list
# call epoll_ctl(2)
epoll . add ( io , Epoll :: IN ) # sam
【文件预览】:
epoll-master
----.travis.yml(54B)
----Rakefile(261B)
----test()
--------test_epoll.rb(5KB)
----Gemfile(39B)
----Gemfile.lock(297B)
----ext()
--------epoll()
----examples()
--------epoll_server.rb(839B)
----.gitignore(51B)
----lib()
--------epoll.rb(41B)
--------epoll()
----README.md(3KB)
----LICENSE.txt(1KB)
----epoll.gemspec(822B)