mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 04:48:21 +01:00
5b8d7dec54
Update get.lua to use the new callbacks. The old "code" module is now the "mime" module. Updated all modules that depended on it. Updated url.lua to use the new namespace scheme, and moved the escape and unescape functions that used to be in the code.lua module to it, since these are specific to urls. Updated the callback entries in the manual.
210 lines
5.6 KiB
HTML
210 lines
5.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
|
|
<head>
|
|
<title>LuaSocket: Network support for the Lua language </title>
|
|
<link rel="stylesheet" href="reference.css" type="text/css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- header ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<div class=header>
|
|
<hr>
|
|
<center>
|
|
<table summary="LuaSocket logo">
|
|
<tr><td align=center><a href="http://www.lua.org">
|
|
<img border=0 alt="LuaSocket" src="luasocket.png">
|
|
</a></td></tr>
|
|
<tr><td align=center valign=top>Network support for the Lua language
|
|
</td></tr>
|
|
</table>
|
|
<p class=bar>
|
|
<a href="home.html">home</a> ·
|
|
<a href="home.html#download">download</a> ·
|
|
<a href="introduction.html">introduction</a> ·
|
|
<a href="reference.html">reference</a>
|
|
</p>
|
|
</center>
|
|
<hr>
|
|
</div>
|
|
|
|
<!-- reference +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<h2>Reference</h2>
|
|
|
|
<!-- tcp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<table summary="TCP Index" class=index width=100%>
|
|
<colgroup> <col width="50%"> <col width="50%"> </colgroup>
|
|
<tr>
|
|
<td><ul>
|
|
<li><a href="tcp.html">TCP (socket.tcp)</a>
|
|
<ul>
|
|
<li><a href="tcp.html#accept">accept</a>
|
|
<li><a href="tcp.html#bind">bind</a>
|
|
<li><a href="tcp.html#close">close</a>
|
|
<li><a href="tcp.html#connect">connect</a>
|
|
<li><a href="tcp.html#getpeername">getpeername</a>
|
|
</ul>
|
|
</ul></td>
|
|
<td valign=top><ul>
|
|
<li><a href="tcp.html#getsockname">getsockname</a>
|
|
<li><a href="tcp.html#receive">receive</a>
|
|
<li><a href="tcp.html#send">send</a>
|
|
<li><a href="tcp.html#setoption">setoption</a>
|
|
<li><a href="tcp.html#settimeout">settimeout</a>
|
|
</ul></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<!-- udp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<table summary="UDP Index" class=index width=100%>
|
|
<colgroup> <col width="50%"> <col width="50%"> </colgroup>
|
|
<tr>
|
|
<td><ul>
|
|
<li><a href="udp.html">UDP (socket.udp)</a>
|
|
<ul>
|
|
<li><a href="udp.html#close">close</a>
|
|
<li><a href="udp.html#getpeername">getpeername</a>
|
|
<li><a href="udp.html#getsockname">getsockname</a>
|
|
<li><a href="udp.html#receive">receive</a>
|
|
<li><a href="udp.html#receivefrom">receivefrom</a>
|
|
</ul>
|
|
</ul></td>
|
|
<td><ul>
|
|
<li><a href="udp.html#send">send</a>
|
|
<li><a href="udp.html#sendto">sendto</a>
|
|
<li><a href="udp.html#setpeername">setpeername</a>
|
|
<li><a href="udp.html#setsockname">setsockname</a>
|
|
<li><a href="udp.html#setoption">setoption</a>
|
|
<li><a href="udp.html#settimeout">settimeout</a>
|
|
</ul></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<!-- http & ftp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<table summary="HTTP and FTP Index" class=index width=100%>
|
|
<colgroup> <col width="50%"> <col width="50%"> </colgroup>
|
|
<tr>
|
|
<td valign=top><ul>
|
|
<li><a href="http.html">HTTP (socket.http)</a>
|
|
<ul>
|
|
<li><a href="http.html#get">get</a>
|
|
<li><a href="http.html#post">post</a>
|
|
<li><a href="http.html#request">request</a>
|
|
<li><a href="http.html#request_cb">request_cb</a>
|
|
</ul>
|
|
</ul></td>
|
|
<td valign=top><ul>
|
|
<li><a href="ftp.html">FTP (socket.ftp)</a>
|
|
<ul>
|
|
<li><a href="ftp.html#get">get</a>
|
|
<li><a href="ftp.html#get_cb">get_cb</a>
|
|
<li><a href="ftp.html#put">put</a>
|
|
<li><a href="ftp.html#put_cb">put_cb</a>
|
|
</ul>
|
|
</ul></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<!-- http & ftp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<table summary="Streaming Index" class=index width=100%>
|
|
<colgroup> <col width="50%"> <col width="50%"> </colgroup>
|
|
<tr><td valign=top><ul>
|
|
<li><a href="stream.html">Streaming with Callbacks</a>
|
|
<ul>
|
|
<li><a href="stream.html#receive_cb">receive_cb</a>
|
|
<li><a href="stream.html#send_cb">send_cb</a>
|
|
</ul>
|
|
</ul></td></tr>
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<!-- smtp & dns ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<table summary="SMTP and DNS Index" class=index width=100%>
|
|
<colgroup> <col width="50%"> <col width="50%"> </colgroup>
|
|
<tr>
|
|
<td><ul>
|
|
<li><a href="smtp.html">SMTP (socket.smtp)</a>
|
|
<ul>
|
|
<li> <a href="smtp.html#mail">mail</a>
|
|
</ul>
|
|
</ul></td>
|
|
<td><ul>
|
|
<li><a href="dns.html">DNS services (socket.dns)</a>
|
|
<ul>
|
|
<li><a href="dns.html#toip">toip</a>
|
|
<li><a href="dns.html#tohostname">tohostname</a>
|
|
</ul>
|
|
</ul></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<!-- url & code ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<table summary="URL and Code Index" class=index width=100%>
|
|
<colgroup> <col width="50%"> <col width="50%"> </colgroup>
|
|
<tr>
|
|
<td valign=top><ul>
|
|
<li><a href="url.html">URL (socket.url) </a>
|
|
<ul>
|
|
<li> <a href="url.html#absolute">absolute</a>
|
|
<li> <a href="url.html#build">build</a>
|
|
<li> <a href="url.html#build_path">build_path</a>
|
|
<li> <a href="url.html#parse">parse</a>
|
|
<li> <a href="url.html#parse_path">parse_path</a>
|
|
</ul>
|
|
</ul></td>
|
|
<td valign=top><ul>
|
|
<li> <a href="code.html">Code (socket.code) </a>
|
|
<ul>
|
|
<li> <a href="code.html#base64">base64</a>
|
|
<li> <a href="code.html#unbase64">unbase64</a>
|
|
<li> <a href="code.html#escape">escape</a>
|
|
<li> <a href="code.html#unescape">unescape</a>
|
|
<li> <a href="code.html#hexa">hexa</a>
|
|
<li> <a href="code.html#unhexa">unhexa</a>
|
|
</ul>
|
|
</ul></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- footer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
<div class=footer>
|
|
<hr>
|
|
<center>
|
|
<p class=bar>
|
|
<a href="home.html">home</a> ·
|
|
<a href="home.html#down">download</a> ·
|
|
<a href="introduction.html">introduction</a> ·
|
|
<a href="reference.html">reference</a>
|
|
</p>
|
|
<p>
|
|
<small>
|
|
Last modified by Diego Nehab on <br>
|
|
Thu Sep 27 16:18:27 EST 2001
|
|
</small>
|
|
</p>
|
|
</center>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|