mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 20:18:21 +01:00
Network support for the Lua language
00a06857c9
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; } ``` |
||
---|---|---|
doc | ||
etc | ||
gem | ||
samples | ||
src | ||
test | ||
.gitignore | ||
FIX | ||
LICENSE | ||
linux.cmd | ||
logo.ps | ||
ltn012.wiki | ||
ltn013.wiki | ||
Lua51.props | ||
Lua52.props | ||
luasocket-2.1-1.rockspec | ||
luasocket.sln | ||
macosx.cmd | ||
makefile | ||
makefile.dist | ||
mime.vcxproj | ||
mime.vcxproj.filters | ||
mingw.cmd | ||
NEW | ||
README | ||
socket.vcxproj | ||
socket.vcxproj.filters | ||
TODO | ||
win32.cmd | ||
WISH |
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.