Lua的epoll模块 lua-epoll

码农软件 · 软件分类 · 高性能网络开发库 · 2019-09-01 12:27:22

软件介绍

Lua的epoll模块

更多细节,请查看sample.lua

API:

ok,err=epoll.setnonblocking(fd)

设置一个文件描述符非阻塞。

epfd,err=epoll.create()

创建一个 epoll 文件描述符。

ok,err=epoll.register(epfd,fd,eventmask)

把目标文件描述符 fd 注册到由 epfd 引用的 epoll 实例上并把相应的事件 event 与内部的 fd 相链接。

ok,err=epoll.modify(epfd,fd,eventmask)

更改目标文件描述符 fd 相关联的事件 event

ok,err=epoll.unregister(epfd,fd)

从由 epfd 引用的 epoll 实例中删除目标文件描述符 fd

events,err=epoll.wait(epfd,timeout,max_events)

在一个 epoll 文件描述符上等待 I/O 事件。

ok,err=epoll.close(epfd)

关闭一个 epoll 文件描述符。

本文地址:https://codercto.com/soft/d/13638.html

Two Scoops of Django

Two Scoops of Django

Daniel Greenfeld、Audrey M. Roy / CreateSpace Independent Publishing Platform / 2013-4-16 / USD 29.95

Two Scoops of Django: Best Practices For Django 1.5 is chock-full of material that will help you with your Django projects. We'll introduce you to various tips, tricks, patterns, code snippets, and......一起来看看 《Two Scoops of Django》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具