| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
servname is easily confused with "server name", making it seem
as if the server name couldn't be resolved.
|
|
|
|
|
| |
It used to error only on invalid argument strings that started with 's',
'r', or 'b'.
|
|
|
|
|
|
|
| |
- Added IPv6 support to getsockname
- Simplified getpeername implementation
- Added family to return of getsockname and getpeername
and added modification to the manual to describe
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Documented headers.lua
Update copyright date everywhere
Remove RCSID from files
Move version back to 2.1 rather than 2.1.1
Fixed url package to support ipv6 hosts
Changed "domain" to "family" in tcp and udp structures
Implemented getfamily methods
|
|
|
|
|
|
|
|
|
| |
Update Lua and Luasocket version in samples and in documentation
Documented ipv5_v6only default option being set
Documented tcp6 and udp6
Documented dns.getaddrinfo
Documented zero-sized datagram change?
Documented getoption
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts in options.c were just due to independent small functions
being close to each other.
unix.c in mwild was broken, it wasn't using LUASOCKET_API.
serial.c needed luaL_reg renamed, and to use LUASOCKET_API.
makefile didn't respect standard DESTDIR and prefix makefile
variables, and didn't allow LUAV variable to select lua version to build
against.
I've tested the top-level install-both target builds and installs
against both lua5.1 and lua5.2, but not done further testing.
Conflicts:
README
config
gem/ltn012.tex
makefile
src/makefile
src/options.c
src/options.h
src/tcp.c
src/usocket.c
|
| | |
|
| |
| |
| |
| |
| | |
Failing to check the FD_SET argument against FD_SETSIZE causes
undefined behaviour (segfaults, for example).
|
| |
| |
| |
| |
| |
| |
| | |
Looks like a historical bug. Its err argument is an error number, but
if it isn't using a custom error message for it, it just calls
strerror() with the errno global, effectively ignoring its argument
and returning a semi-random string.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This dependency was spuriously added, maybe for debug reasons,
as confirmed to me by Diego Nehab by mail.
Some systems based in Lua (e.g. Ginga) prohibit the use of
io module for security reasons, so this dependency makes
mime unusable; even worse this makes other modules, based
on mime, unusable too (e.g. html).
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Connect timeouts are implemented by waiting on the new socket
descriptor. When select() is used for this, it imposes an arbitrary
limit on the number of connections that can be made, usually 1024-3.
Using poll() removes this limit on the number of simultaneous TCP
connections can be made using luasocket. The previous default
implementation using select() is available by defining SOCKET_SELECT.
Note that using socket.select() always uses select(), so it isn't
possible to wait on an arbitrary number of connections at once.
|
| |
| |
| |
| |
| | |
Previously, receive of zero was considered to be "closed", but that
is only true for stream-based protocols, like TCP.
|
| |
| |
| |
| |
| |
| |
| | |
A zero-length send is invalid with TCP, but well defined with UDP.
udp:send"" was returning (nil,"refused"), indicating that it failed when
the packet was actually sent. The test script reproduces the bug, and
includes a tcpdump of the zero length packet being sent.
|
| |
| |
| |
| |
| |
| |
| | |
unix.
Besides standard socket and mime modules, this includes unix domain
socket support.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
corrects the spelling.
NOTE:
There is one failing test in.the /test/testsrvr.lua and /test/testclnt.lua combination which was present in the repo I cloned from.
|
| |
| |
| |
| | |
sorting out to take maybe a version number and also the local paths need removing.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
(thanks moodydeath)
|
| |
| |
| |
| |
| | |
The two crashes are the s/const char *// changes in tcp.c. The rest
is cleanup so it will build.
|
| |
| |
| |
| | |
(Linux/glibc 2.11)
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
Also fixed returns on closed socket.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Need to fix everything to make sure it works with the new compat-5.1
|
| |
|
| |
|