luasocket/test/ltn12test.lua
Diego Nehab 888496aa82 FTP low-level working.
SMTP connection oriented working.
ltn12 improved.
2004-05-25 05:27:44 +00:00

6 lines
187 B
Lua

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))