aboutsummaryrefslogtreecommitdiff
path: root/test/ltn12test.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-25 05:27:44 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-25 05:27:44 +0000
commit888496aa821cd09d925046250ea98b1512293fd5 (patch)
tree217e2b532762a64b58c4fffcb2cba08ba2243462 /test/ltn12test.lua
parent4fc164b8eaa0453050a0a859321c327bb2c4f776 (diff)
downloadluasocket-888496aa821cd09d925046250ea98b1512293fd5.tar.gz
luasocket-888496aa821cd09d925046250ea98b1512293fd5.tar.bz2
luasocket-888496aa821cd09d925046250ea98b1512293fd5.zip
FTP low-level working.
SMTP connection oriented working. ltn12 improved.
Diffstat (limited to 'test/ltn12test.lua')
-rw-r--r--test/ltn12test.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ltn12test.lua b/test/ltn12test.lua
index 1c1f3f2..04749a5 100644
--- a/test/ltn12test.lua
+++ b/test/ltn12test.lua
@@ -1,3 +1,5 @@
1sink = ltn12.sink.file(io.open("lixo", "w")) 1a = ltn12.source.file(io.open("luasocket.lua"))
2source = ltn12.source.file(io.open("luasocket", "r")) 2b = ltn12.source.file(io.open("auxiliar.lua"))
3ltn12.pump(source, sink) 3c = ltn12.source.cat(a, b)
4d = ltn12.sink.file(io.stdout)
5socket.try(ltn12.pump.all(c, d))