diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-25 05:27:44 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-25 05:27:44 +0000 |
| commit | 888496aa821cd09d925046250ea98b1512293fd5 (patch) | |
| tree | 217e2b532762a64b58c4fffcb2cba08ba2243462 /test/ltn12test.lua | |
| parent | 4fc164b8eaa0453050a0a859321c327bb2c4f776 (diff) | |
| download | luasocket-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.lua | 8 |
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 @@ | |||
| 1 | sink = ltn12.sink.file(io.open("lixo", "w")) | 1 | a = ltn12.source.file(io.open("luasocket.lua")) |
| 2 | source = ltn12.source.file(io.open("luasocket", "r")) | 2 | b = ltn12.source.file(io.open("auxiliar.lua")) |
| 3 | ltn12.pump(source, sink) | 3 | c = ltn12.source.cat(a, b) |
| 4 | d = ltn12.sink.file(io.stdout) | ||
| 5 | socket.try(ltn12.pump.all(c, d)) | ||
