aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* socket.connect() loops over addresses returned by getaddrinfoDiego Nehab2012-04-231-13/+23
|
* Making progress toward a releaseDiego Nehab2012-04-2353-108/+236
| | | | | | | | | | 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
* First stab at documenationDiego Nehab2012-04-1712-197/+367
| | | | | | | | | 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
* merged lua_typerrror.{c,h} into auxiliar.{c,h}Diego Nehab2012-04-167-30/+58
|
* Merge branch 'git-sam' into diego-sam-mwild-integrationSam Roberts2012-04-1122-60/+656
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * On failure, exit with a message instead of blocking indefinitely.Sam Roberts2012-04-111-2/+4
| |
| * Add Wurldtech note to README.Sam Roberts2012-04-111-0/+3
| |
| * Correct luasocket version in v2.0.2 readme.Sam Roberts2012-04-111-1/+1
| | | | | | | | v2.0.2 was released with a README saying it was v2.0.1.
| * Support getoption method for tcp objects.Sam Roberts2012-04-116-1/+170
| |
| * Bounds check the argument to FD_SETSam Roberts2012-04-111-0/+1
| | | | | | | | | | Failing to check the FD_SET argument against FD_SETSIZE causes undefined behaviour (segfaults, for example).
| * socket_strerror() sometimes maps errno, instead of its argumentSam Roberts2012-04-111-2/+2
| | | | | | | | | | | | | | 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.
| * Fix links to home.html, they should be to index.html.Sam Roberts2012-04-1114-55/+55
| | | | | | | | home.html doesn't exist, index.html does.
| * mime: Remove io dependencyroot2012-04-111-1/+0
| | | | | | | | | | | | | | | | | | 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).
| * Document dirty, getfd, and setfd for select and tcp.Sam Roberts2012-04-113-0/+67
| |
| * Reference index was missing documented APIs, and only partially alphabetized.Sam Roberts2012-04-111-5/+8
| |
| * Add support for serial devices as socket streams on unix.Sam Roberts2012-04-116-1/+265
| |
| * testsrvr asserts when test finishes successfully.Sam Roberts2012-04-111-1/+6
| | | | | | | | | | | | | | When the test client finishes, the test server asserts with a "closed" message. After looking carefully at this, I think the tests are running successfully and passing. Since it appears to be a test failure, I modified the server to allow the client to close the control connection.
| * Utility to find how many TCP connections can be made.Sam Roberts2012-04-111-0/+32
| |
| * Use poll by default for socket.connect(), instead of select().Sam Roberts2012-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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.
| * Receive of zero for UDP is now possible.Sam Roberts2012-04-111-0/+6
| | | | | | | | | | Previously, receive of zero was considered to be "closed", but that is only true for stream-based protocols, like TCP.
| * Test showing failure to receive a zero-length packet.Sam Roberts2012-04-111-0/+35
| |
| * Stop returning an error after successful send of zero length UDP packetsSam Roberts2012-04-112-6/+30
| | | | | | | | | | | | | | 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.
| * OS X CFLAGS definition caused silent failure to build debug version of ↵Sam Roberts2012-04-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | luasocket. The luasocket tests require LUASOCKET_DEBUG to be defined at build time, but for OS X if COMPAT was undefined, the command line looked like ... -I -DLUASOCKET_DEBUG ... so that the the macro definition was silently being treated as the argument to -I. Result is the macro was never set, and tests would never run. Fixed by moving -I to the (optional) definition of the location of compat headers.
| * Add all-unix and install-unix targets which include all modules supported on ↵Sam Roberts2012-04-112-1/+6
| | | | | | | | | | | | | | unix. Besides standard socket and mime modules, this includes unix domain socket support.
| * Add location of Ubuntu's lua5.1 headers to config.Sam Roberts2012-04-111-0/+1
| |
| * Support the conventional DESTDIR and prefix variablesSam Roberts2012-04-111-3/+7
| | | | | | | | | | | | Many packaging systems rely on them, they are described here: - http://www.gnu.org/prep/standards/standards.html#index-prefix - http://www.gnu.org/prep/standards/standards.html#DESTDIR
| * ignore build outputSam Roberts2012-04-111-0/+3
| |
| * This commit was manufactured by cvs2svn to create tag 'luasocket-2-0-2'.v2.0.2cvs2git convertor2007-10-112-199/+165
| | | | | | | | | | | | Sprout from master 2007-10-11 21:16:28 UTC Diego Nehab <diego@tecgraf.puc-rio.br> 'Tested each sample.' Cherrypick from master 2007-05-31 22:27:40 UTC Diego Nehab <diego@tecgraf.puc-rio.br> 'Before sending to Roberto.': gem/ltn012.tex gem/makefile
* | inet: Honor the strict aliasing ruleFlorian Zeitz2012-04-111-12/+14
| |
* | Conditional creation of p_timeout instance 'tm'Liam Devine2012-04-111-0/+4
| |
* | change localhost to loopback ip to prevent error on my mac box????Liam Devine2012-04-111-2/+3
| |
* | Updated readme version and os testedLiam Devine2012-04-111-2/+2
| |
* | This is a replacement for luaL_typerror , removed from Lua 5.2, which ↵Liam Devine2012-04-112-0/+17
| | | | | | | | | | | | | | 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.
* | Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs ↵Liam Devine2012-04-1117-49/+70
| | | | | | | | sorting out to take maybe a version number and also the local paths need removing.
* | inet: return more useful errorsPaul Aurich2012-04-111-2/+3
| |
* | inet: refactor getpeername to allocate the struct on the stackPaul Aurich2012-04-111-13/+23
| |
* | Fix getpeername to work with IPv6 addressesFlorian Zeitz2012-04-111-5/+18
| |
* | Add support for connecting to IPv6 hostsFlorian Zeitz2012-04-115-59/+86
| |
* | dns.getaddrinfo: Return proper error messagesFlorian Zeitz2012-04-111-1/+1
| |
* | Add support for the IPV6_V6ONLY socket option defaulting to on.Florian Zeitz2012-04-114-0/+18
| |
* | Adapt socket.bind() to create a IPv4 or IPv6 depending on the address givenFlorian Zeitz2012-04-111-1/+9
| |
* | dns: Rename toip6() to getaddrinfo() since the old name is misleadingFlorian Zeitz2012-04-111-3/+3
| |
* | Rework binding IPv6 sockets by harmonizing it with the IPv4 variantFlorian Zeitz2012-04-116-124/+80
| |
* | url.escape/url.unescape: Fix to return *only* the encoded/decoded string ↵Matthew Wild2012-04-111-4/+4
| | | | | | | | (thanks moodydeath)
* | Fix two crashes and add -Wshadow so that this can't happen again.Paul Aurich2012-04-114-32/+32
| | | | | | | | | | The two crashes are the s/const char *// changes in tcp.c. The rest is cleanup so it will build.
* | #ifdef EAI_BADHINTS and EAI_PROTOCOL which don't seem available on my system ↵Matthew Wild2012-04-111-0/+4
| | | | | | | | (Linux/glibc 2.11)
* | Preliminary IPv6 support for v2.1Diego Nehab2012-04-1140-52/+432
| |
* | Saving before big changes to support IPv6.Diego Nehab2011-05-2530-849/+947
| |
* | Decent makefiles!Diego Nehab2009-05-2758-544/+850
| |
* | New release.Diego Nehab2007-10-139-37/+59
|/