Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | feat(tcp): Add 'bindtodevice' option (#408) | Leso_KN | 2023-10-23 | 1 | -0/+2 |
| | |||||
* | feat(tcp): Add support for TCP Defer Accept | Kim Alvefur | 2022-07-27 | 1 | -0/+3 |
| | | | | | | | | This makes it so that a listening socket does not become readable for accept() until a connection has been fully established *and* started sending something, thus the program doesn't have to wait for the first data. This only makes sense for client-speaks-first protocols. Co-authored-by: Caleb Maclennan <caleb@alerque.com> | ||||
* | feat(tcp): Add support for TCP Fast Open | Kim Alvefur | 2022-07-27 | 1 | -0/+6 |
| | |||||
* | tcp: pragma visibility | E. Westbrook | 2019-03-10 | 1 | -6/+1 |
| | |||||
* | tcp.c: use LUASOCKET_PRIVATE | E. Westbrook | 2019-02-25 | 1 | -3/+6 |
| | |||||
* | Merge pull request #244 from leyyer/options | Diego Nehab | 2019-02-24 | 1 | -0/+4 |
|\ | | | | | add options: | ||||
| * | add options: | surenyi | 2018-03-25 | 1 | -0/+4 |
| | | | | | | | | | | | | | | get/set : recv-buffer-size get/set : send-buffer-size Signed-off-by: surenyi <surenyi82@163.com> | ||||
* | | Merge pull request #116 from linuxmaniac/master | Diego Nehab | 2019-02-24 | 1 | -0/+18 |
|\ \ | |/ |/| | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options | ||||
| * | Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options | Victor Seva | 2014-12-05 | 1 | -0/+18 |
| | | |||||
* | | Added gettimeout for completeness. | Diego Nehab | 2016-03-04 | 1 | -0/+8 |
| | | | | | | | | | | Also documented. Rordered manuals so order is alphabetical. | ||||
* | | When zero-timeout, only try first address in connect. | Diego Nehab | 2015-12-03 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into ↵ | Diego Nehab | 2015-10-05 | 1 | -0/+2 |
|\ \ | | | | | | | | | | KateAdams-tcp_reuseport | ||||
| * | | Added ability to set the option `reuseport` of a tcp socket. | kobra | 2013-09-12 | 1 | -0/+2 |
| |/ | |||||
* | | Fixes suggested by @Florob in #147. | Diego Nehab | 2015-08-25 | 1 | -31/+21 |
| | | |||||
* | | New agnostic IPv4 IPv6 functions. | Diego Nehab | 2015-08-22 | 1 | -60/+25 |
| | | | | | | | | | | 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. | ||||
* | 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 |
| |