aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove warnings and fix makefile for Win32.Diego Nehab2012-12-111-6/+6
|
* Fix socket_accept usage to depend on family.Diego Nehab2012-12-111-1/+15
|
* Fix udp:setpeername("*")Diego Nehab2012-08-231-12/+33
| | | | | | | | | | | | | | 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".
* socket.connect now implemented in the C coreSam Roberts2012-05-101-12/+42
| | | | | | | 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.
* 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.
* Fixed getpeername/getsockname situationDiego Nehab2012-04-241-43/+74
| | | | | | | - 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-4/+2
| | | | | | | | | | 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
* inet: Honor the strict aliasing ruleFlorian Zeitz2012-04-111-12/+14
|
* Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs ↵Liam Devine2012-04-111-1/+1
| | | | 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-111-18/+24
|
* dns.getaddrinfo: Return proper error messagesFlorian Zeitz2012-04-111-1/+1
|
* 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-111-24/+34
|
* Preliminary IPv6 support for v2.1Diego Nehab2012-04-111-3/+49
|
* Saving before big changes to support IPv6.Diego Nehab2011-05-251-2/+1
|
* Before compiling on Windows.Diego Nehab2005-10-071-20/+20
|
* Almost ready to release.Diego Nehab2005-09-291-2/+2
|
* Working on the manual.Diego Nehab2005-06-141-10/+14
|
* Forward server working on Mac OS X...Diego Nehab2005-02-081-1/+0
|
* Fixed a bunch of stuff. Added mike's patches.Diego Nehab2004-07-161-4/+3
|
* Still need to fix windows. :o/Diego Nehab2004-07-151-33/+37
|
* Manual is almost done. HTTP is missing.Diego Nehab2004-06-151-1/+0
| | | | | | | 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-3/+0
|
* Adjusted some of the broken examples.Diego Nehab2004-03-261-0/+1
|
* Worked on the manual.Diego Nehab2004-02-041-8/+1
| | | | | Implemented stuffing (needs test) Added cddb and qp examples.
* Working on the manual...Diego Nehab2004-01-241-0/+21
| | | | | | Making better tests for error messages. Changed a few names. Moved gethostname to inet.c.
* New accept/connect code.Diego Nehab2004-01-241-11/+3
| | | | | | Better error checking. Better tests. __tostring implemented.
* Fixed functions that return messages in ?socket.c.Diego Nehab2004-01-211-38/+18
| | | | | | Moved complexity of connect and accept there. Created a new options.c module to take care of options. Auxiliar.c is now cleaner.
* 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.
* Fixed bug in accept, added tests for it and for connect with timeout.Diego Nehab2004-01-181-0/+1
|
* Trying to get connect-with-timeout to work. Darwin works...Diego Nehab2004-01-181-14/+27
|
* Trying to get rid of EINTR problems...Diego Nehab2004-01-171-4/+2
|
* Adjusted a few inconsistencies with the manual.Diego Nehab2003-08-161-7/+22
|
* Bug in usocket_recv...Diego Nehab2003-06-301-1/+0
|
* Finished implementation of LuaSocket 2.0 alpha on Linux.Diego Nehab2003-06-261-39/+4
| | | | Some testing still needed.
* Compiles and runs on linux and windows, using DLLs!Diego Nehab2003-06-111-10/+9
|
* Select re-implemented in a nicer way.Diego Nehab2003-06-091-2/+3
| | | | | | 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.
* Porting to LUA 5.0 finalDiego Nehab2003-05-251-100/+70
|
* Closer to release...Diego Nehab2003-03-281-3/+6
|
* Completed port to Lua 5.0-beta.Diego Nehab2003-03-201-2/+2
|
* Already compiling and running for Lua 5.0 (alpha)Diego Nehab2002-12-021-4/+4
|
* internet class.Diego Nehab2002-07-031-70/+46
|
* Initial revisionDiego Nehab2002-03-211-0/+352