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
2022-07-27 10:07:00 +03:00
2018-08-22 17:37:32 -03:00
2022-07-27 10:07:00 +03:00
2022-03-29 14:10:30 +02:00
2022-03-29 14:10:30 +02:00
2018-09-29 16:29:58 -07:00
2022-03-23 17:11:43 +01:00
2013-05-25 18:07:38 +08: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.
Description
Network support for the Lua language
Readme MIT 3.5 MiB
Languages
HTML 48.5%
C 27.1%
Lua 22.7%
Makefile 1.4%