A Lua module that makes use of the FFI library to provide bindings to sockets, in a luasocket compatible interface.
This module was made to take advantage of LuaJIT's FFI library but as long as you have a compatible FFI library for your regular Lua application, it should work.
It contains code from luasocket, with the MIT license. This code extends the sockets themselves to provide HTTP, FTP and other capabilities.