mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
FTP low-level working.
SMTP connection oriented working. ltn12 improved.
This commit is contained in:
@ -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))
|
||||
|
@ -49,5 +49,6 @@ print(socket.smtp.send {
|
||||
rcpt = "<diego@cs.princeton.edu>",
|
||||
from = "<diego@cs.princeton.edu>",
|
||||
source = socket.smtp.message(mesgt),
|
||||
server = "mail.cs.princeton.edu"
|
||||
server = "mail.iis.com.br",
|
||||
port = 7
|
||||
})
|
||||
|
Reference in New Issue
Block a user