1
0
mirror of https://github.com/lunarmodules/luasocket.git synced 2025-04-07 17:36:46 +02:00

Commit Graph

  • 5616f3a0ae Merge pull request from darkrain42/unstable Diego Nehab 2012-07-31 22:02:10 -07:00
  • c1bb432eff Merge pull request from Zash/zash-improves-makefile Diego Nehab 2012-07-31 22:00:03 -07:00
  • 7503bb0ca3 Add IPv6 support to udp:receivefrom() Florian Zeitz 2012-07-18 21:05:30 +02:00
  • a6cf48596d Add IPv6 support to udp:sendto() Florian Zeitz 2012-07-17 19:02:20 +02:00
  • d777341eaf tcp: Initialize clnt->family in :accept() Paul Aurich 2012-05-21 19:44:08 -07:00
  • 36461db5bb src/makefile: Use install instead of cp and mkdir. Kim Alvefur 2012-05-15 18:44:38 +02:00
  • c624761d32 src/makefile: Move mkdir to a variable Kim Alvefur 2012-05-15 18:27:46 +02:00
  • 05535a19f8 Improve makefile to allow overriden variables Diego Nehab 2012-05-11 15:33:47 +08:00
  • 399bdb7f41 Merge pull request from sam-github/fix-connect6-and-do-connect-in-c Diego Nehab 2012-05-10 23:16:38 -07:00
  • 156669c28b socket.connect now implemented in the C core Sam Roberts 2012-05-10 14:14:22 -07:00
  • 3d3e69c6e4 Merge pull request from sam-github/fix-confusing-servname-reference Diego Nehab 2012-05-08 11:52:23 -07:00
  • 1bb586d655 Merge pull request from sam-github/fix-makefiles Diego Nehab 2012-05-08 11:51:25 -07:00
  • ee7c53c3e5 Merge pull request from Florob/getnameinfo Diego Nehab 2012-05-08 11:48:54 -07:00
  • ac59bcbeac Reword error msg to distinguish between service and server Sam Roberts 2012-05-08 10:55:33 -07:00
  • c291383ce2 Rework makefiles to simplify setting and choosing build options. Sam Roberts 2012-04-26 13:33:01 -07:00
  • 0c3e067af1 Add a getnameinfo() wrapper Florian Zeitz 2012-05-05 02:13:56 +02:00
  • 04be61f88d Test server exits gracefully at command of test client Diego Nehab 2012-05-01 16:21:06 +08:00
  • af55d25675 Merge branch 'tests52' of https://github.com/Florob/luasocket into Florob-tests52 Diego Nehab 2012-05-01 16:12:16 +08:00
  • 6de0aa54fd Update method list in tests Florian Zeitz 2012-04-29 21:03:28 +02:00
  • cf4d29f86d Select loadstring or load for Lua 5.1/5.2 respectively Florian Zeitz 2012-04-29 20:46:35 +02:00
  • 46736a3355 Test method registration for IPv6 sockets Florian Zeitz 2012-04-29 20:44:15 +02:00
  • e86eac96fa :shutdown() errors on all invalid argument strings Sam Roberts 2012-04-26 16:50:27 -07:00
  • 30d1aae140 Added Sam's suggestion to TODO Diego Nehab 2012-04-27 02:03:09 +08:00
  • c2e29537f5 Fixed getpeername/getsockname situation Diego Nehab 2012-04-24 00:47:30 +08:00
  • 1acf8188cd socket.bind also tries all addresses returned by getaddrinfo. Diego Nehab 2012-04-23 01:40:31 +08:00
  • 966642f76a socket.connect() loops over addresses returned by getaddrinfo Diego Nehab 2012-04-23 01:29:41 +08:00
  • f960b3872a Making progress toward a release Diego Nehab 2012-04-23 00:18:45 +08:00
  • f37e026026 First stab at documenation Diego Nehab 2012-04-17 01:15:26 +08:00
  • b3c4f46179 merged lua_typerrror.{c,h} into auxiliar.{c,h} Diego Nehab 2012-04-16 20:41:48 +08:00
  • 4b671f4551 Merge branch 'git-sam' into diego-sam-mwild-integration Sam Roberts 2012-04-11 14:18:20 -07:00
  • 195b2a74bb On failure, exit with a message instead of blocking indefinitely. Sam Roberts 2012-02-29 16:55:55 -08:00
  • 38b99b80a2 Add Wurldtech note to README. Sam Roberts 2012-02-29 16:49:12 -08:00
  • d1a50282a7 Correct luasocket version in v2.0.2 readme. Sam Roberts 2012-02-27 13:37:17 -08:00
  • 8bb542baaf Support getoption method for tcp objects. Sam Roberts 2012-02-27 13:26:23 -08:00
  • 0716cb868e Bounds check the argument to FD_SET Sam Roberts 2012-02-21 13:13:46 -08:00
  • 27a3964ff7 socket_strerror() sometimes maps errno, instead of its argument Sam Roberts 2012-02-21 13:11:39 -08:00
  • db47a91d40 Fix links to home.html, they should be to index.html. Sam Roberts 2012-02-07 14:37:28 -08:00
  • e716e7347b mime: Remove io dependency root 2012-01-08 12:34:11 -03:00
  • 12bde801f6 Document dirty, getfd, and setfd for select and tcp. Sam Roberts 2011-10-24 11:24:58 -07:00
  • 3a0fd4744d Reference index was missing documented APIs, and only partially alphabetized. Sam Roberts 2011-10-06 11:52:52 -07:00
  • b1f7c349b5 Add support for serial devices as socket streams on unix. Sam Roberts 2012-02-23 17:12:37 -08:00
  • 3b19f2a7ed testsrvr asserts when test finishes successfully. When the test client finishes, the test server asserts with a "closed" message. After looking carefully at this, I think the tests are running successfully and passing. Since it appears to be a test failure, I modified the server to allow the client to close the control connection. Sam Roberts 2011-08-08 16:23:06 -07:00
  • dace50628c Utility to find how many TCP connections can be made. Sam Roberts 2011-06-28 17:48:21 -07:00
  • f63d616bc0 Use poll by default for socket.connect(), instead of select(). Connect timeouts are implemented by waiting on the new socket descriptor. When select() is used for this, it imposes an arbitrary limit on the number of connections that can be made, usually 1024-3. Using poll() removes this limit on the number of simultaneous TCP connections can be made using luasocket. The previous default implementation using select() is available by defining SOCKET_SELECT. Note that using socket.select() always uses select(), so it isn't possible to wait on an arbitrary number of connections at once. Sam Roberts 2011-06-27 17:04:32 -07:00
  • 21698c7665 Receive of zero for UDP is now possible. Previously, receive of zero was considered to be "closed", but that is only true for stream-based protocols, like TCP. Sam Roberts 2011-08-08 16:11:47 -07:00
  • c37f71d062 Test showing failure to receive a zero-length packet. Sam Roberts 2011-08-08 16:49:20 -07:00
  • 51acb54760 Stop returning an error after successful send of zero length UDP packets A zero-length send is invalid with TCP, but well defined with UDP. udp:send"" was returning (nil,"refused"), indicating that it failed when the packet was actually sent. The test script reproduces the bug, and includes a tcpdump of the zero length packet being sent. Sam Roberts 2011-06-17 13:51:34 -07:00
  • a8b19e5367 OS X CFLAGS definition caused silent failure to build debug version of luasocket. The luasocket tests require LUASOCKET_DEBUG to be defined at build time, but for OS X if COMPAT was undefined, the command line looked like ... -I -DLUASOCKET_DEBUG ... so that the the macro definition was silently being treated as the argument to -I. Result is the macro was never set, and tests would never run. Fixed by moving -I to the (optional) definition of the location of compat headers. Sam Roberts 2011-09-27 12:26:38 -07:00
  • 1f704cfb89 Add all-unix and install-unix targets which include all modules supported on unix. Besides standard socket and mime modules, this includes unix domain socket support. Sam Roberts 2011-09-27 12:54:51 -07:00
  • 826589afcd Add location of Ubuntu's lua5.1 headers to config. Sam Roberts 2011-08-08 17:12:34 -07:00
  • dcb92d6268 Support the conventional DESTDIR and prefix variables Many packaging systems rely on them, they are described here: - http://www.gnu.org/prep/standards/standards.html#index-prefix - http://www.gnu.org/prep/standards/standards.html#DESTDIR Sam Roberts 2011-06-17 14:36:20 -07:00
  • e3e0dee639 ignore build output Sam Roberts 2011-06-17 13:45:52 -07:00
  • f399ab25fc inet: Honor the strict aliasing rule Florian Zeitz 2011-12-17 19:05:45 +01:00
  • e81a6ff623 Conditional creation of p_timeout instance 'tm' Liam Devine 2011-07-07 01:14:16 +01:00
  • 9a58252528 change localhost to loopback ip to prevent error on my mac box???? Liam Devine 2011-07-05 13:40:22 +01:00
  • 51187ecc90 Updated readme version and os tested Liam Devine 2011-07-04 23:42:14 +01:00
  • c8eed36788 This is a replacement for luaL_typerror , removed from Lua 5.2, which corrects the spelling. NOTE: There is one failing test in.the /test/testsrvr.lua and /test/testclnt.lua combination which was present in the repo I cloned from. Liam Devine 2011-07-04 23:35:16 +01:00
  • e15ed19db6 Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing. Liam Devine 2011-07-04 23:31:14 +01:00
  • a984607f28 inet: return more useful errors Paul Aurich 2011-07-03 14:28:22 -07:00
  • 7893d9ece2 inet: refactor getpeername to allocate the struct on the stack Paul Aurich 2011-07-03 14:28:12 -07:00
  • 8393c76180 Fix getpeername to work with IPv6 addresses Florian Zeitz 2011-06-30 21:49:39 +02:00
  • 594f826aa1 Add support for connecting to IPv6 hosts Florian Zeitz 2011-06-15 00:51:02 +02:00
  • 5874d47f55 dns.getaddrinfo: Return proper error messages Florian Zeitz 2011-06-14 20:30:40 +02:00
  • f871a29f27 Add support for the IPV6_V6ONLY socket option defaulting to on. Florian Zeitz 2011-06-14 02:47:43 +02:00
  • 4df1618aab Adapt socket.bind() to create a IPv4 or IPv6 depending on the address given Florian Zeitz 2011-06-14 02:04:37 +02:00
  • 5065a2585c dns: Rename toip6() to getaddrinfo() since the old name is misleading Florian Zeitz 2011-06-14 01:40:11 +02:00
  • 923eef1929 Rework binding IPv6 sockets by harmonizing it with the IPv4 variant Florian Zeitz 2011-06-14 01:17:07 +02:00
  • 5c33ef9997 url.escape/url.unescape: Fix to return *only* the encoded/decoded string (thanks moodydeath) Matthew Wild 2011-05-12 13:44:16 +01:00
  • 908ee2cce1 Fix two crashes and add -Wshadow so that this can't happen again. Paul Aurich 2011-04-27 10:42:20 -07:00
  • dd83e0a849 #ifdef EAI_BADHINTS and EAI_PROTOCOL which don't seem available on my system (Linux/glibc 2.11) Matthew Wild 2011-04-08 14:11:37 +01:00
  • 2778766d67 Preliminary IPv6 support for v2.1 Diego Nehab 2012-04-11 13:21:25 -07:00
  • 3a8ba90dfb Saving before big changes to support IPv6. Diego Nehab 2011-05-25 20:57:22 +00:00
  • bce60be30f Decent makefiles! Diego Nehab 2009-05-27 09:31:38 +00:00
  • d1a72435d5 New release. Diego Nehab 2007-10-13 23:55:20 +00:00
  • 81ebe649f0 This commit was manufactured by cvs2svn to create tag 'luasocket-2-0-2'. v2.0.2 cvs2git convertor 2007-10-11 21:16:29 +00:00
  • 52ac60af81 Tested each sample. Diego Nehab 2007-10-11 21:16:28 +00:00
  • e394956cde Global variable references. Diego Nehab 2007-07-11 19:25:47 +00:00
  • 185b6d806c Typo. Diego Nehab 2007-06-15 06:38:29 +00:00
  • 6d23f14aeb Waiting for Roberto's remarks. Diego Nehab 2007-06-15 06:29:07 +00:00
  • 1c487e4be8 Almost ready to release. Diego Nehab 2007-06-15 06:28:56 +00:00
  • e381bde1ea Modified and tested on Linux. Diego Nehab 2007-06-12 00:06:29 +00:00
  • c893c7abfb Removed os.exit from test. Diego Nehab 2007-06-11 23:52:48 +00:00
  • 3cd10f5ab6 Crashy bug fixed in recvraw. Also fixed returns on closed socket. Diego Nehab 2007-06-11 23:44:54 +00:00
  • 3074a8f56b Before sending to Roberto. Diego Nehab 2007-05-31 22:27:40 +00:00
  • 7b195164b0 Lua Gem. Diego Nehab 2007-05-31 21:23:42 +00:00
  • 37f266ceea Added simple unix tests. Diego Nehab 2007-04-09 22:04:13 +00:00
  • be2e467929 Couple bug fixes. Diego Nehab 2007-03-12 04:08:40 +00:00
  • 8bf9fb51dd Thread safety... Diego Nehab 2006-04-28 07:06:42 +00:00
  • 9d218a9379 Tested on Windows and it works. Diego Nehab 2006-04-26 21:39:27 +00:00
  • 3dd6a16bcb Adjusted projects for compat-5.1r5 Diego Nehab 2006-04-20 04:43:12 +00:00
  • d86af2f680 Tidy. Diego Nehab 2006-04-20 04:32:06 +00:00
  • 575113fe77 Spell checked and updated modification date. Diego Nehab 2006-04-20 04:27:13 +00:00
  • c72632dca5 Reverted back to Linux. Diego Nehab 2006-04-20 04:27:01 +00:00
  • 75f51d5bc7 Almost ready to release 2.0.1 Diego Nehab 2006-04-20 04:16:23 +00:00
  • 316e205cd4 Reverted to Linux default. Diego Nehab 2006-04-18 20:12:27 +00:00
  • 61cbb67a27 Adding wishes for 5.2 Diego Nehab 2006-04-14 08:00:23 +00:00
  • 44c7f0f47b Mentions that closed sockets are ignored by select. Diego Nehab 2006-04-14 02:04:38 +00:00
  • e8650bbf16 http.request was using old host header during redirects. Diego Nehab 2006-04-13 07:00:24 +00:00
  • be57b387d2 Stupid bug was reusing the nreqt.headers.host during redirect. Diego Nehab 2006-04-12 08:04:09 +00:00
  • 11282d17c8 Almost done 2.0.1. Diego Nehab 2006-04-03 04:45:42 +00:00