$ luarocks install lsocket
lsocket is a library to provide socket programming support 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.
Versions
Dependencies
lua >= 5.1, <= 5.3