lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

Glad to release levent version 0.1.

levent is a lua concurrency networking library inspired by gevent.

Features include:
Fast event loop based on libev.
Simple and clean socket library
Cooperative dns client by pure lua
Similar api and components with gevent but with much more simpler
implementation and better performance.

levent's api is clean, to do a time-limit work, it's as below:

local levent  = require "levent.levent"
local timeout = require "levent.timeout"

function main()
    print("work 1:", timeout.run(0.2, levent.sleep, 0.1))
    print("work 2:", timeout.run(0.1, levent.sleep, 0.2))
end
levent.start(main)

and it's easy to write a  high perfermance network application,  you
can refer to:
https://github.com/xjdrew/levent/blob/master/examples/echo.lua

github:
https://github.com/xjdrew/levent/

download:
https://github.com/xjdrew/levent/archive/v0.1.tar.gz

contact me if you  are interested in levent.

Best regarding,
xjdrew