Network support for the Lua language
I.e. taking a Unix sockaddr's maximum size, subtracting the one variable field's max size and adding the size of that field's content gets us the actual size anytime. This gives us less duplication and only a single piece of code used across all Unices: i.e. the same code gets tested on all. In particular the current makefile, when used on FreeBSD (which *does* have the sun_len field, but appears to ignore its contents) the addr-length passed to connect() and bind() is one to small because the sun_len field's space is neglected in the previous size computation. This change removes the unnecessary dependency on the build system for the correctness of the addr length computation. Signed-off-by: Giel van Schijndel <me@mortis.eu> |
||
---|---|---|
doc | ||
etc | ||
gem | ||
samples | ||
src | ||
test | ||
.gitignore | ||
.travis.yml | ||
FIX | ||
LICENSE | ||
linux.cmd | ||
logo.ps | ||
ltn012.wiki | ||
ltn013.wiki | ||
Lua51.props | ||
Lua52.props | ||
luasocket-scm-0.rockspec | ||
luasocket.sln | ||
macosx.cmd | ||
makefile | ||
makefile.dist | ||
mime.vcxproj | ||
mime.vcxproj.filters | ||
mingw.cmd | ||
NEW | ||
README | ||
socket.vcxproj | ||
socket.vcxproj.filters | ||
TODO | ||
win32.cmd | ||
WISH |
This is the LuaSocket 3.0-rc1. It has been tested on Windows 7, Mac OS X, and Linux. Please use the project page at GitHub https://github.com/diegonehab/luasocket to file bug reports or propose changes. Have fun, Diego Nehab.