Bugs sent by David.
This commit is contained in:
parent
a65c599fc5
commit
72eceedc62
16 changed files with 12 additions and 21 deletions
|
@ -140,7 +140,7 @@ authentication. Defaults to "<tt>ftp:anonymous@anonymous.org</tt>";
|
|||
<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a>
|
||||
pump step function used to pass data from the
|
||||
server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function;
|
||||
<li><tt>accept</tt>: An optional function to be used instead of
|
||||
<li><tt>create</tt>: An optional function to be used instead of
|
||||
<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
|
||||
</ul>
|
||||
|
||||
|
@ -225,7 +225,7 @@ authentication. Defaults to "<tt>ftp:anonymous@anonymous.org</tt>";
|
|||
<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a>
|
||||
pump step function used to pass data from the
|
||||
server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function;
|
||||
<li><tt>accept</tt>: An optional function to be used instead of
|
||||
<li><tt>create</tt>: An optional function to be used instead of
|
||||
<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ Defaults to the LTN12 <tt>pump.step</tt> function.
|
|||
<li><tt>proxy</tt>: The URL of a proxy server to use. Defaults to no proxy;
|
||||
<li><tt>redirect</tt>: Set to <tt><b>false</b></tt> to prevent the
|
||||
function from automatically following 301 or 302 server redirect messages;
|
||||
<li><tt>accept</tt>: An optional function to be used instead of
|
||||
<li><tt>create</tt>: An optional function to be used instead of
|
||||
<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -76,9 +76,9 @@ distribution directory structure:</p>
|
|||
<pre class=example>
|
||||
<SHARE>/compat-5.1.lua
|
||||
<SHARE>/ltn12.lua
|
||||
<SHARE>/mime/init.lua
|
||||
<SHARE>/mime/init.lua (originally mime.lua)
|
||||
<LIB>/mime/core.dll
|
||||
<SHARE>/socket/init.lua
|
||||
<SHARE>/socket/init.lua (originally socket.lua)
|
||||
<LIB>/socket/core.dll
|
||||
<SHARE>/socket/http.lua
|
||||
<SHARE>/socket/tp.lua
|
||||
|
@ -88,7 +88,10 @@ distribution directory structure:</p>
|
|||
</pre>
|
||||
|
||||
<p> Naturally, on Unix systems, <tt>core.dll</tt>
|
||||
would be replaced by <tt>core.so</tt>.
|
||||
would be replaced by <tt>core.so</tt>. Notice that in the instalation,
|
||||
<tt>socket.lua</tt> becomes <tt>socket/init.lua</tt>, and the same happens
|
||||
with <tt>mime.lua</tt>, which becomes <tt>mime/init.lua</tt>.
|
||||
</p>
|
||||
|
||||
<p> In order for the interpreter to find all LuaSocket components, three
|
||||
environment variables need to be set. The first environment variable tells
|
||||
|
@ -110,7 +113,7 @@ LUA_CPATH=<LIB>/?.dll;?.dll
|
|||
</pre>
|
||||
|
||||
<p> Again, naturally, on Unix systmems the shared library extension would be
|
||||
<tt>.so</tt> instead of <tt>.dll</tt></p>
|
||||
<tt>.so</tt> instead of <tt>.dll</tt>.</p>
|
||||
|
||||
<h3>Using LuaSocket</h3>
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ local machine host name;
|
|||
<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a>
|
||||
pump step function used to pass data from the
|
||||
source to the server. Defaults to the LTN12 <tt>pump.step</tt> function;
|
||||
<li><tt>accept</tt>: An optional function to be used instead of
|
||||
<li><tt>create</tt>: An optional function to be used instead of
|
||||
<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
|
||||
</ul>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue