Network support for the Lua language
Find a file
Kim Alvefur 2c97c5d146 fix(unix): Pass correct path length for abstract sockets
Since they start with NUL byte, strlen() does the wrong thing.
The Lua API can already pass the real string length, so passing that on
seems the sensible thing to do.

Fixes #216

Removes SUN_LEN macro in favor of the approach used in unixstream.c
since it does not depend on strlen(), which would not work with
NUL-prefixed abstract stream socket paths.
2024-04-27 22:52:59 +02:00
.github/workflows ci: Update Luacheck to v1+, use newer Ubuntu runner images 2023-11-08 13:14:04 +03:00
docs chore(docs): update LTN12 links (#428) 2024-03-15 12:55:02 +01:00
rockspecs chore: Release v3.1.0 2022-07-27 10:07:00 +03:00
samples cleanup; move ./etc into ./samples and mark 'unsupported' 2022-03-29 13:33:00 +02:00
src fix(unix): Pass correct path length for abstract sockets 2024-04-27 22:52:59 +02:00
test fix(http): Allow relative redirect on https (#395) 2022-10-08 09:42:36 +03:00
.editorconfig chore: Include luacheck config in editorconfig setup 2022-03-19 17:28:25 +03:00
.gitignore Update to Visual Studio 2017. 2018-08-22 17:37:32 -03:00
.luacheckrc cleanup; move ./etc into ./samples and mark 'unsupported' 2022-03-29 13:33:00 +02:00
CHANGELOG.md chore: Release v3.1.0 2022-07-27 10:07:00 +03:00
LICENSE Update LICENSE to be recognizable as MIT (#363) 2022-03-23 15:12:49 +03:00
linux.cmd Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into KateAdams-tcp_reuseport 2015-10-05 10:28:29 +08:00
ltn012.md chore(ltn) rename files to markdown 2022-03-29 14:10:30 +02:00
ltn013.md chore(ltn) rename files to markdown 2022-03-29 14:10:30 +02:00
Lua.props Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
luasocket-scm-3.rockspec feat(rockspec): Ship mbox parser with LuaRocks, already packaged in some distros 2023-11-11 00:44:22 +03:00
luasocket.sln Move Visual Studio projects to 2012. 2012-12-10 18:45:05 -02:00
macosx.cmd Make macosx.cmd generic 2018-09-29 16:29:58 -07:00
makefile chore; add Lua 5.4 to make files 2022-03-23 17:11:43 +01:00
makefile.dist chore(core): Update version markers to last released version 2023-11-11 00:48:02 +03:00
mime.vcxproj Add src\compat.c to mime.vcxproj and socket.vcxproj 2022-03-22 09:29:04 +01:00
mingw.cmd Add MingW support. 2013-05-25 18:07:38 +08:00
README.md docs: Fixup badge URLs with current GH API 2023-10-17 09:07:25 +03:00
socket.vcxproj Add src\compat.c to mime.vcxproj and socket.vcxproj 2022-03-22 09:29:04 +01:00
TODO.md cleanup; move FIX, TODO, WISH into TODO.md 2022-03-29 13:33:00 +02:00
vc32.bat Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
vc64.bat Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
win32.cmd Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00
win64.cmd Update Windows projects vor Visual Studio 2017 2019-03-01 20:46:37 -03:00

LuaSocket

Build Luacheck GitHub tag (latest SemVer) Luarocks

LuaSocket is a Lua extension library composed of two parts:

  1. a set of C modules that provide support for the TCP and UDP transport layers, and
  2. a set of Lua modules that provide functions commonly needed by applications that deal with the Internet.