Network support for the Lua language
Go to file
moteus 00a06857c9 Fix. recive 2xx while ftp.get cause timeout error
In this example:
>Client send: MDTM test.txt
>Server response: 213 20120824120909
Because FTP server do not open new channel (2XX response)
and LuaSocket try open new channel we get timeout.

```lua
local ftp   = require "socket.ftp"
local ltn12 = require "ltn12"
local url   = require("socket.url")

local URL = "ftp://USER:TEST@127.0.0.1";
local CMD = 'MDTM test.txt';

-- get timeout
ftp.get{
  url = URL;
  command = CMD;
  sink = ltn12.sink.table{};
}

-- or we can use ftp.command
ftp.command{
  url = URL;
  command = URL,
  check = function(...)
    local status, data = ...
    return true
  end;
}
```
2013-05-30 11:01:07 +04:00
doc Fix udp:setpeername("*") 2012-08-23 19:31:15 -03:00
etc Merge pull request #27 from catwell/pull-noarg 2013-04-17 19:38:21 -07:00
gem Merge branch 'git-sam' into diego-sam-mwild-integration 2012-04-11 14:18:20 -07:00
samples lpr.lua: fix invalid string escape sequence \? 2013-04-17 23:35:56 -04:00
src Fix. recive 2xx while ftp.get cause timeout error 2013-05-30 11:01:07 +04:00
test Add. Allow get error option to socket. 2013-05-29 14:33:27 +04:00
.gitignore Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
FIX Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
LICENSE Making progress toward a release 2012-04-23 00:18:45 +08:00
linux.cmd Check linux build. 2013-05-25 07:25:02 -03:00
logo.ps Adjusted a few inconsistencies with the manual. 2003-08-16 00:06:04 +00:00
ltn012.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
ltn013.wiki fix use of arg in ltn documentation 2013-01-23 19:03:46 +01:00
Lua51.props Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
Lua52.props Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
luasocket-2.1-1.rockspec rockspec for luasocket 2.1 unstable 2013-01-24 15:28:17 -02:00
luasocket.sln Move Visual Studio projects to 2012. 2012-12-10 18:45:05 -02:00
macosx.cmd Fix socket.connect 2013-05-26 15:18:13 +08:00
makefile Add MingW support. 2013-05-25 18:07:38 +08:00
makefile.dist Making progress toward a release 2012-04-23 00:18:45 +08:00
mime.vcxproj Change VC12 project to no LUA_COMPAT_MODUULE 2013-05-29 17:19:24 +08:00
mime.vcxproj.filters Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
mingw.cmd Add MingW support. 2013-05-25 18:07:38 +08:00
NEW Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
README Making progress toward a release 2012-04-23 00:18:45 +08:00
socket.vcxproj Change VC12 project to no LUA_COMPAT_MODUULE 2013-05-29 17:19:24 +08:00
socket.vcxproj.filters Fix Visual Studio 2012 projects 2013-05-27 20:30:06 +08:00
TODO Fix ltn12 version. 2012-12-10 15:50:44 -02:00
win32.cmd Added my test command lines. 2013-05-25 18:10:46 +08:00
WISH Couple bug fixes. 2007-03-12 04:08:40 +00:00

This is the LuaSocket 2.1. It has been tested on --[[WinXP--]], Mac OS X,
and --[[Linux--]].  Please use the Lua mailing list to report any bugs 
(or "features") you encounter. 

Have fun,
Diego Nehab.