mirror of
https://github.com/lunarmodules/luasocket.git
synced 2026-01-09 21:46:24 +01:00
2c97c5d146f05ad7693fcd6d6472857ae44ae4bf
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.
LuaSocket
LuaSocket is a Lua extension library composed of two parts:
- a set of C modules that provide support for the TCP and UDP transport layers, and
- a set of Lua modules that provide functions commonly needed by applications that deal with the Internet.
Languages
HTML
48.5%
C
27.1%
Lua
22.7%
Makefile
1.5%