| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Add. test_bind.lua
|
| |
|
|
|
|
|
|
|
| |
Previous implementation was not making sure the socket
had the same family as the addr returned by getaddrinfo.
So instead of "connection refused", we could get "invalid
argument", which was our fault.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There seems to be a curious difference between MacOS and
Linux and I am not sure if this is documented. When you
break a "connection" on Mac OS, you only eliminate the peer
association, but the local address remains bound. On Linux,
breaking a "connection" eliminates the binding to the local
address. Have you guys ever come accross this?
Another irritating difference is that connect() returns the
error EAFNOSUPPORT on Mac OS. I am going to ignore all
errors when the reason for calling connect() is simply to
break the "connection".
|
|
|
|
|
| |
Also unconditionally zero out the structs when allocated, for
good measure.
|
|
|
|
|
|
|
| |
This avoid socket.lua duplicating the iteration over the results
of getaddrinfo(). Some problems with the C implementation not
initializing sockets or the luasocket family have also been fixed,
and error reporting made more robust.
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| | |
sorting out to take maybe a version number and also the local paths need removing.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
The two crashes are the s/const char *// changes in tcp.c. The rest
is cleanup so it will build.
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
timeout in the select call...
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Implemented new distribution scheme.
Select is now purely C.
HTTP reimplemented seems faster dunno why.
LTN12 functions that coroutines fail gracefully.
|
| |
|
|
|
|
|
| |
SMTP connection oriented working.
ltn12 improved.
|
|
|
|
|
| |
Implemented stuffing (needs test)
Added cddb and qp examples.
|
|
|
|
|
|
| |
Better error checking.
Better tests.
__tostring implemented.
|
|
|
|
|
|
| |
Moved complexity of connect and accept there.
Created a new options.c module to take care of options.
Auxiliar.c is now cleaner.
|
|
|
|
|
| |
Cleaned up TODO.
Moved luasocket specific stuff from auxiliar.c to luasocket.c
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Update get.lua to use the new callbacks.
The old "code" module is now the "mime" module.
Updated all modules that depended on it.
Updated url.lua to use the new namespace scheme, and moved the
escape and unescape functions that used to be in the code.lua module
to it, since these are specific to urls.
Updated the callback entries in the manual.
|
|
|
|
|
| |
Changed callback.lua module, but need more work.
Added local connect support.
|