aboutsummaryrefslogtreecommitdiff
path: root/doc/index.html
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-29 06:55:47 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-29 06:55:47 +0000
commit4e5ad6d5ee9e72ddf6550a6795c18039b265e501 (patch)
tree0feae12e5053cde90e3cc419de7cacc56851b459 /doc/index.html
parent6abfbc742b52ef2f94bc5120781d346200535f63 (diff)
downloadluasocket-4e5ad6d5ee9e72ddf6550a6795c18039b265e501.tar.gz
luasocket-4e5ad6d5ee9e72ddf6550a6795c18039b265e501.tar.bz2
luasocket-4e5ad6d5ee9e72ddf6550a6795c18039b265e501.zip
Bug in poll.
Debug garbage in compat-5.1.c. Improvements to the user manual.
Diffstat (limited to 'doc/index.html')
-rw-r--r--doc/index.html38
1 files changed, 18 insertions, 20 deletions
diff --git a/doc/index.html b/doc/index.html
index 7141931..727066e 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -47,22 +47,20 @@ functionality commonly needed by applications that deal with the Internet.
47 47
48<p> 48<p>
49The core support has been implemented so that it is both efficient and 49The core support has been implemented so that it is both efficient and
50simple to use. The core can be used by any Lua application once it has 50simple to use. It is available to any Lua application once it has been
51been properly initialized by the interpreter running the 51properly initialized by the interpreter in use. The code has been tested
52Lua application. The code has been tested and runs well on several Windows 52and runs well on several Windows and Unix platforms. </p>
53and Unix platforms.
54</p>
55 53
56<p> 54<p>
57The most used modules implement the 55Among the support modules, the most commonly used implement the
58<a href=smtp.html>SMTP</a> 56<a href=smtp.html>SMTP</a>
59(sending e-mails), 57(sending e-mails),
60<a href=http.html>HTTP</a> 58<a href=http.html>HTTP</a>
61(WWW access) and 59(WWW access) and
62<a href=ftp.html>FTP</a> 60<a href=ftp.html>FTP</a>
63(uploading and downloading files) client 61(uploading and downloading files) client
64protocols. These provide a very natural and generic interface to the e 62protocols. These provide a very natural and generic interface to the
65functionality covered by the protocols. 63functionality defined by each protocol.
66In addition, you will find that the 64In addition, you will find that the
67<a href=mime.html>MIME</a> (common encodings), 65<a href=mime.html>MIME</a> (common encodings),
68<a href=url.html>URL</a> 66<a href=url.html>URL</a>
@@ -107,12 +105,12 @@ The library can be downloaded in source code from the following links:
107 105
108<p> 106<p>
109Besides the full C and Lua source code for the library, the distribution 107Besides the full C and Lua source code for the library, the distribution
110contains several examples, this user's manual and the test procedures. 108contains several examples, this user's manual and basic test procedures.
111</p> 109</p>
112 110
113<p> 111<p>
114I am also providing PC Win32 binaries for those that want to give 112I am also providing PC Win32 binaries for those that want to give
115LuaSocket a quick try: 113LuaSocket a try (Those on Unix or Mac OS X can just type <tt>make</tt>):
116</p> 114</p>
117 115
118<blockquote> 116<blockquote>
@@ -126,12 +124,12 @@ The quick and dirty way to use these binaries is to unpack everything into a
126directory, say <tt>c:\luasocket</tt> (include all Lua files from the 124directory, say <tt>c:\luasocket</tt> (include all Lua files from the
127LuaSocket distrbitution in the same directory too!). 125LuaSocket distrbitution in the same directory too!).
128Then set <tt>LUA_INIT</tt> to load the <tt>compat-5.1.lua</tt> and set 126Then set <tt>LUA_INIT</tt> to load the <tt>compat-5.1.lua</tt> and set
129<tt>LUA_PATH</tt> and <tt>LUA_CPATH</tt> to look for files in that 127<tt>LUA_PATH</tt> and <tt>LUA_CPATH</tt> to look for files in the current
130directory: 128directory:
131</p> 129</p>
132 130
133<pre class=example> 131<pre class=example>
134c:\luasocket\&gt; set LUA_INIT=@compat-5.1.lua 132c:\luasocket\&gt; set LUA_INIT=@c:\luasocket\compat-5.1.lua
135c:\luasocket\&gt; set LUA_CPATH=?.dll 133c:\luasocket\&gt; set LUA_CPATH=?.dll
136c:\luasocket\&gt; set LUA_PATH=?.lua 134c:\luasocket\&gt; set LUA_PATH=?.lua
137</pre> 135</pre>
@@ -147,12 +145,12 @@ c:\luasocket\&gt; lua
147Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio 145Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio
148&gt; http = require"http" 146&gt; http = require"http"
149&gt; print(http.request"http://www.tecgraf.puc-rio.br/luasocket/") 147&gt; print(http.request"http://www.tecgraf.puc-rio.br/luasocket/")
150--&gt; this gets dumped to terminal 148--&gt; the source to this webpage gets dumped to terminal
151</pre> 149</pre>
152 150
153<p> Take a look at the <a href=instalation.html>installation</a> section of 151<p> When you are done playing, take a look at the
154the manual to find out how to properly install the library after you are 152<a href=instalation.html>installation</a> section of the manual to find out
155done playing with it. </p> 153how to properly install the library. </p>
156 154
157<!-- thanks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 155<!-- thanks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
158 156
@@ -175,7 +173,7 @@ has been helping a lot too! Thanks to you all!
175 173
176<p> 174<p>
177The big change for the 2.0 (beta3) release was the adoption of the Lua 5.1 175The big change for the 2.0 (beta3) release was the adoption of the Lua 5.1
178package proposal. There were several bug fixes too (a beta is a 176package proposal. Naturally, there were a few bug fixes (a beta is a
179beta, is a beta). 177beta, is a beta).
180</p> 178</p>
181 179
@@ -195,7 +193,7 @@ beta, is a beta).
195<li> Fixed <tt>udp:sendto</tt> to call <tt>sock_sendto</tt> instead of 193<li> Fixed <tt>udp:sendto</tt> to call <tt>sock_sendto</tt> instead of
196 <tt>sock_send</tt>; 194 <tt>sock_send</tt>;
197<li> <tt>close</tt> wasn't returning 1! 195<li> <tt>close</tt> wasn't returning 1!
198<li> <tt>socket.gettime</tt> returns time since Unix Epoch 1/1/1970 (UTC) 196<li> <tt>socket.gettime</tt> returns time since Unix Epoch 1/1/1970 (UTC);
199<li> <tt>socket.sleep</tt> is robust to interrupts; 197<li> <tt>socket.sleep</tt> is robust to interrupts;
200<li> <tt>socket.select</tt> wasn't calling <tt>tm_markstart</tt>; 198<li> <tt>socket.select</tt> wasn't calling <tt>tm_markstart</tt>;
201<li> <tt>http.PROXY</tt> wasn't working. 199<li> <tt>http.PROXY</tt> wasn't working.
@@ -206,8 +204,8 @@ beta, is a beta).
206<h3 id=incompatible>Incompatibilities with previous versions</h3> 204<h3 id=incompatible>Incompatibilities with previous versions</h3>
207 205
208<ul> 206<ul>
209<li> Namespaces are hierarchical again. This means that whoever called 207<li> Namespaces are hierarchical again. This means that whoever used to
210<tt>require("url")</tt> should update their code to 208call <tt>require("url")</tt> should update their code to
211<tt>require("socket.url")</tt>. 209<tt>require("socket.url")</tt>.
212</ul> 210</ul>
213 211