aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat(tcp): Add 'bindtodevice' option (#408)Leso_KN2023-10-231-0/+2
|
* feat(tcp): Add support for TCP Defer AcceptKim Alvefur2022-07-271-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 OpenKim Alvefur2022-07-271-0/+6
|
* tcp: pragma visibilityE. Westbrook2019-03-101-6/+1
|
* tcp.c: use LUASOCKET_PRIVATEE. Westbrook2019-02-251-3/+6
|
* Merge pull request #244 from leyyer/optionsDiego Nehab2019-02-241-0/+4
|\ | | | | add options:
| * add options:surenyi2018-03-251-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/masterDiego Nehab2019-02-241-0/+18
|\ \ | |/ |/| Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options
| * Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" optionsVictor Seva2014-12-051-0/+18
| |
* | Added gettimeout for completeness.Diego Nehab2016-03-041-0/+8
| | | | | | | | | | Also documented. Rordered manuals so order is alphabetical.
* | When zero-timeout, only try first address in connect.Diego Nehab2015-12-031-2/+2
| |
* | Merge branch 'tcp_reuseport' of https://github.com/KateAdams/luasocket into ↵Diego Nehab2015-10-051-0/+2
|\ \ | | | | | | | | | KateAdams-tcp_reuseport
| * | Added ability to set the option `reuseport` of a tcp socket.kobra2013-09-121-0/+2
| |/
* | Fixes suggested by @Florob in #147.Diego Nehab2015-08-251-31/+21
| |
* | New agnostic IPv4 IPv6 functions.Diego Nehab2015-08-221-60/+25
| | | | | | | | | | Also dealing with EPROTOTYPE Yosemite seems to be throwing at us for no reason.
* | New compat.h module implements luaL_setfuncs.Diego Nehab2015-08-211-4/+1
|/ | | | Makes initialization code simpler everywhere.
* Add. Allow get `error` option to socket.moteus2013-05-291-0/+1
|
* Export global only if LUA_COMPAT_MODULE defined.Diego Nehab2013-05-291-0/+4
|
* Fix. setsockname fails with "*" as host.moteus2013-05-271-1/+0
| | | | Add. test_bind.lua
* Merge tryconnect6 into inet_tryconnect.Diego Nehab2013-05-261-12/+6
|
* Fix socket.connectDiego Nehab2013-05-261-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 Nehab2012-12-111-1/+1
|
* Fix socket_accept usage to depend on family.Diego Nehab2012-12-111-3/+3
|
* Fix udp:setpeername("*")Diego Nehab2012-08-231-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 Aurich2012-05-211-1/+5
| | | | | Also unconditionally zero out the structs when allocated, for good measure.
* 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
|