aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* socket.connect now implemented in the C coreSam Roberts2012-05-101-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 stringsSam Roberts2012-04-261-18/+4
| | | | | It used to error only on invalid argument strings that started with 's', 'r', or 'b'.
* Fixed getpeername/getsockname situationDiego Nehab2012-04-241-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 releaseDiego Nehab2012-04-231-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-integrationSam Roberts2012-04-111-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 Roberts2012-04-111-0/+16
| |
* | Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs ↵Liam Devine2012-04-111-2/+2
| | | | | | | | sorting out to take maybe a version number and also the local paths need removing.
* | Add support for connecting to IPv6 hostsFlorian Zeitz2012-04-111-23/+29
| |
* | Add support for the IPV6_V6ONLY socket option defaulting to on.Florian Zeitz2012-04-111-0/+6
| |
* | Rework binding IPv6 sockets by harmonizing it with the IPv4 variantFlorian Zeitz2012-04-111-92/+19
| |
* | Fix two crashes and add -Wshadow so that this can't happen again.Paul Aurich2012-04-111-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.1Diego Nehab2012-04-111-4/+177
| |
* | Decent makefiles!Diego Nehab2009-05-271-6/+6
|/
* Before compiling on Windows.Diego Nehab2005-10-071-57/+57
|
* Almost ready to release.Diego Nehab2005-09-291-2/+2
|
* Bug in forward.lua. Wasn't breaking from the loop.Diego Nehab2005-04-211-1/+2
|
* Better connection handling.Diego Nehab2005-04-211-1/+1
|
* Trying to get non-blocking connect to work.Diego Nehab2005-04-201-22/+1
|
* Seems to be working on windows.Diego Nehab2005-03-111-3/+5
|
* Apparently, non-blocking connect doesn't work on windows if you use 0Diego Nehab2005-03-111-2/+4
| | | | timeout in the select call...
* Just to check out in the office.Diego Nehab2005-02-271-2/+1
|
* Forward server working on Mac OS X...Diego Nehab2005-02-081-2/+20
|
* Stupid bug.Diego Nehab2005-01-221-3/+1
|
* Almost ready for beta3Diego Nehab2004-11-271-1/+2
|
* Gonna try my luck on windows...Diego Nehab2004-07-261-0/+7
|
* Still need to fix windows. :o/Diego Nehab2004-07-151-8/+8
|
* Added getstats.Diego Nehab2004-07-011-4/+9
|
* Compiles with g++.Diego Nehab2004-07-011-2/+2
|
* Moving on to beta2.Diego Nehab2004-07-011-2/+4
|
* Added support for unix stream sockets.Diego Nehab2004-06-221-3/+0
|
* Few extra changes.Diego Nehab2004-06-221-1/+1
|
* More adjustments/bugfixes.Diego Nehab2004-06-211-2/+4
|
* Fixing bugs...Diego Nehab2004-06-201-1/+1
|
* Manual is almost done. HTTP is missing.Diego Nehab2004-06-151-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 Nehab2004-06-041-2/+1
|
* FTP low-level working.Diego Nehab2004-05-251-1/+2
| | | | | SMTP connection oriented working. ltn12 improved.
* Worked on the manual.Diego Nehab2004-02-041-15/+18
| | | | | Implemented stuffing (needs test) Added cddb and qp examples.
* New accept/connect code.Diego Nehab2004-01-241-13/+41
| | | | | | Better error checking. Better tests. __tostring implemented.
* Fixed functions that return messages in ?socket.c.Diego Nehab2004-01-211-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 Nehab2004-01-191-2/+2
| | | | | Cleaned up TODO. Moved luasocket specific stuff from auxiliar.c to luasocket.c
* Added -ansi -pedantic and faced the consequences...Diego Nehab2004-01-191-1/+2
|
* Updated some of the callbacks in callback.lua.Diego Nehab2004-01-191-1/+1
| | | | | | | | | | 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.
* Added proxy support to http.luaDiego Nehab2004-01-191-3/+3
| | | | | Changed callback.lua module, but need more work. Added local connect support.
* Have to figure out how to test timeout on connect... kind of hard.Diego Nehab2004-01-181-1/+1
|
* Trying to get connect-with-timeout to work. Darwin works...Diego Nehab2004-01-181-37/+32
|
* Trying to get rid of EINTR problems...Diego Nehab2004-01-171-2/+5
|
* Tested in windows. Still needs more testing, but progress has been made.Diego Nehab2004-01-171-8/+10
|
* http.lua updated. still needs proxy support.Diego Nehab2004-01-161-3/+35
| | | | code.lua updated. looks neat.
* Killed a few bugs found by Tomas.Diego Nehab2003-11-271-11/+11
|
* Adjusted a few inconsistencies with the manual.Diego Nehab2003-08-161-82/+82
|