diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-02-08 10:01:01 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-02-08 10:01:01 +0000 |
commit | 8d4e240f6ae50d9b22ddc44f5e207018935da907 (patch) | |
tree | d8ca9a51dc35534592f700e42740feac20242ede /doc/ftp.html | |
parent | 5d32848674b723521e87836eafa24f5ae8f80a89 (diff) | |
download | luasocket-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.html | 12 |
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 |
68 | local ftp = require("ftp") | 68 | local 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 |
153 | local ftp = require("ftp") | 153 | local 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 |
162 | local ftp = require("ftp") | 162 | local ftp = require("socket.ftp") |
163 | local ltn12 = require("ltn12") | 163 | local ltn12 = require("ltn12") |
164 | local url = require("url") | 164 | local url = require("socket.url") |
165 | 165 | ||
166 | -- a function that returns a directory listing | 166 | -- a function that returns a directory listing |
167 | function nlst(u) | 167 | function 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 |
233 | local ftp = require("ftp") | 233 | local 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 |
244 | local ftp = require("ftp") | 244 | local ftp = require("socket.ftp") |
245 | local ltn12 = require("ltn12") | 245 | local 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", |