From 0a4c1534f39511894728da193ab8225ad6022de9 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Wed, 16 Jun 2004 04:28:21 +0000 Subject: [PATCH] Still work to do in the manual... --- doc/dns.html | 9 +--- doc/ftp.html | 59 +++++++++++++----------- doc/http.html | 29 +++++++----- doc/index.html | 101 ++++++++++++++++++++++++++---------------- doc/introduction.html | 77 +++++++++++++++++++------------- doc/ltn12.html | 41 +++++++++-------- doc/mime.html | 15 +++++-- doc/reference.html | 1 - doc/smtp.html | 9 +++- doc/socket.html | 11 ++--- etc/b64.lua | 6 +++ etc/tftp.lua | 2 +- src/ltn12.lua | 8 ++++ src/smtp.lua | 33 ++++++++++++-- test/mimetest.lua | 2 +- 15 files changed, 257 insertions(+), 146 deletions(-) diff --git a/doc/dns.html b/doc/dns.html index 226a604..fa4c230 100644 --- a/doc/dns.html +++ b/doc/dns.html @@ -36,7 +36,7 @@

DNS

-Name resolution function return all information returned by the +Name resolution functions return all information obtained from the resolver in a table of the form:

@@ -59,14 +59,9 @@ socket.dns.gethostname()

-Returns the standard host name for the machine. +Returns the standard host name for the machine as a string.

-

-The function returns a string with the host name. -

- -

diff --git a/doc/ftp.html b/doc/ftp.html index e834f07..9fda02b 100644 --- a/doc/ftp.html +++ b/doc/ftp.html @@ -35,12 +35,33 @@

FTP (File Transfer Protocol) is a protocol used to transfer files -between hosts. The module ftp.lua offers simple FTP support. -Applications can easily download and upload files. -The implementation conforms to +between hosts. The ftp namespace offers thorough support +to FTP, under a simple interface. The implementation conforms to RFC 959.

+

+High level functions are provided supporting the most common operations. +These high level functions are implemented on top of a lower level +interface. Using the low-level interface, users can easily create their +own functions to access any operation supported by the FTP +protocol. For that, check the implementation. +

+ +

+To really benefit from this module, a good understanding of + +LTN012, Filters sources and sinks is necessary. +

+ +

To obtain the ftp namespace, run: +

+ +
+-- loads the FTP module and any libraries it requires
+local ftp = require("ftp")
+
+

URLs MUST conform to RFC @@ -53,21 +74,7 @@ URLs MUST conform to

-High level functions are provided supporting the most common operations. -These high level functions are implemented on top of a lower level -interface. By using the low-level interface, users can easily create their -own functions to access any operation supported by the FTP -protocol. For that, check the implementation. -

- -

-To use some of the functions in this module, a good understanding of - -LTN012, Filters sources and sinks is necessary. -

- -

-The following constants can be set to control the default behaviour of +The following constants in the namespace can be set to control the default behavior of the FTP module:

@@ -78,6 +85,7 @@ the FTP module:
  • USER: default anonymous user; +

    @@ -116,7 +124,7 @@ optional arguments are the following: authentication. Defaults to "ftp:anonymous@anonymous.org";

  • command: The FTP command used to obtain data. Defaults to "retr", but see example below; -
  • port: The port to contacct the server at. Defaults to 21; +
  • port: The port to used for the control connection. Defaults to 21;
  • type: The transfer mode. Can take values "i" or "a". Defaults to whatever is the server default;
  • step: LTN12 pump step function used to pass data from the @@ -192,9 +200,9 @@ optional arguments are the following: