Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chore: Remove the executable permission bit from some source files (#434) | Tianjia Zhang | 2024-06-29 | 1 | -0/+0 |
| | |||||
* | fix(inet): Return port as number in getsockname (#392) | georgeto | 2023-11-08 | 1 | -1/+1 |
| | |||||
* | fix(build): Use gai_strerrorA not gai_strerror on Windows | rpatters1 | 2022-07-27 | 1 | -2/+2 |
| | | | | | | | | | | | * Explicitly call gai_strerrorA (for Windows builds), so that the code work correctly in 32bit or 64bit builds. * Implement GAI_STRERROR macro to deal with Windows vs. Non-Windows compiles for 64-bit. * make usocket.c consistent with other modules that call macro GAI_STRERROR * Use different name not just different case for macro wrapping function Co-authored-by: Caleb Maclennan <caleb@alerque.com> | ||||
* | inet: pragma visibility | E. Westbrook | 2019-03-10 | 1 | -21/+13 |
| | |||||
* | inet.c: use LUASOCKET_PRIVATE | E. Westbrook | 2019-02-25 | 1 | -12/+14 |
| | |||||
* | When zero-timeout, only try first address in connect. | Diego Nehab | 2015-12-03 | 1 | -2/+2 |
| | |||||
* | Fixes suggested by @Florob in #147. | Diego Nehab | 2015-08-25 | 1 | -6/+11 |
| | |||||
* | New agnostic IPv4 IPv6 functions. | Diego Nehab | 2015-08-22 | 1 | -64/+68 |
| | | | | | Also dealing with EPROTOTYPE Yosemite seems to be throwing at us for no reason. | ||||
* | New compat.h module implements luaL_setfuncs. | Diego Nehab | 2015-08-21 | 1 | -4/+1 |
| | | | | Makes initialization code simpler everywhere. | ||||
* | Fix inet_global_getaddrinfo leak of getnameinfo | Diego Nehab | 2015-02-18 | 1 | -0/+1 |
| | | | | Issue #127 closed. | ||||
* | No need for inet_pton. | Diego Nehab | 2013-06-04 | 1 | -30/+2 |
| | |||||
* | Remove warnings. Move windows specific code. | unknown | 2013-05-30 | 1 | -5/+6 |
| | |||||
* | Leaving if in src/ but out of build for now. | Diego Nehab | 2013-05-30 | 1 | -76/+55 |
| | |||||
* | Export global only if LUA_COMPAT_MODULE defined. | Diego Nehab | 2013-05-29 | 1 | -0/+4 |
| | |||||
* | Fix "final" bug in pton and TCP connreset handling | unknown | 2013-05-28 | 1 | -5/+4 |
| | |||||
* | Fixed inet_pton and a new Winsock UDP bug. | unknown | 2013-05-28 | 1 | -6/+11 |
| | | | | | | | | | | | | | inet_pton was copying the entire sockaddr_in struct, rather than just the sin_addr field... I am a bit unsure about the UDP fix, because it may affect TCP as well. On UDP sockets, when a sendto fails, the next receive/receivefrom fails with CONNRESET. I changed sock_recv/sock_recvfrom in wsocket.c to skip the CONNRESET from the recv/recvfrom, hoping that if the socket is TCP, sock_waitfd will get the CONNRESET again. The tests pass, but this should be tested more thoroughly. | ||||
* | Simplifying getaddrinfo treatment. | Diego Nehab | 2013-05-27 | 1 | -32/+18 |
| | |||||
* | Merge branch 'moteus' of https://github.com/moteus/luasocket into moteus | unknown | 2013-05-27 | 1 | -3/+21 |
|\ | |||||
| * | Fix. setsockname fails with "*" as host. | moteus | 2013-05-27 | 1 | -0/+3 |
| | | | | | | | | Add. test_bind.lua | ||||
| * | Fix. getaddrinfo returns garbage as address on Windows. | moteus | 2013-05-27 | 1 | -3/+18 |
| | | | | | | | | Add. test_getaddrinfo.lua | ||||
* | | Fix Visual Studio 2012 projects | unknown | 2013-05-27 | 1 | -2/+2 |
|/ | |||||
* | Merge tryconnect6 into inet_tryconnect. | Diego Nehab | 2013-05-26 | 1 | -2/+20 |
| | |||||
* | Add MingW support. | unknown | 2013-05-25 | 1 | -43/+37 |
| | |||||
* | Added inet_pton/inet_ntop for MinGW on Windows; compiles with Lua52. | Paul Kulchenko | 2013-04-07 | 1 | -0/+50 |
| | |||||
* | Remove warnings and fix makefile for Win32. | Diego Nehab | 2012-12-11 | 1 | -6/+6 |
| | |||||
* | Fix socket_accept usage to depend on family. | Diego Nehab | 2012-12-11 | 1 | -1/+15 |
| | |||||
* | Fix udp:setpeername("*") | Diego Nehab | 2012-08-23 | 1 | -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 core | Sam Roberts | 2012-05-10 | 1 | -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() wrapper | Florian Zeitz | 2012-05-05 | 1 | -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 situation | Diego Nehab | 2012-04-24 | 1 | -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 release | Diego Nehab | 2012-04-23 | 1 | -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 rule | Florian Zeitz | 2012-04-11 | 1 | -12/+14 |
| | |||||
* | Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs ↵ | Liam Devine | 2012-04-11 | 1 | -1/+1 |
| | | | | sorting out to take maybe a version number and also the local paths need removing. | ||||
* | inet: return more useful errors | Paul Aurich | 2012-04-11 | 1 | -2/+3 |
| | |||||
* | inet: refactor getpeername to allocate the struct on the stack | Paul Aurich | 2012-04-11 | 1 | -13/+23 |
| | |||||
* | Fix getpeername to work with IPv6 addresses | Florian Zeitz | 2012-04-11 | 1 | -5/+18 |
| | |||||
* | Add support for connecting to IPv6 hosts | Florian Zeitz | 2012-04-11 | 1 | -18/+24 |
| | |||||
* | dns.getaddrinfo: Return proper error messages | Florian Zeitz | 2012-04-11 | 1 | -1/+1 |
| | |||||
* | dns: Rename toip6() to getaddrinfo() since the old name is misleading | Florian Zeitz | 2012-04-11 | 1 | -3/+3 |
| | |||||
* | Rework binding IPv6 sockets by harmonizing it with the IPv4 variant | Florian Zeitz | 2012-04-11 | 1 | -24/+34 |
| | |||||
* | Preliminary IPv6 support for v2.1 | Diego Nehab | 2012-04-11 | 1 | -3/+49 |
| | |||||
* | Saving before big changes to support IPv6. | Diego Nehab | 2011-05-25 | 1 | -2/+1 |
| | |||||
* | Before compiling on Windows. | Diego Nehab | 2005-10-07 | 1 | -20/+20 |
| | |||||
* | Almost ready to release. | Diego Nehab | 2005-09-29 | 1 | -2/+2 |
| | |||||
* | Working on the manual. | Diego Nehab | 2005-06-14 | 1 | -10/+14 |
| | |||||
* | Forward server working on Mac OS X... | Diego Nehab | 2005-02-08 | 1 | -1/+0 |
| | |||||
* | Fixed a bunch of stuff. Added mike's patches. | Diego Nehab | 2004-07-16 | 1 | -4/+3 |
| | |||||
* | Still need to fix windows. :o/ | Diego Nehab | 2004-07-15 | 1 | -33/+37 |
| | |||||
* | Manual is almost done. HTTP is missing. | Diego Nehab | 2004-06-15 | 1 | -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 Nehab | 2004-06-04 | 1 | -3/+0 |
| |