lua-users home
lua-l archive

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


hi everyone,

sorry if it offend, I want to give an introduction to levent’s socket module.

there is a socket module in levent, it’s a simple encapsulation of c api:
 https://github.com/xjdrew/levent/blob/master/levent/lua-socket.c
you can control socket by setsockopt freely.

 
and based on levent, there is a full async and pure lua dns client:
https://github.com/xjdrew/levent/blob/master/levent/dns.lua

I think levent is a good start point of lua socket programming. 

best regards,
xjdrew



在 2014年8月27日,下午8:48,Michel Martens <soveran@gmail.com> 写道:

Thank you, good work :-)

On Wed, Aug 27, 2014 at 2:05 PM, Gunnar Zötl <gz@tset.de> wrote:
Hi,

this message is to announce the availability of version 1.3 of lsocket, another
take of a socket programming library for lua.

It is not intended to be a complete socket api, but easy to use and good enough
for most tasks. Both IPv4 and IPv6 are supported, as well as unix domain
sockets,
tcp and udp, and also IPv4 broadcasts and IPv6 multicasts. Also, almost
completely
nonblocking.

Changes since 1.1:

- the main change is the addition of support for unix domain sockets.
- some minor tweaks

You can get lsocket from http://www.tset.de/lsocket

or via luarocks install lsocket.

Rgds,

Gunnar