aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/http.html13
-rw-r--r--doc/index.html7
-rw-r--r--doc/installation.html8
-rw-r--r--doc/tcp.html1
4 files changed, 20 insertions, 9 deletions
diff --git a/doc/http.html b/doc/http.html
index 096ab2b..9d80c23 100644
--- a/doc/http.html
+++ b/doc/http.html
@@ -209,11 +209,16 @@ Here are a few examples with the simple interface:
209 209
210<pre class=example> 210<pre class=example>
211-- load the http module 211-- load the http module
212http = require("socket.http") 212local io = require("io")
213local http = require("socket.http")
214local ltn12 = require("ltn12")
213 215
214-- connect to server "www.tecgraf.puc-rio.br" and retrieves this manual 216-- connect to server "www.cs.princeton.edu" and retrieves this manual
215-- file from "/luasocket/http.html" 217-- file from "~diego/professional/luasocket/http.html" and print it to stdout
216b = http.request("http://www.tecgraf.puc-rio.br/luasocket/http.html") 218http.request{
219 url = "http://www.cs.princeton.edu/~diego/professional/luasocket/http.html",
220 sink = ltn12.sink.file(io.stdout)
221}
217 222
218-- connect to server "www.example.com" and tries to retrieve 223-- connect to server "www.example.com" and tries to retrieve
219-- "/private/index.html". Fails because authentication is needed. 224-- "/private/index.html". Fails because authentication is needed.
diff --git a/doc/index.html b/doc/index.html
index 3d5acb3..7ac0d4c 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -165,6 +165,13 @@ support.
165</p> 165</p>
166 166
167<ul> 167<ul>
168<li> New: sample module <tt>dispatch.lua</tt> implements a
169coroutine based dispatcher;
170<li> New: sample <tt>check-links.lua</tt> works
171both in blocking and non-blocking mode using coroutines
172(using the new dispatcher);
173<li> New: sample <tt>forward.lua</tt> implements a coroutine
174based forward server (using the new dispatcher);
168<li> Improved: <tt>tcp:send(data, i, j)</tt> to return <tt>(i+sent-1)</tt>. This is great for non-blocking I/O, but might break some code; 175<li> Improved: <tt>tcp:send(data, i, j)</tt> to return <tt>(i+sent-1)</tt>. This is great for non-blocking I/O, but might break some code;
169<li> Improved: HTTP, SMTP, and FTP functions to accept a new field 176<li> Improved: HTTP, SMTP, and FTP functions to accept a new field
170<tt>create</tt> that overrides the function used to create socket objects; 177<tt>create</tt> that overrides the function used to create socket objects;
diff --git a/doc/installation.html b/doc/installation.html
index 1b82ed3..4086f41 100644
--- a/doc/installation.html
+++ b/doc/installation.html
@@ -76,9 +76,9 @@ distribution directory structure:</p>
76<pre class=example> 76<pre class=example>
77&lt;SHARE&gt;/compat-5.1.lua 77&lt;SHARE&gt;/compat-5.1.lua
78&lt;SHARE&gt;/ltn12.lua 78&lt;SHARE&gt;/ltn12.lua
79&lt;SHARE&gt;/mime/init.lua (originally mime.lua) 79&lt;SHARE&gt;/mime/mime.lua
80&lt;LIB&gt;/mime/core.dll 80&lt;LIB&gt;/mime/core.dll
81&lt;SHARE&gt;/socket/init.lua (originally socket.lua) 81&lt;SHARE&gt;/socket/socket.lua
82&lt;LIB&gt;/socket/core.dll 82&lt;LIB&gt;/socket/core.dll
83&lt;SHARE&gt;/socket/http.lua 83&lt;SHARE&gt;/socket/http.lua
84&lt;SHARE&gt;/socket/tp.lua 84&lt;SHARE&gt;/socket/tp.lua
@@ -88,9 +88,7 @@ distribution directory structure:</p>
88</pre> 88</pre>
89 89
90<p> Naturally, on Unix systems, <tt>core.dll</tt> 90<p> Naturally, on Unix systems, <tt>core.dll</tt>
91would be replaced by <tt>core.so</tt>. Notice that in the instalation, 91would be replaced by <tt>core.so</tt>.
92<tt>socket.lua</tt> becomes <tt>socket/init.lua</tt>, and the same happens
93with <tt>mime.lua</tt>, which becomes <tt>mime/init.lua</tt>.
94</p> 92</p>
95 93
96<p> In order for the interpreter to find all LuaSocket components, three 94<p> In order for the interpreter to find all LuaSocket components, three
diff --git a/doc/tcp.html b/doc/tcp.html
index 5c810de..2c687c0 100644
--- a/doc/tcp.html
+++ b/doc/tcp.html
@@ -446,6 +446,7 @@ The method returns 1 in case of success and <tt><b>nil</b></tt> otherwise.
446<!-- settimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 446<!-- settimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
447 447
448<p class=name id=settimeout> 448<p class=name id=settimeout>
449master:<b>settimeout(</b>value [, mode]<b>)</b><br>
449client:<b>settimeout(</b>value [, mode]<b>)</b><br> 450client:<b>settimeout(</b>value [, mode]<b>)</b><br>
450server:<b>settimeout(</b>value [, mode]<b>)</b> 451server:<b>settimeout(</b>value [, mode]<b>)</b>
451</p> 452</p>