aboutsummaryrefslogtreecommitdiff
path: root/test (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-01-10Cookie modifications.Diego Nehab3-0/+90
2012-12-11Remove warnings and fix makefile for Win32.Diego Nehab9-37/+33
2012-12-11Fix socket_accept usage to depend on family.Diego Nehab8-13/+22
2012-12-10Move Visual Studio projects to 2012.Diego Nehab5-470/+415
2012-12-10Fix ltn12 version.Diego Nehab2-1/+7
2012-11-20Copied socket_gaistrerror implementation from usocket to wsocket to allow ↵Eric Wing1-0/+25
Windows version to compile because it is missing the function. EAI_OVERFLOW and EAI_SYSTEM are commented out because they don't exist on Windows.
2012-09-17fix use of arg in ltn12Pierre Chapuis1-1/+3
2012-08-23Fix udp:setpeername("*")Diego Nehab9-31/+96
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".
2012-08-07Send SMTP AUTH LOGIN response using tp:send(). Fixes #18Florian Zeitz1-2/+2
tp:command() uppercases the command. Without a command we would end up with a space in front of the data. Therefore use send() directly here.
2012-08-01Add new bug fix comment.Diego Nehab1-0/+3
2012-08-01Fix HORRIBLE but in b64/qp code.Diego Nehab2-1/+9
Bug was caught by user moteus. Code was checking if arguments was nil after using luaL_Buffer code, which messes with the stack. Simple to fix, though.
2012-08-01Fixed default Linux path to work with UbuntuDiego Nehab1-2/+2
Also fixed clean target to remove serial objects
2012-07-18Add IPv6 support to udp:receivefrom()Florian Zeitz1-16/+54
2012-07-17Add IPv6 support to udp:sendto()Florian Zeitz1-9/+30
2012-05-21tcp: Initialize clnt->family in :accept()Paul Aurich1-1/+5
Also unconditionally zero out the structs when allocated, for good measure.
2012-05-15src/makefile: Use install instead of cp and mkdir.Kim Alvefur1-3/+3
2012-05-15src/makefile: Move mkdir to a variableKim Alvefur1-4/+5
2012-05-11Improve makefile to allow overriden variablesDiego Nehab2-12/+22
Before this change, it was difficult to set default directories for different platforms that would still work with different Lua versions.
2012-05-10socket.connect now implemented in the C coreSam Roberts7-48/+69
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.
2012-05-08Reword error msg to distinguish between service and serverSam Roberts1-2/+2
servname is easily confused with "server name", making it seem as if the server name couldn't be resolved.
2012-05-08Rework makefiles to simplify setting and choosing build options.Sam Roberts2-22/+76
Includes documentation for common build settings, reasonable defaults, and ability to set common build options in the environment.
2012-05-05Add a getnameinfo() wrapperFlorian Zeitz1-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.
2012-05-01Test server exits gracefully at command of test clientDiego Nehab1-0/+7
2012-04-29Update method list in testsFlorian Zeitz1-1/+4
2012-04-29Select loadstring or load for Lua 5.1/5.2 respectivelyFlorian Zeitz1-1/+1
2012-04-29Test method registration for IPv6 socketsFlorian Zeitz1-4/+9
2012-04-26:shutdown() errors on all invalid argument stringsSam Roberts2-37/+9
It used to error only on invalid argument strings that started with 's', 'r', or 'b'.
2012-04-27Added Sam's suggestion to TODODiego Nehab1-1/+2
2012-04-24Fixed getpeername/getsockname situationDiego Nehab8-62/+107
- Added IPv6 support to getsockname - Simplified getpeername implementation - Added family to return of getsockname and getpeername and added modification to the manual to describe
2012-04-23socket.bind also tries all addresses returned by getaddrinfo.Diego Nehab2-14/+25
2012-04-23socket.connect() loops over addresses returned by getaddrinfoDiego Nehab1-13/+23
2012-04-23Making progress toward a releaseDiego Nehab53-108/+236
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
2012-04-17First stab at documenationDiego Nehab12-197/+367
Update Lua and Luasocket version in samples and in documentation Documented ipv5_v6only default option being set Documented tcp6 and udp6 Documented dns.getaddrinfo Documented zero-sized datagram change? Documented getoption
2012-04-16merged lua_typerrror.{c,h} into auxiliar.{c,h}Diego Nehab7-30/+58
2012-04-11On failure, exit with a message instead of blocking indefinitely.Sam Roberts1-2/+4
2012-04-11Add Wurldtech note to README.Sam Roberts1-0/+3
2012-04-11Correct luasocket version in v2.0.2 readme.Sam Roberts1-1/+1
v2.0.2 was released with a README saying it was v2.0.1.
2012-04-11Support getoption method for tcp objects.Sam Roberts6-1/+170
2012-04-11Bounds check the argument to FD_SETSam Roberts1-0/+1
Failing to check the FD_SET argument against FD_SETSIZE causes undefined behaviour (segfaults, for example).
2012-04-11socket_strerror() sometimes maps errno, instead of its argumentSam Roberts1-2/+2
Looks like a historical bug. Its err argument is an error number, but if it isn't using a custom error message for it, it just calls strerror() with the errno global, effectively ignoring its argument and returning a semi-random string.
2012-04-11Fix links to home.html, they should be to index.html.Sam Roberts14-55/+55
home.html doesn't exist, index.html does.
2012-04-11mime: Remove io dependencyroot1-1/+0
This dependency was spuriously added, maybe for debug reasons, as confirmed to me by Diego Nehab by mail. Some systems based in Lua (e.g. Ginga) prohibit the use of io module for security reasons, so this dependency makes mime unusable; even worse this makes other modules, based on mime, unusable too (e.g. html).
2012-04-11Document dirty, getfd, and setfd for select and tcp.Sam Roberts3-0/+67
2012-04-11Reference index was missing documented APIs, and only partially alphabetized.Sam Roberts1-5/+8
2012-04-11Add support for serial devices as socket streams on unix.Sam Roberts6-1/+265
2012-04-11testsrvr asserts when test finishes successfully.Sam Roberts1-1/+6
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.