Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix socket_accept usage to depend on family. | Diego Nehab | 2012-12-11 | 1 | -4/+0 |
| | |||||
* | socket.connect now implemented in the C core | Sam Roberts | 2012-05-10 | 1 | -1/+1 |
| | | | | | | | 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. | ||||
* | Reword error msg to distinguish between service and server | Sam Roberts | 2012-05-08 | 1 | -2/+2 |
| | | | | | servname is easily confused with "server name", making it seem as if the server name couldn't be resolved. | ||||
* | Making progress toward a release | Diego Nehab | 2012-04-23 | 1 | -2/+0 |
| | | | | | | | | | | 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 | -8/+68 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | Bounds check the argument to FD_SET | Sam Roberts | 2012-04-11 | 1 | -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 argument | Sam Roberts | 2012-04-11 | 1 | -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. | ||||
| * | Add support for serial devices as socket streams on unix. | Sam Roberts | 2012-04-11 | 1 | -0/+60 |
| | | |||||
| * | Use poll by default for socket.connect(), instead of select(). | Sam Roberts | 2012-04-11 | 1 | -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. | ||||
| * | Stop returning an error after successful send of zero length UDP packets | Sam Roberts | 2012-04-11 | 1 | -6/+5 |
| | | | | | | | | | | | | | | 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. | ||||
* | | #ifdef EAI_BADHINTS and EAI_PROTOCOL which don't seem available on my system ↵ | Matthew Wild | 2012-04-11 | 1 | -0/+4 |
| | | | | | | | | (Linux/glibc 2.11) | ||||
* | | Preliminary IPv6 support for v2.1 | Diego Nehab | 2012-04-11 | 1 | -1/+22 |
| | | |||||
* | | Saving before big changes to support IPv6. | Diego Nehab | 2011-05-25 | 1 | -3/+3 |
| | | |||||
* | | New release. | Diego Nehab | 2007-10-13 | 1 | -1/+1 |
|/ | |||||
* | Crashy bug fixed in recvraw. | Diego Nehab | 2007-06-11 | 1 | -4/+4 |
| | | | | Also fixed returns on closed socket. | ||||
* | Few tweaks in installation, some missing files, etc. | Diego Nehab | 2005-11-22 | 1 | -1/+2 |
| | |||||
* | Changed prefix of function names to match module names. | Diego Nehab | 2005-11-20 | 1 | -1/+2 |
| | | | | Removed some warnings and useless code. | ||||
* | Before compiling on Windows. | Diego Nehab | 2005-10-07 | 1 | -56/+57 |
| | |||||
* | Almost ready to release. | Diego Nehab | 2005-09-29 | 1 | -9/+2 |
| | |||||
* | Trying to get non-blocking connect to work. | Diego Nehab | 2005-04-20 | 1 | -0/+1 |
| | |||||
* | Apparently, non-blocking connect doesn't work on windows if you use 0 | Diego Nehab | 2005-03-11 | 1 | -13/+13 |
| | | | | timeout in the select call... | ||||
* | Forward server working on Mac OS X... | Diego Nehab | 2005-02-08 | 1 | -7/+19 |
| | |||||
* | Bug in poll. | Diego Nehab | 2004-11-29 | 1 | -3/+5 |
| | | | | | Debug garbage in compat-5.1.c. Improvements to the user manual. | ||||
* | Using poll instead of select by default. | Diego Nehab | 2004-11-27 | 1 | -1/+1 |
| | |||||
* | Gonna try my luck on windows... | Diego Nehab | 2004-07-26 | 1 | -8/+8 |
| | |||||
* | Fixed a bunch of stuff. Added mike's patches. | Diego Nehab | 2004-07-16 | 1 | -9/+9 |
| | |||||
* | Still need to fix windows. :o/ | Diego Nehab | 2004-07-15 | 1 | -179/+189 |
| | |||||
* | tiny bug in test. | Diego Nehab | 2004-07-02 | 1 | -6/+0 |
| | |||||
* | Compiles and runs on windows. | Diego Nehab | 2004-07-02 | 1 | -18/+20 |
| | |||||
* | Seems good. | Diego Nehab | 2004-07-01 | 1 | -0/+2 |
| | |||||
* | Moving on to beta2. | Diego Nehab | 2004-07-01 | 1 | -211/+123 |
| | |||||
* | Fixing send/recv and optimizing. | Diego Nehab | 2004-06-23 | 1 | -18/+27 |
| | |||||
* | More adjustments/bugfixes. | Diego Nehab | 2004-06-21 | 1 | -5/+1 |
| | |||||
* | Fixing bugs... | Diego Nehab | 2004-06-20 | 1 | -3/+8 |
| | |||||
* | Fine tuning the "require" business. | Diego Nehab | 2004-05-30 | 1 | -0/+8 |
| | |||||
* | Bug feioso no UDP e possivelmente no TCP também. | Diego Nehab | 2004-05-28 | 1 | -4/+4 |
| | |||||
* | Worked on the manual. | Diego Nehab | 2004-02-04 | 1 | -3/+2 |
| | | | | | Implemented stuffing (needs test) Added cddb and qp examples. | ||||
* | New accept/connect code. | Diego Nehab | 2004-01-24 | 1 | -63/+118 |
| | | | | | | Better error checking. Better tests. __tostring implemented. | ||||
* | Adjusted wsocket to match usocket. Adjusted windows projects. | Diego Nehab | 2004-01-21 | 1 | -1/+1 |
| | |||||
* | Fixed functions that return messages in ?socket.c. | Diego Nehab | 2004-01-21 | 1 | -33/+45 |
| | | | | | | Moved complexity of connect and accept there. Created a new options.c module to take care of options. Auxiliar.c is now cleaner. | ||||
* | Changed to be able to compile with -ansi and -pedantic! | Diego Nehab | 2004-01-19 | 1 | -1/+5 |
| | | | | Have to try in MacOS X again... | ||||
* | Still needs testing, but "worked" in Linux. | Diego Nehab | 2004-01-18 | 1 | -2/+3 |
| | |||||
* | Trying to get connect-with-timeout to work. Darwin works... | Diego Nehab | 2004-01-18 | 1 | -86/+77 |
| | |||||
* | Trying to get rid of EINTR problems... | Diego Nehab | 2004-01-17 | 1 | -16/+43 |
| | |||||
* | Tested in windows. Still needs more testing, but progress has been made. | Diego Nehab | 2004-01-17 | 1 | -46/+46 |
| | |||||
* | http.lua updated. still needs proxy support. | Diego Nehab | 2004-01-16 | 1 | -45/+65 |
| | | | | code.lua updated. looks neat. | ||||
* | Killed a few bugs found by Tomas. | Diego Nehab | 2003-11-27 | 1 | -0/+6 |
| | |||||
* | Adjusted a few inconsistencies with the manual. | Diego Nehab | 2003-08-16 | 1 | -2/+4 |
| | |||||
* | Finished implementation of LuaSocket 2.0 alpha on Linux. | Diego Nehab | 2003-06-26 | 1 | -26/+70 |
| | | | | Some testing still needed. | ||||
* | Select re-implemented in a nicer way. | Diego Nehab | 2003-06-09 | 1 | -103/+16 |
| | | | | | | Few changes in internal class and group registration. Lua modules are compiled and built into library. Dynamic library tested in Linux and Mac OS X. |