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://www.codercto.com/soft/d/13638.html

ActionScript 3.0 Cookbook

ActionScript 3.0 Cookbook

Joey Lott、Darron Schall、Keith Peters / Adobe Dev Library / 2006-10-11 / GBP 28.50

Well before Ajax and Microsoft's Windows Presentation Foundation hit the scene, Macromedia offered the first method for building web pages with the responsiveness and functionality of desktop programs......一起来看看 《ActionScript 3.0 Cookbook》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具