Network support for the Lua language
Find a file
Giel van Schijndel 5114d70be6 unix connect/bind: compute addr size the same regardless of extra fields
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>
2014-07-10 00:02:26 +02:00
doc Change link to github page. 2013-06-14 19:27:32 +08:00
etc Merge pull request #27 from catwell/pull-noarg 2013-04-17 19:38:21 -07:00
gem Merge branch 'git-sam' into diego-sam-mwild-integration 2012-04-11 14:18:20 -07:00
samples lpr.lua: fix invalid string escape sequence \? 2013-04-17 23:35:56 -04:00
src unix connect/bind: compute addr size the same regardless of extra fields 2014-07-10 00:02:26 +02:00
test support multiple filters in ltn12.{sink,source}.chain() 2013-06-18 11:01:46 +02:00
.gitignore Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
.travis.yml Fix path for rockspec in travis file. 2013-06-13 16:40:14 +08:00
FIX Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
LICENSE Change 2.1 to 3.0 2013-06-14 19:16:16 +08:00
linux.cmd Check linux build. 2013-05-25 07:25:02 -03:00
logo.ps Adjusted a few inconsistencies with the manual. 2003-08-16 00:06:04 +00:00
ltn012.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
ltn013.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
Lua51.props Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
Lua52.props Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
luasocket-scm-0.rockspec Download archive with https rather than git scheme 2013-06-13 17:35:52 +08:00
luasocket.sln Move Visual Studio projects to 2012. 2012-12-10 18:45:05 -02:00
macosx.cmd Fix socket.connect 2013-05-26 15:18:13 +08:00
makefile Add support for FreeBSD in makefile 2013-09-09 14:29:14 -03:00
makefile.dist Add files to distribution. 2013-06-14 19:21:27 +08:00
mime.vcxproj Change VC12 project to no LUA_COMPAT_MODUULE 2013-05-29 17:19:24 +08:00
mime.vcxproj.filters Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
mingw.cmd Add MingW support. 2013-05-25 18:07:38 +08:00
NEW Update NEW file and section 2013-06-14 19:12:44 +08:00
README Change 2.1 to 3.0-rc1 2013-06-14 19:15:37 +08:00
socket.vcxproj Change VC12 project to no LUA_COMPAT_MODUULE 2013-05-29 17:19:24 +08:00
socket.vcxproj.filters Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
TODO Fix ltn12 version. 2012-12-10 15:50:44 -02:00
win32.cmd Added my test command lines. 2013-05-25 18:10:46 +08:00
WISH Couple bug fixes. 2007-03-12 04:08:40 +00:00

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.