2022-03-22 19:21:58 +01:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
2003-08-31 03:00:15 +02:00
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2004-06-21 08:07:58 +02:00
|
|
|
<meta name="description" content="LuaSocket: Index to reference manual">
|
2004-11-28 09:17:16 +01:00
|
|
|
<meta name="keywords" content="Lua, LuaSocket, Index, Manual, Network, Library,
|
2022-03-22 19:21:58 +01:00
|
|
|
Support, Manual">
|
2004-06-21 08:07:58 +02:00
|
|
|
<title>LuaSocket: Index to reference manual</title>
|
2003-08-31 03:00:15 +02:00
|
|
|
<link rel="stylesheet" href="reference.css" type="text/css">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!-- header ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
2022-03-22 19:21:58 +01:00
|
|
|
<div class="header">
|
2003-08-31 03:00:15 +02:00
|
|
|
<hr>
|
|
|
|
<center>
|
|
|
|
<table summary="LuaSocket logo">
|
2022-03-22 19:21:58 +01:00
|
|
|
<tr><td align="center"><a href="http://www.lua.org">
|
|
|
|
<img width="128" height="128" border="0" alt="LuaSocket" src="luasocket.png">
|
2003-08-31 03:00:15 +02:00
|
|
|
</a></td></tr>
|
2022-03-22 19:21:58 +01:00
|
|
|
<tr><td align="center" valign="top">Network support for the Lua language
|
2003-08-31 03:00:15 +02:00
|
|
|
</td></tr>
|
|
|
|
</table>
|
2022-03-22 19:21:58 +01:00
|
|
|
<p class="bar">
|
2009-05-27 11:31:38 +02:00
|
|
|
<a href="index.html">home</a> ·
|
|
|
|
<a href="index.html#download">download</a> ·
|
2004-12-13 07:26:01 +01:00
|
|
|
<a href="installation.html">installation</a> ·
|
2003-08-31 03:00:15 +02:00
|
|
|
<a href="introduction.html">introduction</a> ·
|
2022-03-22 19:21:58 +01:00
|
|
|
<a href="reference.html">reference</a>
|
2003-08-31 03:00:15 +02:00
|
|
|
</p>
|
|
|
|
</center>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- reference +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<h2>Reference</h2>
|
|
|
|
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="dns.html">DNS (in socket)</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2012-04-16 19:15:26 +02:00
|
|
|
<a href="dns.html#getaddrinfo">getaddrinfo</a>,
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="dns.html#gethostname">gethostname</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="dns.html#tohostname">tohostname</a>,
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="dns.html#toip">toip</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<!-- ftp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="ftp.html">FTP</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
|
|
|
<a href="ftp.html#get">get</a>,
|
2004-06-17 01:21:49 +02:00
|
|
|
<a href="ftp.html#put">put</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<!-- http +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="http.html">HTTP</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2004-05-25 08:51:43 +02:00
|
|
|
<a href="http.html#request">request</a>.
|
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<!-- ltn12 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="ltn12.html">LTN12</a>
|
2004-05-25 08:51:43 +02:00
|
|
|
<blockquote>
|
|
|
|
<a href="ltn12.html#filter">filter</a>:
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="ltn12.html#filter.chain">chain</a>,
|
|
|
|
<a href="ltn12.html#filter.cycle">cycle</a>.
|
2004-05-25 08:51:43 +02:00
|
|
|
</blockquote>
|
|
|
|
<blockquote>
|
|
|
|
<a href="ltn12.html#pump">pump</a>:
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="ltn12.html#pump.all">all</a>,
|
|
|
|
<a href="ltn12.html#pump.step">step</a>.
|
2004-05-25 08:51:43 +02:00
|
|
|
</blockquote>
|
|
|
|
<blockquote>
|
|
|
|
<a href="ltn12.html#sink">sink</a>:
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="ltn12.html#sink.chain">chain</a>,
|
|
|
|
<a href="ltn12.html#sink.error">error</a>,
|
|
|
|
<a href="ltn12.html#sink.file">file</a>,
|
|
|
|
<a href="ltn12.html#sink.null">null</a>,
|
|
|
|
<a href="ltn12.html#sink.simplify">simplify</a>,
|
|
|
|
<a href="ltn12.html#sink.table">table</a>.
|
2004-05-25 08:51:43 +02:00
|
|
|
</blockquote>
|
|
|
|
<blockquote>
|
2022-03-22 19:21:58 +01:00
|
|
|
<a href="ltn12.html#source">source</a>:
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="ltn12.html#source.cat">cat</a>,
|
|
|
|
<a href="ltn12.html#source.chain">chain</a>,
|
|
|
|
<a href="ltn12.html#source.empty">empty</a>,
|
|
|
|
<a href="ltn12.html#source.error">error</a>,
|
|
|
|
<a href="ltn12.html#source.file">file</a>,
|
|
|
|
<a href="ltn12.html#source.simplify">simplify</a>,
|
2018-06-05 07:23:39 +02:00
|
|
|
<a href="ltn12.html#source.string">string</a>,
|
|
|
|
<a href="ltn12.html#source.table">table</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<!-- mime +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="mime.html">MIME</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2004-02-04 15:29:11 +01:00
|
|
|
<a href="mime.html#high">high-level</a>:
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="mime.html#decode">decode</a>,
|
|
|
|
<a href="mime.html#encode">encode</a>,
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="mime.html#normalize">normalize</a>,
|
2004-06-17 09:00:43 +02:00
|
|
|
<a href="mime.html#stuff">stuff</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="mime.html#wrap">wrap</a>.
|
|
|
|
</blockquote>
|
|
|
|
<blockquote>
|
2004-02-04 15:29:11 +01:00
|
|
|
<a href="mime.html#low">low-level</a>:
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="mime.html#b64">b64</a>,
|
2004-06-17 09:00:43 +02:00
|
|
|
<a href="mime.html#dot">dot</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="mime.html#eol">eol</a>,
|
|
|
|
<a href="mime.html#qp">qp</a>,
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="mime.html#qpwrp">qpwrp</a>,
|
2004-06-17 09:00:43 +02:00
|
|
|
<a href="mime.html#unb64">unb64</a>,
|
|
|
|
<a href="mime.html#unqp">unqp</a>,
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="mime.html#wrp">wrp</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<!-- smtp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="smtp.html">SMTP</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2004-05-25 08:51:43 +02:00
|
|
|
<a href="smtp.html#message">message</a>,
|
|
|
|
<a href="smtp.html#send">send</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
2003-08-31 03:00:15 +02:00
|
|
|
|
2004-05-26 06:58:32 +02:00
|
|
|
<!-- socket +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="socket.html">Socket</a>
|
2004-05-26 06:58:32 +02:00
|
|
|
<blockquote>
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="socket.html#bind">bind</a>,
|
|
|
|
<a href="socket.html#connect">connect</a>,
|
2012-05-10 23:14:22 +02:00
|
|
|
<a href="socket.html#connect">connect4</a>,
|
|
|
|
<a href="socket.html#connect">connect6</a>,
|
2015-10-06 05:33:50 +02:00
|
|
|
<a href="socket.html#datagramsize">_DATAGRAMSIZE</a>,
|
2005-08-12 07:56:32 +02:00
|
|
|
<a href="socket.html#debug">_DEBUG</a>,
|
2004-05-26 06:58:32 +02:00
|
|
|
<a href="dns.html#dns">dns</a>,
|
2004-06-21 00:19:54 +02:00
|
|
|
<a href="socket.html#gettime">gettime</a>,
|
2012-04-22 18:18:45 +02:00
|
|
|
<a href="socket.html#headers.canonic">headers.canonic</a>,
|
2004-06-18 23:41:51 +02:00
|
|
|
<a href="socket.html#newtry">newtry</a>,
|
2004-05-26 06:58:32 +02:00
|
|
|
<a href="socket.html#protect">protect</a>,
|
|
|
|
<a href="socket.html#select">select</a>,
|
|
|
|
<a href="socket.html#sink">sink</a>,
|
2004-06-18 10:02:09 +02:00
|
|
|
<a href="socket.html#skip">skip</a>,
|
2004-05-26 06:58:32 +02:00
|
|
|
<a href="socket.html#sleep">sleep</a>,
|
2009-05-27 11:31:38 +02:00
|
|
|
<a href="socket.html#setsize">_SETSIZE</a>,
|
2015-10-06 05:33:50 +02:00
|
|
|
<a href="socket.html#socketinvalid">_SOCKETINVALID</a>,
|
2004-06-18 10:02:09 +02:00
|
|
|
<a href="socket.html#source">source</a>,
|
2012-04-16 19:15:26 +02:00
|
|
|
<a href="tcp.html#socket.tcp">tcp</a>,
|
2015-08-23 00:52:01 +02:00
|
|
|
<a href="tcp.html#socket.tcp4">tcp4</a>,
|
2012-04-16 19:15:26 +02:00
|
|
|
<a href="tcp.html#socket.tcp6">tcp6</a>,
|
2004-05-26 06:58:32 +02:00
|
|
|
<a href="socket.html#try">try</a>,
|
2012-04-16 19:15:26 +02:00
|
|
|
<a href="udp.html#socket.udp">udp</a>,
|
2015-08-23 00:52:01 +02:00
|
|
|
<a href="udp.html#socket.udp4">udp4</a>,
|
2012-04-16 19:15:26 +02:00
|
|
|
<a href="udp.html#socket.udp6">udp6</a>,
|
2005-08-12 07:56:32 +02:00
|
|
|
<a href="socket.html#version">_VERSION</a>.
|
2004-05-26 06:58:32 +02:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
2004-01-24 03:47:24 +01:00
|
|
|
<!-- tcp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
2003-08-31 03:00:15 +02:00
|
|
|
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="tcp.html">TCP (in socket)</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
|
|
|
<a href="tcp.html#accept">accept</a>,
|
|
|
|
<a href="tcp.html#bind">bind</a>,
|
|
|
|
<a href="tcp.html#close">close</a>,
|
|
|
|
<a href="tcp.html#connect">connect</a>,
|
2011-10-24 20:24:58 +02:00
|
|
|
<a href="tcp.html#dirty">dirty</a>,
|
|
|
|
<a href="tcp.html#getfd">getfd</a>,
|
2012-02-27 22:26:23 +01:00
|
|
|
<a href="tcp.html#getoption">getoption</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="tcp.html#getpeername">getpeername</a>,
|
|
|
|
<a href="tcp.html#getsockname">getsockname</a>,
|
2004-07-03 01:31:39 +02:00
|
|
|
<a href="tcp.html#getstats">getstats</a>,
|
2016-03-04 19:36:32 +01:00
|
|
|
<a href="tcp.html#gettimeout">gettimeout</a>,
|
2011-10-06 20:52:52 +02:00
|
|
|
<a href="tcp.html#listen">listen</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="tcp.html#receive">receive</a>,
|
|
|
|
<a href="tcp.html#send">send</a>,
|
2011-10-24 20:24:58 +02:00
|
|
|
<a href="tcp.html#setfd">setfd</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="tcp.html#setoption">setoption</a>,
|
2004-10-13 00:35:37 +02:00
|
|
|
<a href="tcp.html#setstats">setstats</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="tcp.html#settimeout">settimeout</a>,
|
|
|
|
<a href="tcp.html#shutdown">shutdown</a>.
|
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
2003-08-31 03:00:15 +02:00
|
|
|
|
2004-01-24 03:47:24 +01:00
|
|
|
<!-- udp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
2003-08-31 03:00:15 +02:00
|
|
|
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="udp.html">UDP (in socket)</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
|
|
|
<a href="udp.html#close">close</a>,
|
2012-04-16 19:15:26 +02:00
|
|
|
<a href="udp.html#getoption">getoption</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="udp.html#getpeername">getpeername</a>,
|
|
|
|
<a href="udp.html#getsockname">getsockname</a>,
|
2016-03-04 19:36:32 +01:00
|
|
|
<a href="udp.html#gettimeout">gettimeout</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="udp.html#receive">receive</a>,
|
|
|
|
<a href="udp.html#receivefrom">receivefrom</a>,
|
|
|
|
<a href="udp.html#send">send</a>,
|
|
|
|
<a href="udp.html#sendto">sendto</a>,
|
|
|
|
<a href="udp.html#setpeername">setpeername</a>,
|
|
|
|
<a href="udp.html#setsockname">setsockname</a>,
|
|
|
|
<a href="udp.html#setoption">setoption</a>,
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="udp.html#settimeout">settimeout</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<!-- url ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
|
|
|
<blockquote>
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="url.html">URL</a>
|
2004-01-24 03:47:24 +01:00
|
|
|
<blockquote>
|
|
|
|
<a href="url.html#absolute">absolute</a>,
|
|
|
|
<a href="url.html#build">build</a>,
|
|
|
|
<a href="url.html#build_path">build_path</a>,
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="url.html#escape">escape</a>,
|
2004-01-24 03:47:24 +01:00
|
|
|
<a href="url.html#parse">parse</a>,
|
|
|
|
<a href="url.html#parse_path">parse_path</a>,
|
2004-06-15 08:24:00 +02:00
|
|
|
<a href="url.html#unescape">unescape</a>.
|
2004-01-24 03:47:24 +01:00
|
|
|
</blockquote>
|
|
|
|
</blockquote>
|
2003-08-31 03:00:15 +02:00
|
|
|
|
|
|
|
<!-- footer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
|
|
2022-03-22 19:21:58 +01:00
|
|
|
<div class="footer">
|
2003-08-31 03:00:15 +02:00
|
|
|
<hr>
|
|
|
|
<center>
|
2022-03-22 19:21:58 +01:00
|
|
|
<p class="bar">
|
2009-05-27 11:31:38 +02:00
|
|
|
<a href="index.html">home</a> ·
|
|
|
|
<a href="index.html#down">download</a> ·
|
2004-12-13 07:26:01 +01:00
|
|
|
<a href="installation.html">installation</a> ·
|
2003-08-31 03:00:15 +02:00
|
|
|
<a href="introduction.html">introduction</a> ·
|
|
|
|
<a href="reference.html">reference</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<small>
|
|
|
|
Last modified by Diego Nehab on <br>
|
2006-04-20 06:27:13 +02:00
|
|
|
Thu Apr 20 00:25:47 EDT 2006
|
2003-08-31 03:00:15 +02:00
|
|
|
</small>
|
|
|
|
</p>
|
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|