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 | |
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')
-rw-r--r-- | test/ltn12test.lua | 8 | ||||
-rw-r--r-- | test/testmesg.lua | 3 |
2 files changed, 7 insertions, 4 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)) | ||
diff --git a/test/testmesg.lua b/test/testmesg.lua index 8b33133..796977e 100644 --- a/test/testmesg.lua +++ b/test/testmesg.lua | |||
@@ -49,5 +49,6 @@ print(socket.smtp.send { | |||
49 | rcpt = "<diego@cs.princeton.edu>", | 49 | rcpt = "<diego@cs.princeton.edu>", |
50 | from = "<diego@cs.princeton.edu>", | 50 | from = "<diego@cs.princeton.edu>", |
51 | source = socket.smtp.message(mesgt), | 51 | source = socket.smtp.message(mesgt), |
52 | server = "mail.cs.princeton.edu" | 52 | server = "mail.iis.com.br", |
53 | port = 7 | ||
53 | }) | 54 | }) |