Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add. Allow get `error` option to socket. | moteus | 2013-05-29 | 1 | -0/+1 |
| | |||||
* | Export global only if LUA_COMPAT_MODULE defined. | Diego Nehab | 2013-05-29 | 1 | -0/+4 |
| | |||||
* | Fix. setsockname fails with "*" as host. | moteus | 2013-05-27 | 1 | -1/+0 |
| | | | | Add. test_bind.lua | ||||
* | Merge tryconnect6 into inet_tryconnect. | Diego Nehab | 2013-05-26 | 1 | -12/+6 |
| | |||||
* | Fix socket.connect | Diego Nehab | 2013-05-26 | 1 | -2/+18 |
| | | | | | | | 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. | ||||
* | Remove warnings and fix makefile for Win32. | Diego Nehab | 2012-12-11 | 1 | -1/+1 |
| | |||||
* | Fix socket_accept usage to depend on family. | Diego Nehab | 2012-12-11 | 1 | -3/+3 |
| | |||||
* | Fix udp:setpeername("*") | Diego Nehab | 2012-08-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | 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". | ||||
* | tcp: Initialize clnt->family in :accept() | Paul Aurich | 2012-05-21 | 1 | -1/+5 |
| | | | | | Also unconditionally zero out the structs when allocated, for good measure. | ||||
* | socket.connect now implemented in the C core | Sam Roberts | 2012-05-10 | 1 | -4/+7 |
| | | | | | | | 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. | ||||
* | :shutdown() errors on all invalid argument strings | Sam Roberts | 2012-04-26 | 1 | -18/+4 |
| | | | | | It used to error only on invalid argument strings that started with 's', 'r', or 'b'. | ||||
* | Fixed getpeername/getsockname situation | Diego Nehab | 2012-04-24 | 1 | -2/+2 |
| | | | | | | | - Added IPv6 support to getsockname - Simplified getpeername implementation - Added family to return of getsockname and getpeername and added modification to the manual to describe | ||||
* | Making progress toward a release | Diego Nehab | 2012-04-23 | 1 | -8/+23 |
| | | | | | | | | | | 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 | ||||
* | Merge branch 'git-sam' into diego-sam-mwild-integration | Sam Roberts | 2012-04-11 | 1 | -0/+16 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | Support getoption method for tcp objects. | Sam Roberts | 2012-04-11 | 1 | -0/+16 |
| | | |||||
* | | Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs ↵ | Liam Devine | 2012-04-11 | 1 | -2/+2 |
| | | | | | | | | sorting out to take maybe a version number and also the local paths need removing. | ||||
* | | Add support for connecting to IPv6 hosts | Florian Zeitz | 2012-04-11 | 1 | -23/+29 |
| | | |||||
* | | Add support for the IPV6_V6ONLY socket option defaulting to on. | Florian Zeitz | 2012-04-11 | 1 | -0/+6 |
| | | |||||
* | | Rework binding IPv6 sockets by harmonizing it with the IPv4 variant | Florian Zeitz | 2012-04-11 | 1 | -92/+19 |
| | | |||||
* | | Fix two crashes and add -Wshadow so that this can't happen again. | Paul Aurich | 2012-04-11 | 1 | -6/+6 |
| | | | | | | | | | | The two crashes are the s/const char *// changes in tcp.c. The rest is cleanup so it will build. | ||||
* | | Preliminary IPv6 support for v2.1 | Diego Nehab | 2012-04-11 | 1 | -4/+177 |
| | | |||||
* | | Decent makefiles! | Diego Nehab | 2009-05-27 | 1 | -6/+6 |
|/ | |||||
* | Before compiling on Windows. | Diego Nehab | 2005-10-07 | 1 | -57/+57 |
| | |||||
* | Almost ready to release. | Diego Nehab | 2005-09-29 | 1 | -2/+2 |
| | |||||
* | Bug in forward.lua. Wasn't breaking from the loop. | Diego Nehab | 2005-04-21 | 1 | -1/+2 |
| | |||||
* | Better connection handling. | Diego Nehab | 2005-04-21 | 1 | -1/+1 |
| | |||||
* | Trying to get non-blocking connect to work. | Diego Nehab | 2005-04-20 | 1 | -22/+1 |
| | |||||
* | Seems to be working on windows. | Diego Nehab | 2005-03-11 | 1 | -3/+5 |
| | |||||
* | Apparently, non-blocking connect doesn't work on windows if you use 0 | Diego Nehab | 2005-03-11 | 1 | -2/+4 |
| | | | | timeout in the select call... | ||||
* | Just to check out in the office. | Diego Nehab | 2005-02-27 | 1 | -2/+1 |
| | |||||
* | Forward server working on Mac OS X... | Diego Nehab | 2005-02-08 | 1 | -2/+20 |
| | |||||
* | Stupid bug. | Diego Nehab | 2005-01-22 | 1 | -3/+1 |
| | |||||
* | Almost ready for beta3 | Diego Nehab | 2004-11-27 | 1 | -1/+2 |
| | |||||
* | Gonna try my luck on windows... | Diego Nehab | 2004-07-26 | 1 | -0/+7 |
| | |||||
* | Still need to fix windows. :o/ | Diego Nehab | 2004-07-15 | 1 | -8/+8 |
| | |||||
* | Added getstats. | Diego Nehab | 2004-07-01 | 1 | -4/+9 |
| | |||||
* | Compiles with g++. | Diego Nehab | 2004-07-01 | 1 | -2/+2 |
| | |||||
* | Moving on to beta2. | Diego Nehab | 2004-07-01 | 1 | -2/+4 |
| | |||||
* | Added support for unix stream sockets. | Diego Nehab | 2004-06-22 | 1 | -3/+0 |
| | |||||
* | Few extra changes. | Diego Nehab | 2004-06-22 | 1 | -1/+1 |
| | |||||
* | More adjustments/bugfixes. | Diego Nehab | 2004-06-21 | 1 | -2/+4 |
| | |||||
* | Fixing bugs... | Diego Nehab | 2004-06-20 | 1 | -1/+1 |
| | |||||
* | Manual is almost done. HTTP is missing. | Diego Nehab | 2004-06-15 | 1 | -4/+1 |
| | | | | | | | Implemented new distribution scheme. Select is now purely C. HTTP reimplemented seems faster dunno why. LTN12 functions that coroutines fail gracefully. | ||||
* | Só pra não perder se der merda. | Diego Nehab | 2004-06-04 | 1 | -2/+1 |
| | |||||
* | FTP low-level working. | Diego Nehab | 2004-05-25 | 1 | -1/+2 |
| | | | | | SMTP connection oriented working. ltn12 improved. | ||||
* | Worked on the manual. | Diego Nehab | 2004-02-04 | 1 | -15/+18 |
| | | | | | Implemented stuffing (needs test) Added cddb and qp examples. | ||||
* | New accept/connect code. | Diego Nehab | 2004-01-24 | 1 | -13/+41 |
| | | | | | | Better error checking. Better tests. __tostring implemented. | ||||
* | Fixed functions that return messages in ?socket.c. | Diego Nehab | 2004-01-21 | 1 | -71/+11 |
| | | | | | | Moved complexity of connect and accept there. Created a new options.c module to take care of options. Auxiliar.c is now cleaner. | ||||
* | Added gethostname. | Diego Nehab | 2004-01-19 | 1 | -2/+2 |
| | | | | | Cleaned up TODO. Moved luasocket specific stuff from auxiliar.c to luasocket.c | ||||
* | Added -ansi -pedantic and faced the consequences... | Diego Nehab | 2004-01-19 | 1 | -1/+2 |
| |