aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Copied socket_gaistrerror implementation from usocket to wsocket to allow ↵Eric Wing2012-11-201-0/+25
| | | | Windows version to compile because it is missing the function. EAI_OVERFLOW and EAI_SYSTEM are commented out because they don't exist on Windows.
* Merge pull request #22 from Florob/smtpDiego Nehab2012-08-231-2/+2
|\ | | | | Send SMTP AUTH LOGIN response using tp:send(). Fixes #18
| * Send SMTP AUTH LOGIN response using tp:send(). Fixes #18Florian Zeitz2012-08-071-2/+2
| | | | | | | | | | | | tp:command() uppercases the command. Without a command we would end up with a space in front of the data. Therefore use send() directly here.
* | Fix udp:setpeername("*")Diego Nehab2012-08-239-31/+96
|/ | | | | | | | | | | | | | 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".
* Add new bug fix comment.Diego Nehab2012-08-011-0/+3
|
* Fix HORRIBLE but in b64/qp code.Diego Nehab2012-08-012-1/+9
| | | | | | | Bug was caught by user moteus. Code was checking if arguments was nil after using luaL_Buffer code, which messes with the stack. Simple to fix, though.
* Fixed default Linux path to work with UbuntuDiego Nehab2012-08-011-2/+2
| | | | Also fixed clean target to remove serial objects
* Merge pull request #20 from Florob/sendtoDiego Nehab2012-07-311-25/+84
|\ | | | | IPv6 support for udp:sendto() and udp:receivefrom()
| * Add IPv6 support to udp:receivefrom()Florian Zeitz2012-07-181-16/+54
| |
| * Add IPv6 support to udp:sendto()Florian Zeitz2012-07-171-9/+30
| |
* | Merge pull request #15 from darkrain42/unstableDiego Nehab2012-07-311-1/+5
|\ \ | | | | | | tcp: Initialize clnt->family in :accept()
| * | tcp: Initialize clnt->family in :accept()Paul Aurich2012-05-211-1/+5
| |/ | | | | | | | | Also unconditionally zero out the structs when allocated, for good measure.
* | Merge pull request #14 from Zash/zash-improves-makefileDiego Nehab2012-07-311-6/+7
|\ \ | |/ |/| Use the install util instead of cp and mkdir
| * src/makefile: Use install instead of cp and mkdir.Kim Alvefur2012-05-151-3/+3
| |
| * src/makefile: Move mkdir to a variableKim Alvefur2012-05-151-4/+5
|/
* Improve makefile to allow overriden variablesDiego Nehab2012-05-112-12/+22
| | | | | | Before this change, it was difficult to set default directories for different platforms that would still work with different Lua versions.
* Merge pull request #12 from sam-github/fix-connect6-and-do-connect-in-cDiego Nehab2012-05-107-48/+69
|\ | | | | socket.connect now implemented in the C core
| * socket.connect now implemented in the C coreSam Roberts2012-05-107-48/+69
|/ | | | | | | 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.
* Merge pull request #8 from sam-github/fix-confusing-servname-referenceDiego Nehab2012-05-081-2/+2
|\ | | | | Reword error msg to distinguish between service and server
| * Reword error msg to distinguish between service and serverSam Roberts2012-05-081-2/+2
| | | | | | | | | | servname is easily confused with "server name", making it seem as if the server name couldn't be resolved.
* | Merge pull request #7 from sam-github/fix-makefilesDiego Nehab2012-05-082-22/+76
|\ \ | | | | | | Rework makefiles to simplify setting and choosing build options.
| * | Rework makefiles to simplify setting and choosing build options.Sam Roberts2012-05-082-22/+76
| |/ | | | | | | | | | | Includes documentation for common build settings, reasonable defaults, and ability to set common build options in the environment.
* | Merge pull request #6 from Florob/getnameinfoDiego Nehab2012-05-081-0/+48
|\ \ | |/ |/| Add a getnameinfo() wrapper
| * Add a getnameinfo() wrapperFlorian Zeitz2012-05-051-0/+48
|/ | | | | | | | | This wrapper takes a domain name or an IP as first argument and a service name or port as second argument. Either argument may be nil. It returns a list of names (always only one in the IP case) and a service name.
* Test server exits gracefully at command of test clientDiego Nehab2012-05-011-0/+7
|
* Merge branch 'tests52' of https://github.com/Florob/luasocket into ↵Diego Nehab2012-05-012-6/+14
|\ | | | | | | Florob-tests52
| * Update method list in testsFlorian Zeitz2012-04-291-1/+4
| |
| * Select loadstring or load for Lua 5.1/5.2 respectivelyFlorian Zeitz2012-04-291-1/+1
| |
| * Test method registration for IPv6 socketsFlorian Zeitz2012-04-291-4/+9
| |
* | :shutdown() errors on all invalid argument stringsSam Roberts2012-04-262-37/+9
|/ | | | | It used to error only on invalid argument strings that started with 's', 'r', or 'b'.
* Added Sam's suggestion to TODODiego Nehab2012-04-271-1/+2
|
* Fixed getpeername/getsockname situationDiego Nehab2012-04-248-62/+107
| | | | | | | - Added IPv6 support to getsockname - Simplified getpeername implementation - Added family to return of getsockname and getpeername and added modification to the manual to describe
* socket.bind also tries all addresses returned by getaddrinfo.Diego Nehab2012-04-232-14/+25
|
* 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.