aboutsummaryrefslogtreecommitdiff
path: root/doc/ftp.html
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-02-08 10:01:01 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-02-08 10:01:01 +0000
commit8d4e240f6ae50d9b22ddc44f5e207018935da907 (patch)
treed8ca9a51dc35534592f700e42740feac20242ede /doc/ftp.html
parent5d32848674b723521e87836eafa24f5ae8f80a89 (diff)
downloadluasocket-8d4e240f6ae50d9b22ddc44f5e207018935da907.tar.gz
luasocket-8d4e240f6ae50d9b22ddc44f5e207018935da907.tar.bz2
luasocket-8d4e240f6ae50d9b22ddc44f5e207018935da907.zip
Forward server working on Mac OS X...
Diffstat (limited to 'doc/ftp.html')
-rw-r--r--doc/ftp.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/ftp.html b/doc/ftp.html
index 454d417..7860c27 100644
--- a/doc/ftp.html
+++ b/doc/ftp.html
@@ -65,7 +65,7 @@ To obtain the <tt>ftp</tt> namespace, run:
65 65
66<pre class=example> 66<pre class=example>
67-- loads the FTP module and any libraries it requires 67-- loads the FTP module and any libraries it requires
68local ftp = require("ftp") 68local ftp = require("socket.ftp")
69</pre> 69</pre>
70 70
71<p> 71<p>
@@ -150,7 +150,7 @@ error.
150 150
151<pre class=example> 151<pre class=example>
152-- load the ftp support 152-- load the ftp support
153local ftp = require("ftp") 153local ftp = require("socket.ftp")
154 154
155-- Log as user "anonymous" on server "ftp.tecgraf.puc-rio.br", 155-- Log as user "anonymous" on server "ftp.tecgraf.puc-rio.br",
156-- and get file "lua.tar.gz" from directory "pub/lua" as binary. 156-- and get file "lua.tar.gz" from directory "pub/lua" as binary.
@@ -159,9 +159,9 @@ f, e = ftp.get("ftp://ftp.tecgraf.puc-rio.br/pub/lua/lua.tar.gz;type=i")
159 159
160<pre class=example> 160<pre class=example>
161-- load needed modules 161-- load needed modules
162local ftp = require("ftp") 162local ftp = require("socket.ftp")
163local ltn12 = require("ltn12") 163local ltn12 = require("ltn12")
164local url = require("url") 164local url = require("socket.url")
165 165
166-- a function that returns a directory listing 166-- a function that returns a directory listing
167function nlst(u) 167function nlst(u)
@@ -230,7 +230,7 @@ message describing the reason for failure.
230 230
231<pre class=example> 231<pre class=example>
232-- load the ftp support 232-- load the ftp support
233local ftp = require("ftp") 233local ftp = require("socket.ftp")
234 234
235-- Log as user "fulano" on server "ftp.example.com", 235-- Log as user "fulano" on server "ftp.example.com",
236-- using password "silva", and store a file "README" with contents 236-- using password "silva", and store a file "README" with contents
@@ -241,7 +241,7 @@ f, e = ftp.put("ftp://fulano:silva@ftp.example.com/README",
241 241
242<pre class=example> 242<pre class=example>
243-- load the ftp support 243-- load the ftp support
244local ftp = require("ftp") 244local ftp = require("socket.ftp")
245local ltn12 = require("ltn12") 245local ltn12 = require("ltn12")
246 246
247-- Log as user "fulano" on server "ftp.example.com", 247-- Log as user "fulano" on server "ftp.example.com",