From 70f7800986812ad0d1a5dd6f280f66fd2bf1dd12 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Tue, 1 Sep 2026 10:00:21 +0200 Subject: docs: document socket.unix and socket.serial, fix stale/missing API references Pre-release documentation audit against master. Adds the two fully undocumented modules and closes gaps found by diffing every docs/*.html page against its corresponding source: - New docs/unix.html and docs/serial.html (socket.unix stream/dgram and socket.serial were never documented), linked from index.html, introduction.html, socket.html and reference.html. serial.html notes the current lack of a baud/parity/flow-control API and includes an os.execute+stty workaround example. Both note Windows is unsupported. - socket.html: document headers.setcanonic, point to unix/serial modules. - tcp.html: document getfamily, setpeername/setsockname aliases. - udp.html: document getfamily, getfd/setfd, dirty; document the ipv6-multicast-hops/ipv6-unicast-hops aliasing as current (known-buggy) behavior rather than the originally intended semantics. - http.html: correct redirect text (301/302/303/307/308, was 301/302 only); document MAXHEADERLINE/MAXHEADERSIZE. - dns.html: document getnameinfo. - ltn12.html: document source.rewind and BLOCKSIZE. - installation.html: fix stale "LuaSocket 3.0" sample output to 3.1.0. - reference.html: index every anchor added above plus new Unix/Serial blocks. --- docs/reference.html | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'docs/reference.html') diff --git a/docs/reference.html b/docs/reference.html index 2bc5f78..7425716 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -43,6 +43,7 @@ Support, Manual"> DNS (in socket)
getaddrinfo, +getnameinfo, gethostname, tohostname, toip. @@ -73,6 +74,9 @@ Support, Manual">
LTN12
+BLOCKSIZE. +
+
filter: chain, cycle. @@ -98,6 +102,7 @@ Support, Manual"> empty, error, file, +rewind, simplify, string, table. @@ -129,6 +134,23 @@ Support, Manual">
+ + +
+Serial +
+close, +getfd, +getstats, +receive, +send, +setfd, +setstats, +settimeout, +socket.serial. +
+
+
@@ -153,6 +175,7 @@ Support, Manual"> dns, gettime, headers.canonic, +headers.setcanonic, newtry, protect, select, @@ -183,6 +206,7 @@ Support, Manual"> close, connect, dirty, +getfamily, getfd, getoption, getpeername, @@ -194,6 +218,8 @@ Support, Manual"> send, setfd, setoption, +setpeername, +setsockname, setstats, settimeout, shutdown. @@ -206,6 +232,9 @@ Support, Manual"> UDP (in socket)
close, +dirty, +getfamily, +getfd, getoption, getpeername, getsockname, @@ -214,6 +243,7 @@ Support, Manual"> receivefrom, send, sendto, +setfd, setpeername, setsockname, setoption, @@ -221,6 +251,48 @@ Support, Manual">
+ + +
+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. +
+
+
-- cgit v1.2.3-55-g6feb