mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
Network support for the Lua language
734cc23e1f
inet_pton was copying the entire sockaddr_in struct, rather than just the sin_addr field... I am a bit unsure about the UDP fix, because it may affect TCP as well. On UDP sockets, when a sendto fails, the next receive/receivefrom fails with CONNRESET. I changed sock_recv/sock_recvfrom in wsocket.c to skip the CONNRESET from the recv/recvfrom, hoping that if the socket is TCP, sock_waitfd will get the CONNRESET again. The tests pass, but this should be tested more thoroughly. |
||
---|---|---|
doc | ||
etc | ||
gem | ||
samples | ||
src | ||
test | ||
.gitignore | ||
FIX | ||
LICENSE | ||
linux.cmd | ||
logo.ps | ||
ltn012.wiki | ||
ltn013.wiki | ||
Lua51.props | ||
Lua52.props | ||
luasocket-2.1-1.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 2.1. It has been tested on --[[WinXP--]], Mac OS X, and --[[Linux--]]. Please use the Lua mailing list to report any bugs (or "features") you encounter. Have fun, Diego Nehab.