LuaSocket
Network support for the Lua language

home · download · installation · introduction · reference


Reference

DNS (in socket)
getaddrinfo, getnameinfo, gethostname, tohostname, toip.
FTP
get, put.
HTTP
request.
LTN12
BLOCKSIZE.
filter: chain, cycle.
pump: all, step.
sink: chain, error, file, null, simplify, table.
source: cat, chain, empty, error, file, rewind, simplify, string, table.
MIME
high-level: decode, encode, normalize, stuff, wrap.
low-level: b64, dot, eol, qp, qpwrp, unb64, unqp, wrp.
Serial
close, getfd, getstats, receive, send, setfd, setstats, settimeout, socket.serial.
SMTP
message, send.
Socket
bind, connect, connect4, connect6, _DATAGRAMSIZE, _DEBUG, dns, gettime, headers.canonic, headers.setcanonic, newtry, protect, select, sink, skip, sleep, _SETSIZE, _SOCKETINVALID, source, tcp, tcp4, tcp6, try, udp, udp4, udp6, _VERSION.
TCP (in socket)
accept, bind, close, connect, dirty, getfamily, getfd, getoption, getpeername, getsockname, getstats, gettimeout, listen, receive, send, setfd, setoption, setpeername, setsockname, setstats, settimeout, shutdown.
UDP (in socket)
close, dirty, getfamily, getfd, getoption, getpeername, getsockname, gettimeout, receive, receivefrom, send, sendto, setfd, setpeername, setsockname, setoption, settimeout.
Unix
socket.unix.stream: accept, bind, close, connect, dirty, getfd, getsockname, getstats, listen, receive, send, setfd, setoption, setstats, settimeout, shutdown.
socket.unix.dgram: bind, close, connect, dirty, getfd, getsockname, gettimeout, receive, receivefrom, send, sendto, setfd, setoption, settimeout.
URL
absolute, build, build_path, escape, parse, parse_path, unescape.