From 888496aa821cd09d925046250ea98b1512293fd5 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 25 May 2004 05:27:44 +0000 Subject: FTP low-level working. SMTP connection oriented working. ltn12 improved. --- test/ltn12test.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/ltn12test.lua') 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 @@ -sink = ltn12.sink.file(io.open("lixo", "w")) -source = ltn12.source.file(io.open("luasocket", "r")) -ltn12.pump(source, sink) +a = ltn12.source.file(io.open("luasocket.lua")) +b = ltn12.source.file(io.open("auxiliar.lua")) +c = ltn12.source.cat(a, b) +d = ltn12.sink.file(io.stdout) +socket.try(ltn12.pump.all(c, d)) -- cgit v1.2.3-55-g6feb