diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luasocket')
171 files changed, 0 insertions, 31692 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/LICENSE b/Build/source/texk/web2c/luatexdir/luasocket/LICENSE deleted file mode 100644 index b63545107ef..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -LuaSocket 3.0 license -Copyright © 2004-2013 Diego Nehab - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/Build/source/texk/web2c/luatexdir/luasocket/Lua51.props b/Build/source/texk/web2c/luatexdir/luasocket/Lua51.props deleted file mode 100644 index 1bd62565389..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/Lua51.props +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ImportGroup Label="PropertySheets" />
- <PropertyGroup Label="UserMacros">
- <LUABIN_PATH>..\build\vc12\bin\lua\5.1\</LUABIN_PATH>
- <LUALIB_PATH>..\build\vc12\bin\lua\5.1\</LUALIB_PATH>
- <LUAINC_PATH>..\build\vc12\include\lua\5.1\</LUAINC_PATH>
- <LUALIB>lua51.lib</LUALIB>
- </PropertyGroup>
- <PropertyGroup>
- <_PropertySheetDisplayName>Lua51</_PropertySheetDisplayName>
- </PropertyGroup>
- <ItemDefinitionGroup />
- <ItemGroup>
- <BuildMacro Include="LUALIB_PATH">
- <Value>$(LUALIB_PATH)</Value>
- </BuildMacro>
- <BuildMacro Include="LUABIN_PATH">
- <Value>$(LUABIN_PATH)</Value>
- </BuildMacro>
- <BuildMacro Include="LUAINC_PATH">
- <Value>$(LUAINC_PATH)</Value>
- </BuildMacro>
- <BuildMacro Include="LUALIB">
- <Value>$(LUALIB)</Value>
- </BuildMacro>
- </ItemGroup>
-</Project>
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/Lua52.props b/Build/source/texk/web2c/luatexdir/luasocket/Lua52.props deleted file mode 100644 index 01afcfa7c4b..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/Lua52.props +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ImportGroup Label="PropertySheets" />
- <PropertyGroup Label="UserMacros">
- <LUABIN_PATH>..\build\vc12\bin\lua\5.2\</LUABIN_PATH>
- <LUALIB_PATH>..\build\vc12\bin\lua\5.2\</LUALIB_PATH>
- <LUAINC_PATH>..\build\vc12\include\lua\5.2\</LUAINC_PATH>
- <LUALIB>lua52.lib</LUALIB>
- </PropertyGroup>
- <PropertyGroup>
- <_PropertySheetDisplayName>Lua52</_PropertySheetDisplayName>
- </PropertyGroup>
- <ItemDefinitionGroup />
- <ItemGroup>
- <BuildMacro Include="LUALIB_PATH">
- <Value>$(LUALIB_PATH)</Value>
- </BuildMacro>
- <BuildMacro Include="LUABIN_PATH">
- <Value>$(LUABIN_PATH)</Value>
- </BuildMacro>
- <BuildMacro Include="LUAINC_PATH">
- <Value>$(LUAINC_PATH)</Value>
- </BuildMacro>
- <BuildMacro Include="LUALIB">
- <Value>$(LUALIB)</Value>
- </BuildMacro>
- </ItemGroup>
-</Project>
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/NEW b/Build/source/texk/web2c/luatexdir/luasocket/NEW deleted file mode 100644 index 0bff64c1df3..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/NEW +++ /dev/null @@ -1,44 +0,0 @@ -What's New - -Main changes for LuaSocket 3.0-rc1 are IPv6 support and Lua 5.2 compatibility. - - * Added: Compatible with Lua 5.2 - - Note that unless you define LUA_COMPAT_MODULE, package - tables will not be exported as globals! - * Added: IPv6 support; - - Socket.connect and socket.bind support IPv6 addresses; - - Getpeername and getsockname support IPv6 addresses, and - return the socket family as a third value; - - URL module updated to support IPv6 host names; - - New socket.tcp6 and socket.udp6 functions; - - New socket.dns.getaddrinfo and socket.dns.getnameinfo functions; - * Added: getoption method; - * Fixed: url.unescape was returning additional values; - * Fixed: mime.qp, mime.unqp, mime.b64, and mime.unb64 could - mistaking their own stack slots for functions arguments; - * Fixed: Receiving zero-length datagram is now possible; - * Improved: Hidden all internal library symbols; - * Improved: Better error messages; - * Improved: Better documentation of socket options. - * Fixed: manual sample of HTTP authentication now uses correct - "authorization" header (Alexandre Ittner); - * Fixed: failure on bind() was destroying the socket (Sam Roberts); - * Fixed: receive() returns immediatelly if prefix can satisfy - bytes requested (M Joonas Pihlaja); - * Fixed: multicast didn't work on Windows, or anywhere - else for that matter (Herbert Leuwer, Adrian Sietsma); - * Fixed: select() now reports an error when called with more - sockets than FD_SETSIZE (Lorenzo Leonini); - * Fixed: manual links to home.html changed to index.html (Robert Hahn); - * Fixed: mime.unb64() would return an empty string on results that started - with a null character (Robert Raschke); - * Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); - * Fixed: calling sleep() with negative numbers could - block forever, wasting CPU. Now it returns immediately (MPB); - * Improved: FTP commands are now sent in upper case to - help buggy servers (Anders Eurenius); - * Improved: known headers now sent in canonic - capitalization to help buggy servers (Joseph Stewart); - * Improved: Clarified tcp:receive() in the manual (MPB); - * Improved: Decent makefiles (LHF). - * Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). diff --git a/Build/source/texk/web2c/luatexdir/luasocket/README b/Build/source/texk/web2c/luatexdir/luasocket/README deleted file mode 100644 index cd8ee59d14f..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/README +++ /dev/null @@ -1,11 +0,0 @@ -This is the LuaSocket 3.0-rc1. It has been tested on Windows 7, Mac OS X, -and Linux. - -Please use the project page at GitHub - - https://github.com/diegonehab/luasocket - -to file bug reports or propose changes. - -Have fun, -Diego Nehab. diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/dns.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/dns.html deleted file mode 100644 index c4a0472e23e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/dns.html +++ /dev/null @@ -1,183 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: DNS support"> -<meta name="keywords" content="Lua, LuaSocket, DNS, Network, Library, Support"> -<title>LuaSocket: DNS support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- dns ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=dns>DNS</h2> - -<p> -IPv4 name resolution functions -<a href=#toip><tt>dns.toip</tt></a> -and -<a href=#tohostname><tt>dns.tohostname</tt></a> -return <em>all</em> information obtained from -the resolver in a table of the form: -</p> - -<blockquote><tt> -resolved4 = {<br> - name = <i>canonic-name</i>,<br> - alias = <i>alias-list</i>,<br> - ip = <i>ip-address-list</i><br> -} -</tt> </blockquote> - -<p> -Note that the <tt>alias</tt> list can be empty. -</p> - -<p> -The more general name resolution function -<a href=#getaddrinfo><tt>dns.getaddrinfo</tt></a>, which -supports both IPv6 and IPv4, -returns <em>all</em> information obtained from -the resolver in a table of the form: -</p> - -<blockquote><tt> -resolved6 = {<br> - [1] = {<br> - family = <i>family-name-1</i>,<br> - addr = <i>address-1</i><br> - },<br> - ...<br> - [n] = {<br> - family = <i>family-name-n</i>,<br> - addr = <i>address-n</i><br> - }<br> -} -</tt> </blockquote> - -<p> -Here, <tt>family</tt> contains the string <tt>"inet"</tt> for IPv4 -addresses, and <tt>"inet6"</tt> for IPv6 addresses. -</p> - -<!-- getaddrinfo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=getaddrinfo> -socket.dns.<b>getaddrinfo(</b>address<b>)</b> -</p> - -<p class=description> -Converts from host name to address. -</p> - -<p class=parameters> -<tt>Address</tt> can be an IPv4 or IPv6 address or host name. -</p> - -<p class=return> -The function returns a table with all information returned by -the resolver. In case of error, the function returns <b><tt>nil</tt></b> -followed by an error message. -</p> - -<!-- gethostname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=gethostname> -socket.dns.<b>gethostname()</b> -</p> - -<p class=description> -Returns the standard host name for the machine as a string. -</p> - -<!-- tohostname +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=tohostname> -socket.dns.<b>tohostname(</b>address<b>)</b> -</p> - -<p class=description> -Converts from IPv4 address to host name. -</p> - -<p class=parameters> -<tt>Address</tt> can be an IP address or host name. -</p> - -<p class=return> -The function returns a string with the canonic host name of the given -<tt>address</tt>, followed by a table with all information returned by -the resolver. In case of error, the function returns <b><tt>nil</tt></b> -followed by an error message. -</p> - -<!-- toip +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=toip> -socket.dns.<b>toip(</b>address<b>)</b> -</p> - -<p class=description> -Converts from host name to IPv4 address. -</p> - -<p class=parameters> -<tt>Address</tt> can be an IP address or host name. -</p> - -<p class=return> -Returns a string with the first IP address found for <tt>address</tt>, -followed by a table with all information returned by the resolver. -In case of error, the function returns <b><tt>nil</tt></b> followed by an error -message. -</p> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:07 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/ftp.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/ftp.html deleted file mode 100644 index 091c88f7838..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/ftp.html +++ /dev/null @@ -1,288 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: FTP support"> -<meta name="keywords" content="Lua, LuaSocket, FTP, Network, Library, Support"> -<title>LuaSocket: FTP support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- ftp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=ftp>FTP</h2> - -<p> -FTP (File Transfer Protocol) is a protocol used to transfer files -between hosts. The <tt>ftp</tt> namespace offers thorough support -to FTP, under a simple interface. The implementation conforms to -<a href="http://www.ietf.org/rfc/rfc959.txt">RFC 959</a>. -</p> - -<p> -High level functions are provided supporting the most common operations. -These high level functions are implemented on top of a lower level -interface. Using the low-level interface, users can easily create their -own functions to access <em>any</em> operation supported by the FTP -protocol. For that, check the implementation. -</p> - -<p> -To really benefit from this module, a good understanding of -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks"> -LTN012, Filters sources and sinks</a> is necessary. -</p> - -<p> -To obtain the <tt>ftp</tt> namespace, run: -</p> - -<pre class=example> --- loads the FTP module and any libraries it requires -local ftp = require("socket.ftp") -</pre> - -<p> -URLs MUST conform to -<a href="http://www.ietf.org/rfc/rfc1738.txt">RFC 1738</a>, -that is, an URL is a string in the form: -</p> - -<blockquote> -<tt> -[ftp://][<user>[:<password>]@]<host>[:<port>][/<path>][<i>type</i>=a|i]</tt> -</blockquote> - -<p> -The following constants in the namespace can be set to control the default behavior of -the FTP module: -</p> - -<ul> -<li> <tt>PASSWORD</tt>: default anonymous password. -<li> <tt>TIMEOUT</tt>: sets the timeout for all I/O operations; -<li> <tt>USER</tt>: default anonymous user; -</ul> - - -<!-- ftp.get ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=get> -ftp.<b>get(</b>url<b>)</b><br> -ftp.<b>get{</b><br> - host = <i>string</i>,<br> - sink = <i>LTN12 sink</i>,<br> - argument <i>or</i> path = <i>string</i>,<br> - [user = <i>string</i>,]<br> - [password = <i>string</i>]<br> - [command = <i>string</i>,]<br> - [port = <i>number</i>,]<br> - [type = <i>string</i>,]<br> - [step = <i>LTN12 pump step</i>,]<br> - [create = <i>function</i>]<br> -<b>}</b> -</p> - -<p class=description> -The <tt>get</tt> function has two forms. The simple form has fixed -functionality: it downloads the contents of a URL and returns it as a -string. The generic form allows a <em>lot</em> more control, as explained -below. -</p> - -<p class=parameters> -If the argument of the <tt>get</tt> function is a table, the function -expects at least the fields <tt>host</tt>, <tt>sink</tt>, and one of -<tt>argument</tt> or <tt>path</tt> (<tt>argument</tt> takes -precedence). <tt>Host</tt> is the server to connect to. <tt>Sink</tt> is -the <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -sink that will receive the downloaded data. <tt>Argument</tt> or -<tt>path</tt> give the target path to the resource in the server. The -optional arguments are the following: -</p> -<ul> -<li><tt>user</tt>, <tt>password</tt>: User name and password used for -authentication. Defaults to "<tt>ftp:anonymous@anonymous.org</tt>"; -<li><tt>command</tt>: The FTP command used to obtain data. Defaults to -"<tt>retr</tt>", but see example below; -<li><tt>port</tt>: The port to used for the control connection. Defaults to 21; -<li><tt>type</tt>: The transfer mode. Can take values "<tt>i</tt>" or -"<tt>a</tt>". Defaults to whatever is the server default; -<li><tt>step</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>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> - -<p class=return> -If successful, the simple version returns the URL contents as a -string, and the generic function returns 1. In case of error, both -functions return <b><tt>nil</tt></b> and an error message describing the -error. -</p> - -<pre class=example> --- load the ftp support -local ftp = require("socket.ftp") - --- Log as user "anonymous" on server "ftp.tecgraf.puc-rio.br", --- and get file "lua.tar.gz" from directory "pub/lua" as binary. -f, e = ftp.get("ftp://ftp.tecgraf.puc-rio.br/pub/lua/lua.tar.gz;type=i") -</pre> - -<pre class=example> --- load needed modules -local ftp = require("socket.ftp") -local ltn12 = require("ltn12") -local url = require("socket.url") - --- a function that returns a directory listing -function nlst(u) - local t = {} - local p = url.parse(u) - p.command = "nlst" - p.sink = ltn12.sink.table(t) - local r, e = ftp.get(p) - return r and table.concat(t), e -end -</pre> - -<!-- put ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=put> -ftp.<b>put(</b>url, content<b>)</b><br> -ftp.<b>put{</b><br> - host = <i>string</i>,<br> - source = <i>LTN12 sink</i>,<br> - argument <i>or</i> path = <i>string</i>,<br> - [user = <i>string</i>,]<br> - [password = <i>string</i>]<br> - [command = <i>string</i>,]<br> - [port = <i>number</i>,]<br> - [type = <i>string</i>,]<br> - [step = <i>LTN12 pump step</i>,]<br> - [create = <i>function</i>]<br> -<b>}</b> -</p> - -<p class=description> -The <tt>put</tt> function has two forms. The simple form has fixed -functionality: it uploads a string of content into a URL. The generic form -allows a <em>lot</em> more control, as explained below. -</p> - -<p class=parameters> -If the argument of the <tt>put</tt> function is a table, the function -expects at least the fields <tt>host</tt>, <tt>source</tt>, and one of -<tt>argument</tt> or <tt>path</tt> (<tt>argument</tt> takes -precedence). <tt>Host</tt> is the server to connect to. <tt>Source</tt> is -the <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -source that will provide the contents to be uploaded. -<tt>Argument</tt> or -<tt>path</tt> give the target path to the resource in the server. The -optional arguments are the following: -</p> -<ul> -<li><tt>user</tt>, <tt>password</tt>: User name and password used for -authentication. Defaults to "<tt>ftp:anonymous@anonymous.org</tt>"; -<li><tt>command</tt>: The FTP command used to send data. Defaults to -"<tt>stor</tt>", but see example below; -<li><tt>port</tt>: The port to used for the control connection. Defaults to 21; -<li><tt>type</tt>: The transfer mode. Can take values "<tt>i</tt>" or -"<tt>a</tt>". Defaults to whatever is the server default; -<li><tt>step</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>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> - -<p class=return> -Both functions return 1 if successful, or <b><tt>nil</tt></b> and an error -message describing the reason for failure. -</p> - -<pre class=example> --- load the ftp support -local ftp = require("socket.ftp") - --- Log as user "fulano" on server "ftp.example.com", --- using password "silva", and store a file "README" with contents --- "wrong password, of course" -f, e = ftp.put("ftp://fulano:silva@ftp.example.com/README", - "wrong password, of course") -</pre> - -<pre class=example> --- load the ftp support -local ftp = require("socket.ftp") -local ltn12 = require("ltn12") - --- Log as user "fulano" on server "ftp.example.com", --- using password "silva", and append to the remote file "LOG", sending the --- contents of the local file "LOCAL-LOG" -f, e = ftp.put{ - host = "ftp.example.com", - user = "fulano", - password = "silva", - command = "appe", - argument = "LOG", - source = ltn12.source.file(io.open("LOCAL-LOG", "r")) -} -</pre> - - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:18 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html deleted file mode 100644 index 3b7a8b1a26a..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/http.html +++ /dev/null @@ -1,335 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: HTTP support"> -<meta name="keywords" content="Lua, HTTP, Library, WWW, Browser, Network, Support"> -<title>LuaSocket: HTTP support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="introduction.html">introduction</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- http +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id="http">HTTP</h2> - -<p> -HTTP (Hyper Text Transfer Protocol) is the protocol used to exchange -information between web-browsers and servers. The <tt>http</tt> -namespace offers full support for the client side of the HTTP -protocol (i.e., -the facilities that would be used by a web-browser implementation). The -implementation conforms to the HTTP/1.1 standard, -<a href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a>. -</p> - -<p> -The module exports functions that provide HTTP functionality in different -levels of abstraction. From the simple -string oriented requests, through generic -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> based, down to even lower-level if you bother to look through the source code. -</p> - -<p> -To obtain the <tt>http</tt> namespace, run: -</p> - -<pre class=example> --- loads the HTTP module and any libraries it requires -local http = require("socket.http") -</pre> - -<p> -URLs must conform to -<a href="http://www.ietf.org/rfc/rfc1738.txt">RFC 1738</a>, -that is, an URL is a string in the form: -</p> - -<blockquote> -<pre> -[http://][<user>[:<password>]@]<host>[:<port>][/<path>] -</pre> -</blockquote> - -<p> -MIME headers are represented as a Lua table in the form: -</p> - -<blockquote> -<table summary="MIME headers in Lua table"> -<tr><td><tt> -headers = {<br> - field-1-name = <i>field-1-value</i>,<br> - field-2-name = <i>field-2-value</i>,<br> - field-3-name = <i>field-3-value</i>,<br> - ...<br> - field-n-name = <i>field-n-value</i><br> -} -</tt></td></tr> -</table> -</blockquote> - -<p> -Field names are case insensitive (as specified by the standard) and all -functions work with lowercase field names (but see -<a href=socket.html#headers.canonic><tt>socket.headers.canonic</tt></a>). -Field values are left unmodified. -</p> - -<p class=note> -Note: MIME headers are independent of order. Therefore, there is no problem -in representing them in a Lua table. -</p> - -<p> -The following constants can be set to control the default behavior of -the HTTP module: -</p> - -<ul> -<li> <tt>PROXY</tt>: default proxy used for connections; -<li> <tt>TIMEOUT</tt>: sets the timeout for all I/O operations; -<li> <tt>USERAGENT</tt>: default user agent reported to server. -</ul> - -<p class=note id="post"> -Note: These constants are global. Changing them will also -change the behavior other code that might be using LuaSocket. -</p> - -<!-- http.request ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="request"> -http.<b>request(</b>url [, body]<b>)</b><br> -http.<b>request{</b><br> - url = <i>string</i>,<br> - [sink = <i>LTN12 sink</i>,]<br> - [method = <i>string</i>,]<br> - [headers = <i>header-table</i>,]<br> - [source = <i>LTN12 source</i>],<br> - [step = <i>LTN12 pump step</i>,]<br> - [proxy = <i>string</i>,]<br> - [redirect = <i>boolean</i>,]<br> - [create = <i>function</i>]<br> -<b>}</b> -</p> - -<p class=description> -The request function has two forms. The simple form downloads -a URL using the <tt>GET</tt> or <tt>POST</tt> method and is based -on strings. The generic form performs any HTTP method and is -<a href=http://lua-users.org/wiki/FiltersSourcesAndSinks>LTN12</a> based. -</p> - -<p class=parameters> -If the first argument of the <tt>request</tt> function is a string, it -should be an <tt>url</tt>. In that case, if a <tt>body</tt> -is provided as a string, the function will perform a <tt>POST</tt> method -in the <tt>url</tt>. Otherwise, it performs a <tt>GET</tt> in the -<tt>url</tt> -</p> - -<p class=parameters> -If the first argument is instead a table, the most important fields are -the <tt>url</tt> and the <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -<tt>sink</tt> that will receive the downloaded content. -Any part of the <tt>url</tt> can be overridden by including -the appropriate field in the request table. -If authentication information is provided, the function -uses the Basic Authentication Scheme (see <a href="#authentication">note</a>) -to retrieve the document. If <tt>sink</tt> is <tt><b>nil</b></tt>, the -function discards the downloaded data. The optional parameters are the -following: -</p> -<ul> -<li><tt>method</tt>: The HTTP request method. Defaults to "GET"; -<li><tt>headers</tt>: Any additional HTTP headers to send with the request; -<li><tt>source</tt>: <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -source to provide the request body. If there -is a body, you need to provide an appropriate "<tt>content-length</tt>" -request header field, or the function will attempt to send the body as -"<tt>chunked</tt>" (something few servers support). Defaults to the empty source; -<li><tt>step</tt>: -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -pump step function used to move data. -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>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> - -<p class=return> -In case of failure, the function returns <tt><b>nil</b></tt> followed by an -error message. If successful, the simple form returns the response -body as a string, followed by the response status code, the response -headers and the response status line. The generic function returns the same -information, except the first return value is just the number 1 (the body -goes to the <tt>sink</tt>). -</p> - -<p class=return> -Even when the server fails to provide the contents of the requested URL (URL not found, for example), -it usually returns a message body (a web page informing the -URL was not found or some other useless page). To make sure the -operation was successful, check the returned status <tt>code</tt>. For -a list of the possible values and their meanings, refer to <a -href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a>. -</p> - -<p class=description> -Here are a few examples with the simple interface: -</p> - -<pre class=example> --- load the http module -local io = require("io") -local http = require("socket.http") -local ltn12 = require("ltn12") - --- connect to server "www.cs.princeton.edu" and retrieves this manual --- file from "~diego/professional/luasocket/http.html" and print it to stdout -http.request{ - url = "http://www.cs.princeton.edu/~diego/professional/luasocket/http.html", - sink = ltn12.sink.file(io.stdout) -} - --- connect to server "www.example.com" and tries to retrieve --- "/private/index.html". Fails because authentication is needed. -b, c, h = http.request("http://www.example.com/private/index.html") --- b returns some useless page telling about the denied access, --- h returns authentication information --- and c returns with value 401 (Authentication Required) - --- tries to connect to server "wrong.host" to retrieve "/" --- and fails because the host does not exist. -r, e = http.request("http://wrong.host/") --- r is nil, and e returns with value "host not found" -</pre> - -<p class=description> -And here is an example using the generic interface: -</p> - -<pre class=example> --- load the http module -http = require("socket.http") - --- Requests information about a document, without downloading it. --- Useful, for example, if you want to display a download gauge and need --- to know the size of the document in advance -r, c, h = http.request { - method = "HEAD", - url = "http://www.tecgraf.puc-rio.br/~diego" -} --- r is 1, c is 200, and h would return the following headers: --- h = { --- date = "Tue, 18 Sep 2001 20:42:21 GMT", --- server = "Apache/1.3.12 (Unix) (Red Hat/Linux)", --- ["last-modified"] = "Wed, 05 Sep 2001 06:11:20 GMT", --- ["content-length"] = 15652, --- ["connection"] = "close", --- ["content-Type"] = "text/html" --- } -</pre> - -<p class=note id="post"> -Note: When sending a POST request, simple interface adds a -"<tt>Content-type: application/x-www-form-urlencoded</tt>" -header to the request. This is the type used by -HTML forms. If you need another type, use the generic -interface. -</p> - -<p class=note id="authentication"> -Note: Some URLs are protected by their -servers from anonymous download. For those URLs, the server must receive -some sort of authentication along with the request or it will deny -download and return status "401 Authentication Required". -</p> - -<p class=note> -The HTTP/1.1 standard defines two authentication methods: the Basic -Authentication Scheme and the Digest Authentication Scheme, both -explained in detail in -<a href="http://www.ietf.org/rfc/rfc2068.txt">RFC 2068</a>. -</p> - -<p class=note>The Basic Authentication Scheme sends -<tt><user></tt> and -<tt><password></tt> unencrypted to the server and is therefore -considered unsafe. Unfortunately, by the time of this implementation, -the wide majority of servers and browsers support the Basic Scheme only. -Therefore, this is the method used by the toolkit whenever -authentication is required. -</p> - -<pre class=example> --- load required modules -http = require("socket.http") -mime = require("mime") - --- Connect to server "www.example.com" and tries to retrieve --- "/private/index.html", using the provided name and password to --- authenticate the request -b, c, h = http.request("http://fulano:silva@www.example.com/private/index.html") - --- Alternatively, one could fill the appropriate header and authenticate --- the request directly. -r, c = http.request { - url = "http://www.example.com/private/index.html", - headers = { authorization = "Basic " .. (mime.b64("fulano:silva")) } -} -</pre> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:26 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/index.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/index.html deleted file mode 100644 index 7d81b411d0c..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/index.html +++ /dev/null @@ -1,215 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="The LuaSocket Homepage"> -<meta name="keywords" content="Lua, LuaSocket, Network, Library, Support, Internet"> -<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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- whatis +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=whatis>What is LuaSocket?</h2> - -<p> -LuaSocket is a <a href="http://www.lua.org">Lua</a> extension library -that is composed by two parts: a C core that provides support for the TCP -and UDP transport layers, and a set of Lua modules that add support for -functionality commonly needed by applications that deal with the Internet. -</p> - -<p> -The core support has been implemented so that it is both efficient and -simple to use. It is available to any Lua application once it has been -properly initialized by the interpreter in use. The code has been tested -and runs well on several Windows and UNIX platforms. </p> - -<p> -Among the support modules, the most commonly used implement the -<a href=smtp.html>SMTP</a> -(sending e-mails), -<a href=http.html>HTTP</a> -(WWW access) and -<a href=ftp.html>FTP</a> -(uploading and downloading files) client -protocols. These provide a very natural and generic interface to the -functionality defined by each protocol. -In addition, you will find that the -<a href=mime.html>MIME</a> (common encodings), -<a href=url.html>URL</a> -(anything you could possible want to do with one) and -<a href=ltn12.html>LTN12</a> -(filters, sinks, sources and pumps) modules can be very handy. -</p> - -<p> -The library is available under the same -<a href="http://www.lua.org/copyright.html"> -terms and conditions</a> as the Lua language, the MIT license. The idea is -that if you can use Lua in a project, you should also be able to use -LuaSocket. -</p> - -<p> -Copyright © 1999-2013 Diego Nehab. All rights reserved. <br> -Author: <A href="http://www.impa.br/~diego">Diego Nehab</a> -</p> - -<!-- download +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=download>Download</h2> - -<p> -LuaSocket version 3.0-rc1 is now available for download! -It is compatible with Lua 5.1 and 5.2, and has -been tested on Windows XP, Linux, and Mac OS X. Chances -are it works well on most UNIX distributions and Windows flavors. -</p> - -<p> -The current version of the library can be found at -the <a href="https://github.com/diegonehab/luasocket">LuaSocket -project page</a> on GitHub. Besides the full C and Lua source code -for the library, the distribution contains several examples, -this user's manual and basic test procedures. -</p> - -<p> Take a look at the <a -href=installation.html>installation</a> section of the -manual to find out how to properly install the library. -</p> - -<!-- thanks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=thanks>Special thanks</h2> - -<p> -This marks the first release of LuaSocket that -wholeheartedly embraces the open-source development -philosophy. After a long hiatus, Matthew Wild finally -convinced me it was time for a release including IPv6 and -Lua 5.2 support. It was more work than we anticipated. -Special thanks to Sam Roberts, Florian Zeitz, and Paul -Aurich, Liam Devine, Alexey Melnichuk, and everybody else -that has helped bring this library back to life. -</p> - -<!-- whatsnew +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=new>What's New</h2> - -<p> -Main changes for LuaSocket 3.0-rc1 are IPv6 support -and Lua 5.2 compatibility. -</p> - -<ul> -<li> Added: Compatible with Lua 5.2 -<ul> -<li> Note that unless you define <tt>LUA_COMPAT_MODULE</tt>, -package tables will <em>not</em> be exported as globals! -</ul> -<li> Added: IPv6 support; -<ul> -<li> <tt>Socket.connect</tt> and <tt>socket.bind</tt> support IPv6 addresses; -<li> <tt>Getpeername</tt> and <tt>getsockname</tt> support -IPv6 addresses, and return the socket family as a third value; -<li> URL module updated to support IPv6 host names; -<li> New <tt>socket.tcp6</tt> and <tt>socket.udp6</tt> functions; -<li> New <tt>socket.dns.getaddrinfo</tt> and - <tt>socket.dns.getnameinfo</tt> functions; -</ul> -<li> Added: <tt>getoption</tt> method; -<li> Fixed: <tt>url.unescape</tt> was returning additional values; -<li> Fixed: <tt>mime.qp</tt>, <tt>mime.unqp</tt>, - <tt>mime.b64</tt>, and <tt>mime.unb64</tt> could - mistaking their own stack slots for functions arguments; -<li> Fixed: Receiving zero-length datagram is now possible; -<li> Improved: Hidden all internal library symbols; -<li> Improved: Better error messages; -<li> Improved: Better documentation of socket options. -<li> Fixed: manual sample of HTTP authentication now uses correct - "authorization" header (Alexandre Ittner); -<li> Fixed: failure on bind() was destroying the socket (Sam Roberts); -<li> Fixed: receive() returns immediatelly if prefix can satisfy - bytes requested (M Joonas Pihlaja); -<li> Fixed: multicast didn't work on Windows, or anywhere - else for that matter (Herbert Leuwer, Adrian Sietsma); -<li> Fixed: select() now reports an error when called with more - sockets than FD_SETSIZE (Lorenzo Leonini); -<li> Fixed: manual links to home.html changed to index.html -(Robert Hahn); -<li> Fixed: mime.unb64() would return an empty string on results that started - with a null character (Robert Raschke); -<li> Fixed: HTTP now automatically redirects on 303 and 307 (Jonathan Gray); -<li> Fixed: calling sleep() with negative numbers could - block forever, wasting CPU. Now it returns immediately (MPB); -<li> Improved: FTP commands are now sent in upper case to - help buggy servers (Anders Eurenius); -<li> Improved: known headers now sent in canonic - capitalization to help buggy servers (Joseph Stewart); -<li> Improved: Clarified tcp:receive() in the manual (MPB); -<li> Improved: Decent makefiles (LHF). -<li> Fixed: RFC links in documentation now point to IETF (Cosmin Apreutesei). -</ul> - -<!-- old ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=old>Old Versions</h2> - -<p> -All previous versions of the LuaSocket library can be downloaded <a -href="http://www.impa.br/~diego/software/luasocket/old"> -here</a>. Although these versions are no longer supported, they are -still available for those that have compatibility issues. -</p> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Tue Jun 11 18:50:23 HKT 2013 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/installation.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/installation.html deleted file mode 100644 index 28a9fbb5f22..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/installation.html +++ /dev/null @@ -1,127 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: Introduction to the core"> -<meta name="keywords" content="Lua, LuaSocket, TCP, UDP, Network, Support, -Installation"> -<title>LuaSocket: Installation</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- installation ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2>Installation</h2> - -<p> Here we describe the standard distribution. If the -standard doesn't meet your needs, we refer you to the Lua -discussion list, where any question about the package scheme -will likely already have been answered. </p> - -<h3>Directory structure</h3> - -<p> On Unix systems, the standard distribution uses two base -directories, one for system dependent files, and another for system -independent files. Let's call these directories <tt><CDIR></tt> -and <tt><LDIR></tt>, respectively. -For example, in my laptp, Lua 5.1 is configured to -use '<tt>/usr/local/lib/lua/5.1</tt>' for -<tt><CDIR></tt> and '<tt>/usr/local/share/lua/5.1</tt>' for -<tt><LDIR></tt>. On Windows, <tt><CDIR></tt> -usually points to the directory where the Lua executable is -found, and <tt><LDIR></tt> points to a -<tt>lua/</tt> directory inside <tt><CDIR></tt>. (These -settings can be overridden by environment variables -<tt>LUA_PATH</tt> and <tt>LUA_CPATH</tt>. See the Lua -documentation for details.) Here is the standard LuaSocket -distribution directory structure:</p> - -<pre class=example> -<LDIR>/ltn12.lua -<LDIR>/socket.lua -<CDIR>/socket/core.dll -<LDIR>/socket/http.lua -<LDIR>/socket/tp.lua -<LDIR>/socket/ftp.lua -<LDIR>/socket/smtp.lua -<LDIR>/socket/url.lua -<LDIR>/mime.lua -<CDIR>/mime/core.dll -</pre> - -<p> Naturally, on Unix systems, <tt>core.dll</tt> -would be replaced by <tt>core.so</tt>. -</p> - -<h3>Using LuaSocket</h3> - -<p> With the above setup, and an interpreter with shared library support, -it should be easy to use LuaSocket. Just fire the interpreter and use the -<tt>require</tt> function to gain access to whatever module you need:</p> - -<pre class=example> -Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio -> socket = require("socket") -> print(socket._VERSION) ---> LuaSocket 3.0-rc1 -</pre> - -<p> Each module loads their dependencies automatically, so you only need to -load the modules you directly depend upon: </p> - -<pre class=example> -Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio -> http = require("socket.http") -> print(http.request("http://www.impa.br/~diego/software/luasocket")) ---> homepage gets dumped to terminal -</pre> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Tue Jun 11 19:06:14 HKT 2013 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/introduction.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/introduction.html deleted file mode 100644 index fd22f483deb..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/introduction.html +++ /dev/null @@ -1,333 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: Introduction to the core"> -<meta name="keywords" content="Lua, LuaSocket, TCP, UDP, Network, -Library, Support"> -<title>LuaSocket: Introduction to the core</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- introduction +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2>Introduction</h2> - -<p> -LuaSocket is a <a href="http://www.lua.org">Lua</a> extension library -that is composed by two parts: a C core that provides support for the TCP -and UDP transport layers, and a set of Lua modules that add support for -the SMTP (sending e-mails), HTTP (WWW access) and FTP (uploading and -downloading files) protocols and other functionality commonly needed by -applications that deal with the Internet. This introduction is about the C -core. -</p> - -<p> -Communication in LuaSocket is performed via I/O objects. These can -represent different network domains. Currently, support is provided for TCP -and UDP, but nothing prevents other developers from implementing SSL, Local -Domain, Pipes, File Descriptors etc. I/O objects provide a standard -interface to I/O across different domains and operating systems. -</p> - -<p> -The API design had two goals in mind. First, users -experienced with the C API to sockets should feel comfortable using LuaSocket. -Second, the simplicity and the feel of the Lua language should be -preserved. To achieve these goals, the LuaSocket API keeps the function names and semantics the C API whenever possible, but their usage in Lua has been greatly simplified. -</p> - - -<p> -One of the simplifications is the receive pattern capability. -Applications can read data from stream domains (such as TCP) -line by line, block by block, or until the connection is closed. -All I/O reads are buffered and the performance differences between -different receive patterns are negligible. -</p> - -<p> -Another advantage is the flexible timeout control -mechanism. As in C, all I/O operations are blocking by default. For -example, the <a href=tcp.html#send><tt>send</tt></a>, -<a href=tcp.html#receive><tt>receive</tt></a> and -<a href=tcp.html#accept><tt>accept</tt></a> methods -of the TCP domain will block the caller application until -the operation is completed (if ever!). However, with a call to the -<a href=tcp.html#settimeout><tt>settimeout</tt></a> -method, an application can specify upper limits on -the time it can be blocked by LuaSocket (the "<tt>total</tt>" timeout), on -the time LuaSocket can internally be blocked by any OS call (the -"<tt>block</tt>" timeout) or a combination of the two. Each LuaSocket -call might perform several OS calls, so that the two timeout values are -<em>not</em> equivalent. -</p> - -<p> -Finally, the host name resolution is transparent, meaning that most -functions and methods accept both IP addresses and host names. In case a -host name is given, the library queries the system's resolver and -tries the main IP address returned. Note that direct use of IP addresses -is more efficient, of course. The -<a href=dns.html#toip><tt>toip</tt></a> -and <a href=dns.html#tohostname><tt>tohostname</tt></a> -functions from the DNS module are provided to convert between host names and IP addresses. -</p> - -<p> -Together, these changes make network programming in LuaSocket much simpler -than it is in C, as the following sections will show. -</p> - -<!-- tcp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id=tcp>TCP</h3> - -<p> -TCP (Transfer Control Protocol) is reliable stream protocol. In other -words, applications communicating through TCP can send and receive data as -an error free stream of bytes. Data is split in one end and -reassembled transparently on the other end. There are no boundaries in -the data transfers. The library allows users to read data from the -sockets in several different granularities: patterns are available for -lines, arbitrary sized blocks or "read up to connection closed", all with -good performance. -</p> - -<p> -The library distinguishes three types of TCP sockets: <em>master</em>, -<em>client</em> and <em>server</em> sockets. -</p> - -<p> -Master sockets are newly created TCP sockets returned by the function -<a href=tcp.html#tcp><tt>socket.tcp</tt></a>. A master socket is -transformed into a server socket -after it is associated with a <em>local</em> address by a call to the -<a href=tcp.html#bind><tt>bind</tt></a> method followed by a call to the -<a href=tcp.html#listen><tt>listen</tt></a>. Conversely, a master socket -can be changed into a client socket with the method -<a href=tcp.html#connect><tt>connect</tt></a>, -which associates it with a <em>remote</em> address. -</p> - -<p> -On server sockets, applications can use the -<a href=tcp.html#accept><tt>accept</tt></a> method -to wait for a client connection. Once a connection is established, a -client socket object is returned representing this connection. The -other methods available for server socket objects are -<a href=tcp.html#getsockname><tt>getsockname</tt></a>, -<a href=tcp.html#setoption><tt>setoption</tt></a>, -<a href=tcp.html#settimeout><tt>settimeout</tt></a>, and -<a href=tcp.html#close><tt>close</tt></a>. -</p> - -<p> -Client sockets are used to exchange data between two applications over -the Internet. Applications can call the methods -<a href=tcp.html#send><tt>send</tt></a> and -<a href=tcp.html#receive><tt>receive</tt></a> -to send and receive data. The other methods -available for client socket objects are -<a href=tcp.html#getsockname><tt>getsockname</tt></a>, -<a href=tcp.html#getpeername><tt>getpeername</tt></a>, -<a href=tcp.html#setoption><tt>setoption</tt></a>, -<a href=tcp.html#settimeout><tt>settimeout</tt></a>, -<a href=tcp.html#shutdown><tt>shutdown</tt></a>, and -<a href=tcp.html#close><tt>close</tt></a>. -</p> - -<p> -Example: -</p> -<blockquote> -<p> -A simple echo server, using LuaSocket. The program binds to an ephemeral -port (one that is chosen by the operating system) on the local host and -awaits client connections on that port. When a connection is established, -the program reads a line from the remote end and sends it back, closing -the connection immediately. You can test it using the telnet -program. -</p> - -<pre class=example> --- load namespace -local socket = require("socket") --- create a TCP socket and bind it to the local host, at any port -local server = assert(socket.bind("*", 0)) --- find out which port the OS chose for us -local ip, port = server:getsockname() --- print a message informing what's up -print("Please telnet to localhost on port " .. port) -print("After connecting, you have 10s to enter a line to be echoed") --- loop forever waiting for clients -while 1 do - -- wait for a connection from any client - local client = server:accept() - -- make sure we don't block waiting for this client's line - client:settimeout(10) - -- receive the line - local line, err = client:receive() - -- if there was no error, send it back to the client - if not err then client:send(line .. "\n") end - -- done with client, close the object - client:close() -end -</pre> -</blockquote> - -<!-- udp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id=udp>UDP</h3> - -<p> -UDP (User Datagram Protocol) is a non-reliable datagram protocol. In -other words, applications communicating through UDP send and receive -data as independent blocks, which are not guaranteed to reach the other -end. Even when they do reach the other end, they are not guaranteed to be -error free. Data transfers are atomic, one datagram at a time. Reading -only part of a datagram discards the rest, so that the following read -operation will act on the next datagram. The advantages are in -simplicity (no connection setup) and performance (no error checking or -error correction). -</p> - -<p> -Note that although no guarantees are made, these days -networks are so good that, under normal circumstances, few errors -happen in practice. -</p> - -<p> -An UDP socket object is created by the -<a href=udp.html#udp><tt>socket.udp</tt></a> function. UDP -sockets do not need to be connected before use. The method -<a href=udp.html#sendto><tt>sendto</tt></a> -can be used immediately after creation to -send a datagram to IP address and port. Host names are not allowed -because performing name resolution for each packet would be forbiddingly -slow. Methods -<a href=udp.html#receive><tt>receive</tt></a> and -<a href=udp.html#receivefrom><tt>receivefrom</tt></a> -can be used to retrieve datagrams, the latter returning the IP and port of -the sender as extra return values (thus being slightly less -efficient). -</p> - -<p> -When communication is performed repeatedly with a single peer, an -application should call the -<a href=udp.html#setpeername><tt>setpeername</tt></a> method to specify a -permanent partner. Methods -<a href=udp.html#sendto><tt>sendto</tt></a> and -<a href=udp.html#receivefrom><tt>receivefrom</tt></a> -can no longer be used, but the method -<a href=udp.html#send><tt>send</tt></a> can be used to send data -directly to the peer, and the method -<a href=udp.html#receive><tt>receive</tt></a> -will only return datagrams originating -from that peer. There is about 30% performance gain due to this practice. -</p> - -<p> -To associate an UDP socket with a local address, an application calls the -<a href=udp.html#setsockname><tt>setsockname</tt></a> -method <em>before</em> sending any datagrams. Otherwise, the socket is -automatically bound to an ephemeral address before the first data -transmission and once bound the local address cannot be changed. -The other methods available for UDP sockets are -<a href=udp.html#getpeername><tt>getpeername</tt></a>, -<a href=udp.html#getsockname><tt>getsockname</tt></a>, -<a href=udp.html#settimeout><tt>settimeout</tt></a>, -<a href=udp.html#setoption><tt>setoption</tt></a> and -<a href=udp.html#close><tt>close</tt></a>. -</p> - -<p> -Example: -</p> -<blockquote> -<p> -A simple daytime client, using LuaSocket. The program connects to a remote -server and tries to retrieve the daytime, printing the answer it got or an -error message. -</p> - -<pre class=example> --- change here to the host an port you want to contact -local host, port = "localhost", 13 --- load namespace -local socket = require("socket") --- convert host name to ip address -local ip = assert(socket.dns.toip(host)) --- create a new UDP object -local udp = assert(socket.udp()) --- contact daytime host -assert(udp:sendto("anything", ip, port)) --- retrieve the answer and print results -io.write(assert(udp:receive())) -</pre> -</blockquote> - -<!-- More +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id=more>Support modules</h3> - -<p> Although not covered in the introduction, LuaSocket offers -much more than TCP and UDP functionality. As the library -evolved, support for <a href=http.html>HTTP</a>, <a href=ftp.html>FTP</a>, -and <a href=smtp.html>SMTP</a> were built on top of these. These modules -and many others are covered by the <a href=reference.html>reference manual</a>. -</p> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:36 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/ltn12.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/ltn12.html deleted file mode 100644 index 54e66fb6bb0..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/ltn12.html +++ /dev/null @@ -1,430 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: LTN12 support"> -<meta name="keywords" content="Lua, LuaSocket, Filters, Source, Sink, -Pump, Support, Library"> -<title>LuaSocket: LTN12 module</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- ltn12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=ltn12>LTN12</h2> - -<p> The <tt>ltn12</tt> namespace implements the ideas described in -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks"> -LTN012, Filters sources and sinks</a>. This manual simply describes the -functions. Please refer to the LTN for a deeper explanation of the -functionality provided by this module. -</p> - -<p> -To obtain the <tt>ltn12</tt> namespace, run: -</p> - -<pre class=example> --- loads the LTN21 module -local ltn12 = require("ltn12") -</pre> - -<!-- filters ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id="filter">Filters</h3> - -<!-- chain ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="filter.chain"> -ltn12.filter.<b>chain(</b>filter<sub>1</sub>, filter<sub>2</sub> -[, ... filter<sub>N</sub>]<b>)</b> -</p> - -<p class=description> -Returns a filter that passes all data it receives through each of a -series of given filters. -</p> - -<p class=parameters> -<tt>Filter<sub>1</sub></tt> to <tt>filter<sub>N</sub></tt> are simple -filters. -</p> - -<p class=return> -The function returns the chained filter. -</p> - -<p class=note> -The nesting of filters can be arbitrary. For instance, the useless filter -below doesn't do anything but return the data that was passed to it, -unaltered. -</p> - -<pre class=example> --- load required modules -local ltn12 = require("ltn12") -local mime = require("mime") - --- create a silly identity filter -id = ltn12.filter.chain( - mime.encode("quoted-printable"), - mime.encode("base64"), - mime.decode("base64"), - mime.decode("quoted-printable") -) -</pre> - -<!-- cycle ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="filter.cycle"> -ltn12.filter.<b>cycle(</b>low [, ctx, extra]<b>)</b> -</p> - -<p class=description> -Returns a high-level filter that cycles though a low-level filter by -passing it each chunk and updating a context between calls. -</p> - -<p class=parameters> -<tt>Low</tt> is the low-level filter to be cycled, -<tt>ctx</tt> is the initial context and <tt>extra</tt> is any extra -argument the low-level filter might take. -</p> - -<p class=return> -The function returns the high-level filter. -</p> - -<pre class=example> --- load the ltn12 module -local ltn12 = require("ltn12") - --- the base64 mime filter factory -encodet['base64'] = function() - return ltn12.filter.cycle(b64, "") -end -</pre> - -<!-- pumps ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id="pump">Pumps</h3> - -<!-- all ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="pump.all"> -ltn12.pump.<b>all(</b>source, sink<b>)</b> -</p> - -<p class=description> -Pumps <em>all</em> data from a <tt>source</tt> to a <tt>sink</tt>. -</p> - -<p class=return> -If successful, the function returns a value that evaluates to -<b><tt>true</tt></b>. In case -of error, the function returns a <b><tt>false</tt></b> value, followed by an error message. -</p> - -<!-- step +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="pump.step"> -ltn12.pump.<b>step(</b>source, sink<b>)</b> -</p> - -<p class=description> -Pumps <em>one</em> chunk of data from a <tt>source</tt> to a <tt>sink</tt>. -</p> - -<p class=return> -If successful, the function returns a value that evaluates to -<b><tt>true</tt></b>. In case -of error, the function returns a <b><tt>false</tt></b> value, followed by an error message. -</p> - -<!-- sinks ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id="sink">Sinks</h3> - -<!-- chain ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="sink.chain"> -ltn12.sink.<b>chain(</b>filter, sink<b>)</b> -</p> - -<p class=description> -Creates and returns a new sink that passes data through a <tt>filter</tt> before sending it to a given <tt>sink</tt>. -</p> - -<!-- error ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="sink.error"> -ltn12.sink.<b>error(</b>message<b>)</b> -</p> - -<p class=description> -Creates and returns a sink that aborts transmission with the error -<tt>message</tt>. -</p> - -<!-- file +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="sink.file"> -ltn12.sink.<b>file(</b>handle, message<b>)</b> -</p> - -<p class=description> -Creates a sink that sends data to a file. -</p> - -<p class=parameters> -<tt>Handle</tt> is a file handle. If <tt>handle</tt> is <tt><b>nil</b></tt>, -<tt>message</tt> should give the reason for failure. -</p> - -<p class=return> -The function returns a sink that sends all data to the given <tt>handle</tt> -and closes the file when done, or a sink that aborts the transmission with -the error <tt>message</tt> -</p> - -<p class=note> -In the following example, notice how the prototype is designed to -fit nicely with the <tt>io.open</tt> function. -</p> - -<pre class=example> --- load the ltn12 module -local ltn12 = require("ltn12") - --- copy a file -ltn12.pump.all( - ltn12.source.file(io.open("original.png", "rb")), - ltn12.sink.file(io.open("copy.png", "wb")) -) -</pre> - -<!-- null +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="sink.null"> -ltn12.sink.<b>null()</b> -</p> - -<p class=description> -Returns a sink that ignores all data it receives. -</p> - -<!-- simplify +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="sink.simplify"> -ltn12.sink.<b>simplify(</b>sink<b>)</b> -</p> - -<p class=description> -Creates and returns a simple sink given a fancy <tt>sink</tt>. -</p> - -<!-- table ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="sink.table"> -ltn12.sink.<b>table(</b>[table]<b>)</b> -</p> - -<p class=description> -Creates a sink that stores all chunks in a table. The chunks can later be -efficiently concatenated into a single string. -</p> - -<p class=parameters> -<tt>Table</tt> is used to hold the chunks. If -<tt><b>nil</b></tt>, the function creates its own table. -</p> - -<p class=return> -The function returns the sink and the table used to store the chunks. -</p> - -<pre class=example> --- load needed modules -local http = require("socket.http") -local ltn12 = require("ltn12") - --- a simplified http.get function -function http.get(u) - local t = {} - local respt = request{ - url = u, - sink = ltn12.sink.table(t) - } - return table.concat(t), respt.headers, respt.code -end -</pre> - -<!-- sinks ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id="source">Sources</h3> - -<!-- cat ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.cat"> -ltn12.source.<b>cat(</b>source<sub>1</sub> [, source<sub>2</sub>, ..., -source<sub>N</sub>]<b>)</b> -</p> - -<p class=description> -Creates a new source that produces the concatenation of the data produced -by a number of sources. -</p> - -<p class=parameters> -<tt>Source<sub>1</sub></tt> to <tt>source<sub>N</sub></tt> are the original -sources. -</p> - -<p class=return> -The function returns the new source. -</p> - -<!-- chain ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.chain"> -ltn12.source.<b>chain(</b>source, filter<b>)</b> -</p> - -<p class=description> -Creates a new <tt>source</tt> that passes data through a <tt>filter</tt> -before returning it. -</p> - -<p class=return> -The function returns the new source. -</p> - -<!-- empty ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.empty"> -ltn12.source.<b>empty()</b> -</p> - -<p class=description> -Creates and returns an empty source. -</p> - -<!-- error ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.error"> -ltn12.source.<b>error(</b>message<b>)</b> -</p> - -<p class=description> -Creates and returns a source that aborts transmission with the error -<tt>message</tt>. -</p> - -<!-- file +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.file"> -ltn12.source.<b>file(</b>handle, message<b>)</b> -</p> - -<p class=description> -Creates a source that produces the contents of a file. -</p> - -<p class=parameters> -<tt>Handle</tt> is a file handle. If <tt>handle</tt> is <tt><b>nil</b></tt>, -<tt>message</tt> should give the reason for failure. -</p> - -<p class=return> -The function returns a source that reads chunks of data from -given <tt>handle</tt> and returns it to the user, -closing the file when done, or a source that aborts the transmission with -the error <tt>message</tt> -</p> - -<p class=note> -In the following example, notice how the prototype is designed to -fit nicely with the <tt>io.open</tt> function. -</p> - -<pre class=example> --- load the ltn12 module -local ltn12 = require("ltn12") - --- copy a file -ltn12.pump.all( - ltn12.source.file(io.open("original.png", "rb")), - ltn12.sink.file(io.open("copy.png", "wb")) -) -</pre> - -<!-- simplify +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.simplify"> -ltn12.source.<b>simplify(</b>source<b>)</b> -</p> - -<p class=description> -Creates and returns a simple source given a fancy <tt>source</tt>. -</p> - -<!-- string +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="source.string"> -ltn12.source.<b>string(</b>string<b>)</b> -</p> - -<p class=description> -Creates and returns a source that produces the contents of a -<tt>string</tt>, chunk by chunk. -</p> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:41 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/lua05.ppt b/Build/source/texk/web2c/luatexdir/luasocket/doc/lua05.ppt Binary files differdeleted file mode 100644 index e2b7ab4b304..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/lua05.ppt +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/luasocket.png b/Build/source/texk/web2c/luatexdir/luasocket/doc/luasocket.png Binary files differdeleted file mode 100644 index d24a95495b5..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/luasocket.png +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/mime.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/mime.html deleted file mode 100644 index 8cb3507aa7b..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/mime.html +++ /dev/null @@ -1,477 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: MIME support"> -<meta name="keywords" content="Lua, LuaSocket, MIME, Library, Support"> -<title>LuaSocket: MIME module</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- mime +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=mime>MIME</h2> - -<p> -The <tt>mime</tt> namespace offers filters that apply and remove common -content transfer encodings, such as Base64 and Quoted-Printable. -It also provides functions to break text into lines and change -the end-of-line convention. -MIME is described mainly in -<a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>, -<a href="http://www.ietf.org/rfc/rfc2046.txt">2046</a>, -<a href="http://www.ietf.org/rfc/rfc2047.txt">2047</a>, -<a href="http://www.ietf.org/rfc/rfc2047.txt">2048</a>, and -<a href="http://www.ietf.org/rfc/rfc2048.txt">2049</a>. -</p> - -<p> -All functionality provided by the MIME module -follows the ideas presented in -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks"> -LTN012, Filters sources and sinks</a>. -</p> - -<p> -To obtain the <tt>mime</tt> namespace, run: -</p> - -<pre class=example> --- loads the MIME module and everything it requires -local mime = require("mime") -</pre> - - -<!-- High-level +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id=high>High-level filters</h3> - - -<!-- decode +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="decode"> -mime.<b>decode(</b>"base64"<b>)</b><br> -mime.<b>decode(</b>"quoted-printable"<b>)</b> -</p> - -<p class=description> -Returns a filter that decodes data from a given transfer content -encoding. -</p> - -<!-- encode +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="encode"> -mime.<b>encode(</b>"base64"<b>)</b><br> -mime.<b>encode(</b>"quoted-printable" [, mode]<b>)</b> -</p> - -<p class=description> -Returns a filter that encodes data according to a given transfer content -encoding. -</p> - -<p class=parameters> -In the Quoted-Printable case, the user can specify whether the data is -textual or binary, by passing the <tt>mode</tt> strings "<tt>text</tt>" or -"<tt>binary</tt>". <tt>Mode</tt> defaults to "<tt>text</tt>". -</p> - -<p class=note> -Although both transfer content encodings specify a limit for the line -length, the encoding filters do <em>not</em> break text into lines (for -added flexibility). -Below is a filter that converts binary data to the Base64 transfer content -encoding and breaks it into lines of the correct size. -</p> - -<pre class=example> -base64 = ltn12.filter.chain( - mime.encode("base64"), - mime.wrap("base64") -) -</pre> - -<p class=note> -Note: Text data <em>has</em> to be converted to canonic form -<em>before</em> being encoded. -</p> - -<pre class=example> -base64 = ltn12.filter.chain( - mime.normalize(), - mime.encode("base64"), - mime.wrap("base64") -) -</pre> - -<!-- normalize ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="normalize"> -mime.<b>normalize(</b>[marker]<b>)</b> -</p> - -<p class=description> -Converts most common end-of-line markers to a specific given marker. -</p> - -<p class=parameters> -<tt>Marker</tt> is the new marker. It defaults to CRLF, the canonic -end-of-line marker defined by the MIME standard. -</p> - -<p class=return> -The function returns a filter that performs the conversion. -</p> - -<p class=note> -Note: There is no perfect solution to this problem. Different end-of-line -markers are an evil that will probably plague developers forever. -This function, however, will work perfectly for text created with any of -the most common end-of-line markers, i.e. the Mac OS (CR), the Unix (LF), -or the DOS (CRLF) conventions. Even if the data has mixed end-of-line -markers, the function will still work well, although it doesn't -guarantee that the number of empty lines will be correct. -</p> - -<!-- stuff +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="stuff"> -mime.<b>stuff()</b><br> -</p> - -<p class=description> -Creates and returns a filter that performs stuffing of SMTP messages. -</p> - -<p class=note> -Note: The <a href=smtp.html#send><tt>smtp.send</tt></a> function -uses this filter automatically. You don't need to chain it with your -source, or apply it to your message body. -</p> - -<!-- wrap +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="wrap"> -mime.<b>wrap(</b>"text" [, length]<b>)</b><br> -mime.<b>wrap(</b>"base64"<b>)</b><br> -mime.<b>wrap(</b>"quoted-printable"<b>)</b> -</p> - -<p class=description> -Returns a filter that breaks data into lines. -</p> - -<p class=parameters> -The "<tt>text</tt>" line-wrap filter simply breaks text into lines by -inserting CRLF end-of-line markers at appropriate positions. -<tt>Length</tt> defaults 76. -The "<tt>base64</tt>" line-wrap filter works just like the default -"<tt>text</tt>" line-wrap filter with default length. -The function can also wrap "<tt>quoted-printable</tt>" lines, taking care -not to break lines in the middle of an escaped character. In that case, the -line length is fixed at 76. -</p> - -<p class=note> -For example, to create an encoding filter for the Quoted-Printable transfer content encoding of text data, do the following: -</p> - -<pre class=example> -qp = ltn12.filter.chain( - mime.normalize(), - mime.encode("quoted-printable"), - mime.wrap("quoted-printable") -) -</pre> - -<p class=note> -Note: To break into lines with a different end-of-line convention, apply -a normalization filter after the line break filter. -</p> - -<!-- Low-level ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h3 id=low>Low-level filters</h3> - -<!-- b64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="b64"> -A, B = mime.<b>b64(</b>C [, D]<b>)</b> -</p> - -<p class=description> -Low-level filter to perform Base64 encoding. -</p> - -<p class=description> -<tt>A</tt> is the encoded version of the largest prefix of -<tt>C..D</tt> -that can be encoded unambiguously. <tt>B</tt> has the remaining bytes of -<tt>C..D</tt>, <em>before</em> encoding. -If <tt>D</tt> is <tt><b>nil</b></tt>, <tt>A</tt> is padded with -the encoding of the remaining bytes of <tt>C</tt>. -</p> - -<p class=note> -Note: The simplest use of this function is to encode a string into it's -Base64 transfer content encoding. Notice the extra parenthesis around the -call to <tt>mime.b64</tt>, to discard the second return value. -</p> - -<pre class=example> -print((mime.b64("diego:password"))) ---> ZGllZ286cGFzc3dvcmQ= -</pre> - -<!-- dot +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> -<p class=name id="dot"> -A, n = mime.<b>dot(</b>m [, B]<b>)</b> -</p> - -<p class=description> -Low-level filter to perform SMTP stuffing and enable transmission of -messages containing the sequence "CRLF.CRLF". -</p> - -<p class=parameters> -<tt>A</tt> is the stuffed version of <tt>B</tt>. '<tt>n</tt>' gives the -number of characters from the sequence CRLF seen in the end of <tt>B</tt>. -'<tt>m</tt>' should tell the same, but for the previous chunk. -</p> - -<p class=note>Note: The message body is defined to begin with -an implicit CRLF. Therefore, to stuff a message correctly, the -first <tt>m</tt> should have the value 2. -</p> - -<pre class=example> -print((string.gsub(mime.dot(2, ".\r\nStuffing the message.\r\n.\r\n."), "\r\n", "\\n"))) ---> ..\nStuffing the message.\n..\n.. -</pre> - -<p class=note> -Note: The <a href=smtp.html#send><tt>smtp.send</tt></a> function -uses this filter automatically. You don't need to -apply it again. -</p> - -<!-- eol ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="eol"> -A, B = mime.<b>eol(</b>C [, D, marker]<b>)</b> -</p> - -<p class=description> -Low-level filter to perform end-of-line marker translation. -For each chunk, the function needs to know if the last character of the -previous chunk could be part of an end-of-line marker or not. This is the -context the function receives besides the chunk. An updated version of -the context is returned after each new chunk. -</p> - -<p class=parameters> -<tt>A</tt> is the translated version of <tt>D</tt>. <tt>C</tt> is the -ASCII value of the last character of the previous chunk, if it was a -candidate for line break, or 0 otherwise. -<tt>B</tt> is the same as <tt>C</tt>, but for the current -chunk. <tt>Marker</tt> gives the new end-of-line marker and defaults to CRLF. -</p> - -<pre class=example> --- translates the end-of-line marker to UNIX -unix = mime.eol(0, dos, "\n") -</pre> - -<!-- qp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="qp"> -A, B = mime.<b>qp(</b>C [, D, marker]<b>)</b> -</p> - -<p class=description> -Low-level filter to perform Quoted-Printable encoding. -</p> - -<p class=parameters> -<tt>A</tt> is the encoded version of the largest prefix of -<tt>C..D</tt> -that can be encoded unambiguously. <tt>B</tt> has the remaining bytes of -<tt>C..D</tt>, <em>before</em> encoding. -If <tt>D</tt> is <tt><b>nil</b></tt>, <tt>A</tt> is padded with -the encoding of the remaining bytes of <tt>C</tt>. -Throughout encoding, occurrences of CRLF are replaced by the -<tt>marker</tt>, which itself defaults to CRLF. -</p> - -<p class=note> -Note: The simplest use of this function is to encode a string into it's -Quoted-Printable transfer content encoding. -Notice the extra parenthesis around the call to <tt>mime.qp</tt>, to discard the second return value. -</p> - -<pre class=example> -print((mime.qp("maçã"))) ---> ma=E7=E3= -</pre> - -<!-- qpwrp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="qpwrp"> -A, m = mime.<b>qpwrp(</b>n [, B, length]<b>)</b> -</p> - -<p class=description> -Low-level filter to break Quoted-Printable text into lines. -</p> - -<p class=parameters> -<tt>A</tt> is a copy of <tt>B</tt>, broken into lines of at most -<tt>length</tt> bytes (defaults to 76). -'<tt>n</tt>' should tell how many bytes are left for the first -line of <tt>B</tt> and '<tt>m</tt>' returns the number of bytes -left in the last line of <tt>A</tt>. -</p> - -<p class=note> -Note: Besides breaking text into lines, this function makes sure the line -breaks don't fall in the middle of an escaped character combination. Also, -this function only breaks lines that are bigger than <tt>length</tt> bytes. -</p> - -<!-- unb64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="unb64"> -A, B = mime.<b>unb64(</b>C [, D]<b>)</b> -</p> - -<p class=description> -Low-level filter to perform Base64 decoding. -</p> - -<p class=parameters> -<tt>A</tt> is the decoded version of the largest prefix of -<tt>C..D</tt> -that can be decoded unambiguously. <tt>B</tt> has the remaining bytes of -<tt>C..D</tt>, <em>before</em> decoding. -If <tt>D</tt> is <tt><b>nil</b></tt>, <tt>A</tt> is the empty string -and <tt>B</tt> returns whatever couldn't be decoded. -</p> - -<p class=note> -Note: The simplest use of this function is to decode a string from it's -Base64 transfer content encoding. -Notice the extra parenthesis around the call to <tt>mime.unqp</tt>, to discard the second return value. -</p> - -<pre class=example> -print((mime.unb64("ZGllZ286cGFzc3dvcmQ="))) ---> diego:password -</pre> - -<!-- unqp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="unqp"> -A, B = mime.<b>unqp(</b>C [, D]<b>)</b> -</p> - -<p class=description> -Low-level filter to remove the Quoted-Printable transfer content encoding -from data. -</p> - -<p class=parameters> -<tt>A</tt> is the decoded version of the largest prefix of -<tt>C..D</tt> -that can be decoded unambiguously. <tt>B</tt> has the remaining bytes of -<tt>C..D</tt>, <em>before</em> decoding. -If <tt>D</tt> is <tt><b>nil</b></tt>, <tt>A</tt> is augmented with -the encoding of the remaining bytes of <tt>C</tt>. -</p> - -<p class=note> -Note: The simplest use of this function is to decode a string from it's -Quoted-Printable transfer content encoding. -Notice the extra parenthesis around the call to <tt>mime.unqp</tt>, to discard the second return value. -</p> - -<pre class=example> -print((mime.qp("ma=E7=E3="))) ---> maçã -</pre> - -<!-- wrp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="wrp"> -A, m = mime.<b>wrp(</b>n [, B, length]<b>)</b> -</p> - -<p class=description> -Low-level filter to break text into lines with CRLF marker. -Text is assumed to be in the <a href=#normalize><tt>normalize</tt></a> form. -</p> - -<p class=parameters> -<tt>A</tt> is a copy of <tt>B</tt>, broken into lines of at most -<tt>length</tt> bytes (defaults to 76). -'<tt>n</tt>' should tell how many bytes are left for the first -line of <tt>B</tt> and '<tt>m</tt>' returns the number of bytes -left in the last line of <tt>A</tt>. -</p> - -<p class=note> -Note: This function only breaks lines that are bigger than -<tt>length</tt> bytes. The resulting line length does not include the CRLF -marker. -</p> - - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Fri Mar 4 15:19:17 BRT 2016 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/reference.css b/Build/source/texk/web2c/luatexdir/luasocket/doc/reference.css deleted file mode 100644 index 04e38cfebeb..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/reference.css +++ /dev/null @@ -1,55 +0,0 @@ -body { - margin-left: 1em; - margin-right: 1em; - font-family: "Verdana", sans-serif; - background: #ffffff; -} - -tt { - font-family: "Andale Mono", monospace; -} - -h1, h2, h3, h4 { margin-left: 0em; } - - -h3 { padding-top: 1em; } - -p { margin-left: 1em; } - -p.name { - font-family: "Andale Mono", monospace; - padding-top: 1em; - margin-left: 0em; -} - -a[href] { color: #00007f; } - -blockquote { margin-left: 3em; } - -pre.example { - background: #ccc; - padding: 1em; - margin-left: 1em; - font-family: "Andale Mono", monospace; - font-size: small; -} - -hr { - margin-left: 0em; - background: #00007f; - border: 0px; - height: 1px; -} - -ul { list-style-type: disc; } - -table.index { border: 1px #00007f; } -table.index td { text-align: left; vertical-align: top; } -table.index ul { padding-top: 0em; margin-top: 0em; } - -h1:first-letter, -h2:first-letter, -h2:first-letter, -h3:first-letter { color: #00007f; } - -div.header, div.footer { margin-left: 0em; } diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/reference.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/reference.html deleted file mode 100644 index 287dc19d900..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/reference.html +++ /dev/null @@ -1,260 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: Index to reference manual"> -<meta name="keywords" content="Lua, LuaSocket, Index, Manual, Network, Library, -Support, Manual"> -<title>LuaSocket: Index to reference manual</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- reference +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2>Reference</h2> - -<blockquote> -<a href="dns.html">DNS (in socket)</a> -<blockquote> -<a href="dns.html#getaddrinfo">getaddrinfo</a>, -<a href="dns.html#gethostname">gethostname</a>, -<a href="dns.html#tohostname">tohostname</a>, -<a href="dns.html#toip">toip</a>. -</blockquote> -</blockquote> - -<!-- ftp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="ftp.html">FTP</a> -<blockquote> -<a href="ftp.html#get">get</a>, -<a href="ftp.html#put">put</a>. -</blockquote> -</blockquote> - -<!-- http +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="http.html">HTTP</a> -<blockquote> -<a href="http.html#request">request</a>. -</blockquote> -</blockquote> - -<!-- ltn12 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="ltn12.html">LTN12</a> -<blockquote> -<a href="ltn12.html#filter">filter</a>: -<a href="ltn12.html#filter.chain">chain</a>, -<a href="ltn12.html#filter.cycle">cycle</a>. -</blockquote> -<blockquote> -<a href="ltn12.html#pump">pump</a>: -<a href="ltn12.html#pump.all">all</a>, -<a href="ltn12.html#pump.step">step</a>. -</blockquote> -<blockquote> -<a href="ltn12.html#sink">sink</a>: -<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>. -</blockquote> -<blockquote> -<a href="ltn12.html#source">source</a>: -<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>, -<a href="ltn12.html#source.string">string</a>. -</blockquote> -</blockquote> - -<!-- mime +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="mime.html">MIME</a> -<blockquote> -<a href="mime.html#high">high-level</a>: -<a href="mime.html#decode">decode</a>, -<a href="mime.html#encode">encode</a>, -<a href="mime.html#normalize">normalize</a>, -<a href="mime.html#stuff">stuff</a>, -<a href="mime.html#wrap">wrap</a>. -</blockquote> -<blockquote> -<a href="mime.html#low">low-level</a>: -<a href="mime.html#b64">b64</a>, -<a href="mime.html#dot">dot</a>, -<a href="mime.html#eol">eol</a>, -<a href="mime.html#qp">qp</a>, -<a href="mime.html#qpwrp">qpwrp</a>, -<a href="mime.html#unb64">unb64</a>, -<a href="mime.html#unqp">unqp</a>, -<a href="mime.html#wrp">wrp</a>. -</blockquote> -</blockquote> - -<!-- smtp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="smtp.html">SMTP</a> -<blockquote> -<a href="smtp.html#message">message</a>, -<a href="smtp.html#send">send</a>. -</blockquote> -</blockquote> - -<!-- socket +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="socket.html">Socket</a> -<blockquote> -<a href="socket.html#bind">bind</a>, -<a href="socket.html#connect">connect</a>, -<a href="socket.html#connect">connect4</a>, -<a href="socket.html#connect">connect6</a>, -<a href="socket.html#datagramsize">_DATAGRAMSIZE</a>, -<a href="socket.html#debug">_DEBUG</a>, -<a href="dns.html#dns">dns</a>, -<a href="socket.html#gettime">gettime</a>, -<a href="socket.html#headers.canonic">headers.canonic</a>, -<a href="socket.html#newtry">newtry</a>, -<a href="socket.html#protect">protect</a>, -<a href="socket.html#select">select</a>, -<a href="socket.html#sink">sink</a>, -<a href="socket.html#skip">skip</a>, -<a href="socket.html#sleep">sleep</a>, -<a href="socket.html#setsize">_SETSIZE</a>, -<a href="socket.html#socketinvalid">_SOCKETINVALID</a>, -<a href="socket.html#source">source</a>, -<a href="tcp.html#socket.tcp">tcp</a>, -<a href="tcp.html#socket.tcp4">tcp4</a>, -<a href="tcp.html#socket.tcp6">tcp6</a>, -<a href="socket.html#try">try</a>, -<a href="udp.html#socket.udp">udp</a>, -<a href="udp.html#socket.udp4">udp4</a>, -<a href="udp.html#socket.udp6">udp6</a>, -<a href="socket.html#version">_VERSION</a>. -</blockquote> -</blockquote> - -<!-- tcp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="tcp.html">TCP (in socket)</a> -<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>, -<a href="tcp.html#dirty">dirty</a>, -<a href="tcp.html#getfd">getfd</a>, -<a href="tcp.html#getoption">getoption</a>, -<a href="tcp.html#getpeername">getpeername</a>, -<a href="tcp.html#getsockname">getsockname</a>, -<a href="tcp.html#getstats">getstats</a>, -<a href="tcp.html#gettimeout">gettimeout</a>, -<a href="tcp.html#listen">listen</a>, -<a href="tcp.html#receive">receive</a>, -<a href="tcp.html#send">send</a>, -<a href="tcp.html#setfd">setfd</a>, -<a href="tcp.html#setoption">setoption</a>, -<a href="tcp.html#setstats">setstats</a>, -<a href="tcp.html#settimeout">settimeout</a>, -<a href="tcp.html#shutdown">shutdown</a>. -</blockquote> -</blockquote> - -<!-- udp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="udp.html">UDP (in socket)</a> -<blockquote> -<a href="udp.html#close">close</a>, -<a href="udp.html#getoption">getoption</a>, -<a href="udp.html#getpeername">getpeername</a>, -<a href="udp.html#getsockname">getsockname</a>, -<a href="udp.html#gettimeout">gettimeout</a>, -<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>, -<a href="udp.html#settimeout">settimeout</a>. -</blockquote> -</blockquote> - -<!-- url ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<blockquote> -<a href="url.html">URL</a> -<blockquote> -<a href="url.html#absolute">absolute</a>, -<a href="url.html#build">build</a>, -<a href="url.html#build_path">build_path</a>, -<a href="url.html#escape">escape</a>, -<a href="url.html#parse">parse</a>, -<a href="url.html#parse_path">parse_path</a>, -<a href="url.html#unescape">unescape</a>. -</blockquote> -</blockquote> - -<!-- footer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:47 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/smtp.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/smtp.html deleted file mode 100644 index 600ec37529f..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/smtp.html +++ /dev/null @@ -1,418 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: SMTP support"> -<meta name="keywords" content="Lua, LuaSocket, SMTP, E-Mail, MIME, Multipart, -Library, Support"> -<title>LuaSocket: SMTP support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- smtp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=smtp>SMTP</h2> - -<p> The <tt>smtp</tt> namespace provides functionality to send e-mail -messages. The high-level API consists of two functions: one to -define an e-mail message, and another to actually send the message. -Although almost all users will find that these functions provide more than -enough functionality, the underlying implementation allows for even more -control (if you bother to read the code). -</p> - -<p>The implementation conforms to the Simple Mail Transfer Protocol, -<a href="http://www.ietf.org/rfc/rfc2821.txt">RFC 2821</a>. -Another RFC of interest is <a -href="http://www.ietf.org/rfc/rfc2822.txt">RFC 2822</a>, -which governs the Internet Message Format. -Multipart messages (those that contain attachments) are part -of the MIME standard, but described mainly -in <a href="http://www.ietf.org/rfc/rfc2046.txt">RFC 2046</a> - -<p> In the description below, good understanding of <a -href="http://lua-users.org/wiki/FiltersSourcesAndSinks"> LTN012, Filters -sources and sinks</a> and the <a href=mime.html>MIME</a> module is -assumed. In fact, the SMTP module was the main reason for their -creation. </p> - -<p> -To obtain the <tt>smtp</tt> namespace, run: -</p> - -<pre class=example> --- loads the SMTP module and everything it requires -local smtp = require("socket.smtp") -</pre> - -<p> -MIME headers are represented as a Lua table in the form: -</p> - -<blockquote> -<table summary="MIME headers in Lua table"> -<tr><td><tt> -headers = {<br> - field-1-name = <i>field-1-value</i>,<br> - field-2-name = <i>field-2-value</i>,<br> - field-3-name = <i>field-3-value</i>,<br> - ...<br> - field-n-name = <i>field-n-value</i><br> -} -</tt></td></tr> -</table> -</blockquote> - -<p> -Field names are case insensitive (as specified by the standard) and all -functions work with lowercase field names (but see -<a href=socket.html#headers.canonic><tt>socket.headers.canonic</tt></a>). -Field values are left unmodified. -</p> - -<p class=note> -Note: MIME headers are independent of order. Therefore, there is no problem -in representing them in a Lua table. -</p> - -<p> -The following constants can be set to control the default behavior of -the SMTP module: -</p> - -<ul> -<li> <tt>DOMAIN</tt>: domain used to greet the server; -<li> <tt>PORT</tt>: default port used for the connection; -<li> <tt>SERVER</tt>: default server used for the connection; -<li> <tt>TIMEOUT</tt>: default timeout for all I/O operations; -<li> <tt>ZONE</tt>: default time zone. -</ul> - -<!-- message ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=message> -smtp.<b>message(</b>mesgt<b>)</b> -</p> - -<p class=description> -Returns a <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> source that sends an SMTP message body, possibly multipart (arbitrarily deep). -</p> - -<p class=parameters> -The only parameter of the function is a table describing the message. -<tt>Mesgt</tt> has the following form (notice the recursive structure): -</p> - -<blockquote> -<table summary="Mesgt table structure"> -<tr><td><tt> -mesgt = {<br> - headers = <i>header-table</i>,<br> - body = <i>LTN12 source</i> or <i>string</i> or -<i>multipart-mesgt</i><br> -}<br> - <br> -multipart-mesgt = {<br> - [preamble = <i>string</i>,]<br> - [1] = <i>mesgt</i>,<br> - [2] = <i>mesgt</i>,<br> - ...<br> - [<i>n</i>] = <i>mesgt</i>,<br> - [epilogue = <i>string</i>,]<br> -}<br> -</tt></td></tr> -</table> -</blockquote> - -<p class=parameters> -For a simple message, all that is needed is a set of <tt>headers</tt> -and the <tt>body</tt>. The message <tt>body</tt> can be given as a string -or as a <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -source. For multipart messages, the body is a table that -recursively defines each part as an independent message, plus an optional -<tt>preamble</tt> and <tt>epilogue</tt>. -</p> - -<p class=return> -The function returns a <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -source that produces the -message contents as defined by <tt>mesgt</tt>, chunk by chunk. -Hopefully, the following -example will make things clear. When in doubt, refer to the appropriate RFC -as listed in the introduction. </p> - -<pre class=example> --- load the smtp support and its friends -local smtp = require("socket.smtp") -local mime = require("mime") -local ltn12 = require("ltn12") - --- creates a source to send a message with two parts. The first part is --- plain text, the second part is a PNG image, encoded as base64. -source = smtp.message{ - headers = { - -- Remember that headers are *ignored* by smtp.send. - from = "Sicrano de Oliveira <sicrano@example.com>", - to = "Fulano da Silva <fulano@example.com>", - subject = "Here is a message with attachments" - }, - body = { - preamble = "If your client doesn't understand attachments, \r\n" .. - "it will still display the preamble and the epilogue.\r\n" .. - "Preamble will probably appear even in a MIME enabled client.", - -- first part: no headers means plain text, us-ascii. - -- The mime.eol low-level filter normalizes end-of-line markers. - [1] = { - body = mime.eol(0, [[ - Lines in a message body should always end with CRLF. - The smtp module will *NOT* perform translation. However, the - send function *DOES* perform SMTP stuffing, whereas the message - function does *NOT*. - ]]) - }, - -- second part: headers describe content to be a png image, - -- sent under the base64 transfer content encoding. - -- notice that nothing happens until the message is actually sent. - -- small chunks are loaded into memory right before transmission and - -- translation happens on the fly. - [2] = { - headers = { - ["content-type"] = 'image/png; name="image.png"', - ["content-disposition"] = 'attachment; filename="image.png"', - ["content-description"] = 'a beautiful image', - ["content-transfer-encoding"] = "BASE64" - }, - body = ltn12.source.chain( - ltn12.source.file(io.open("image.png", "rb")), - ltn12.filter.chain( - mime.encode("base64"), - mime.wrap() - ) - ) - }, - epilogue = "This might also show up, but after the attachments" - } -} - --- finally send it -r, e = smtp.send{ - from = "<sicrano@example.com>", - rcpt = "<fulano@example.com>", - source = source, -} -</pre> - - -<!-- send +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=send> -smtp.<b>send{</b><br> - from = <i>string</i>,<br> - rcpt = <i>string</i> or <i>string-table</i>,<br> - source = <i>LTN12 source</i>,<br> - [user = <i>string</i>,]<br> - [password = <i>string</i>,]<br> - [server = <i>string</i>,]<br> - [port = <i>number</i>,]<br> - [domain = <i>string</i>,]<br> - [step = <i>LTN12 pump step</i>,]<br> - [create = <i>function</i>]<br> -<b>}</b> -</p> - -<p class=description> -Sends a message to a recipient list. Since sending messages is not as -simple as downloading an URL from a FTP or HTTP server, this function -doesn't have a simple interface. However, see the -<a href=#message><tt>message</tt></a> source factory for -a very powerful way to define the message contents. -</p> - - -<p class=parameters> -The sender is given by the e-mail address in the <tt>from</tt> field. -<tt>Rcpt</tt> is a Lua table with one entry for each recipient e-mail -address, or a string -in case there is just one recipient. -The contents of the message are given by a <em>simple</em> -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -<tt>source</tt>. Several arguments are optional: -</p> -<ul> -<li> <tt>user</tt>, <tt>password</tt>: User and password for -authentication. The function will attempt LOGIN and PLAIN authentication -methods if supported by the server (both are unsafe); -<li> <tt>server</tt>: Server to connect to. Defaults to "localhost"; -<li> <tt>port</tt>: Port to connect to. Defaults to 25; -<li> <tt>domain</tt>: Domain name used to greet the server; Defaults to the -local machine host name; -<li> <tt>step</tt>: -<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>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> - -<p class=return> -If successful, the function returns 1. Otherwise, the function returns -<b><tt>nil</tt></b> followed by an error message. -</p> - -<p class=note> -Note: SMTP servers can be very picky with the format of e-mail -addresses. To be safe, use only addresses of the form -"<tt><fulano@example.com></tt>" in the <tt>from</tt> and -<tt>rcpt</tt> arguments to the <tt>send</tt> function. In headers, e-mail -addresses can take whatever form you like. </p> - -<p class=note> -Big note: There is a good deal of misconception with the use of the -destination address field headers, i.e., the '<tt>To</tt>', '<tt>Cc</tt>', -and, more importantly, the '<tt>Bcc</tt>' headers. Do <em>not</em> add a -'<tt>Bcc</tt>' header to your messages because it will probably do the -exact opposite of what you expect. -</p> - -<p class=note> -Only recipients specified in the <tt>rcpt</tt> list will receive a copy of the -message. Each recipient of an SMTP mail message receives a copy of the -message body along with the headers, and nothing more. The headers -<em>are</em> part of the message and should be produced by the -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -<tt>source</tt> function. The <tt>rcpt</tt> list is <em>not</em> -part of the message and will not be sent to anyone. -</p> - -<p class=note> -<a href="http://www.ietf.org/rfc/rfc2822.txt">RFC 2822</a> -has two <em>important and short</em> sections, "3.6.3. Destination address -fields" and "5. Security considerations", explaining the proper -use of these headers. Here is a summary of what it says: -</p> - -<ul> -<li> <tt>To</tt>: contains the address(es) of the primary recipient(s) -of the message; -<li> <tt>Cc</tt>: (where the "Cc" means "Carbon Copy" in the sense of -making a copy on a typewriter using carbon paper) contains the -addresses of others who are to receive the message, though the -content of the message may not be directed at them; -<li> <tt>Bcc</tt>: (where the "Bcc" means "Blind Carbon -Copy") contains addresses of recipients of the message whose addresses are not to be revealed to other recipients of the message. -</ul> - -<p class=note> -The LuaSocket <tt>send</tt> function does not care or interpret the -headers you send, but it gives you full control over what is sent and -to whom it is sent: -</p> -<ul> -<li> If someone is to receive the message, the e-mail address <em>has</em> -to be in the recipient list. This is the only parameter that controls who -gets a copy of the message; -<li> If there are multiple recipients, none of them will automatically -know that someone else got that message. That is, the default behavior is -similar to the <tt>Bcc</tt> field of popular e-mail clients; -<li> It is up to you to add the <tt>To</tt> header with the list of primary -recipients so that other recipients can see it; -<li> It is also up to you to add the <tt>Cc</tt> header with the -list of additional recipients so that everyone else sees it; -<li> Adding a header <tt>Bcc</tt> is nonsense, unless it is -empty. Otherwise, everyone receiving the message will see it and that is -exactly what you <em>don't</em> want to happen! -</ul> - -<p class=note> -I hope this clarifies the issue. Otherwise, please refer to -<a href="http://www.ietf.org/rfc/rfc2821.txt">RFC 2821</a> -and -<a href="http://www.ietf.org/rfc/rfc2822.txt">RFC 2822</a>. -</p> - -<pre class=example> --- load the smtp support -local smtp = require("socket.smtp") - --- Connects to server "localhost" and sends a message to users --- "fulano@example.com", "beltrano@example.com", --- and "sicrano@example.com". --- Note that "fulano" is the primary recipient, "beltrano" receives a --- carbon copy and neither of them knows that "sicrano" received a blind --- carbon copy of the message. -from = "<luasocket@example.com>" - -rcpt = { - "<fulano@example.com>", - "<beltrano@example.com>", - "<sicrano@example.com>" -} - -mesgt = { - headers = { - to = "Fulano da Silva <fulano@example.com>", - cc = '"Beltrano F. Nunes" <beltrano@example.com>', - subject = "My first message" - }, - body = "I hope this works. If it does, I can send you another 1000 copies." -} - -r, e = smtp.send{ - from = from, - rcpt = rcpt, - source = smtp.message(mesgt) -} -</pre> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:51 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/socket.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/socket.html deleted file mode 100644 index 35f8391c845..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/socket.html +++ /dev/null @@ -1,479 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: The core namespace"> -<meta name="keywords" content="Lua, LuaSocket, Socket, Network, Library, Support"> -<title>LuaSocket: The socket namespace</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- socket +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id=socket>The socket namespace</h2> - -<p> -The <tt>socket</tt> namespace contains the core functionality of LuaSocket. -</p> - -<p> -To obtain the <tt>socket</tt> namespace, run: -</p> - -<pre class=example> --- loads the socket module -local socket = require("socket") -</pre> - -<!-- headers.canonic ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="headers.canonic"> -socket.headers.<b>canonic</b></p> - -<p> The <tt>socket.headers.canonic</tt> table -is used by the HTTP and SMTP modules to translate from -lowercase field names back into their canonic -capitalization. When a lowercase field name exists as a key -in this table, the associated value is substituted in -whenever the field name is sent out. -</p> - -<p> -You can obtain the <tt>headers</tt> namespace if case run-time -modifications are required by running: -</p> - -<pre class=example> --- loads the headers module -local headers = require("headers") -</pre> - - -<!-- bind ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=bind> -socket.<b>bind(</b>address, port [, backlog]<b>)</b> -</p> - -<p class=description> -This function is a shortcut that creates and returns a TCP server object -bound to a local <tt>address</tt> and <tt>port</tt>, ready to -accept client connections. Optionally, -user can also specify the <tt>backlog</tt> argument to the -<a href=tcp.html#listen><tt>listen</tt></a> method (defaults to 32). -</p> - -<p class=note> -Note: The server object returned will have the option "<tt>reuseaddr</tt>" -set to <tt><b>true</b></tt>. -</p> - -<!-- connect ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=connect> -socket.<b>connect[46](</b>address, port [, locaddr] [, locport] [, family]<b>)</b> -</p> - -<p class=description> -This function is a shortcut that creates and returns a TCP client object -connected to a remote <tt>address</tt> at a given <tt>port</tt>. Optionally, -the user can also specify the local address and port to bind -(<tt>locaddr</tt> and <tt>locport</tt>), or restrict the socket family -to "<tt>inet</tt>" or "<tt>inet6</tt>". -Without specifying <tt>family</tt> to <tt>connect</tt>, whether a tcp or tcp6 -connection is created depends on your system configuration. Two variations -of connect are defined as simple helper functions that restrict the -<tt>family</tt>, <tt>socket.connect4</tt> and <tt>socket.connect6</tt>. -</p> - -<!-- debug ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=debug> -socket.<b>_DEBUG</b> -</p> - -<p class=description> -This constant is set to <tt><b>true</b></tt> if the library was compiled -with debug support. -</p> - -<!-- datagramsize +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=debug> -socket.<b>_DATAGRAMSIZE</b> -</p> - -<p class=description> -Default datagram size used by calls to -<a href="udp.html#receive"<tt>receive</tt></a> and -<a href="udp.html#receivefrom"><tt>receivefrom</tt></a>. -(Unless changed in compile time, the value is 8192.) -</p> - -<!-- get time +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=gettime> -socket.<b>gettime()</b> -</p> - -<p class=description> -Returns the UNIX time in seconds. You should subtract the values returned by this function -to get meaningful values. -</p> - -<pre class=example> -t = socket.gettime() --- do stuff -print(socket.gettime() - t .. " seconds elapsed") -</pre> - -<!-- newtry +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=newtry> -socket.<b>newtry(</b>finalizer<b>)</b> -</p> - -<p class=description> -Creates and returns a <em>clean</em> -<a href="#try"><tt>try</tt></a> -function that allows for cleanup before the exception -is raised. -</p> - -<p class=parameters> -<tt>Finalizer</tt> is a function that will be called before -<tt>try</tt> throws the exception. -</p> - -<p class=return> -The function returns your customized <tt>try</tt> function. -</p> - -<p class=note> -Note: This idea saved a <em>lot</em> of work with the -implementation of protocols in LuaSocket: -</p> - -<pre class=example> -foo = socket.protect(function() - -- connect somewhere - local c = socket.try(socket.connect("somewhere", 42)) - -- create a try function that closes 'c' on error - local try = socket.newtry(function() c:close() end) - -- do everything reassured c will be closed - try(c:send("hello there?\r\n")) - local answer = try(c:receive()) - ... - try(c:send("good bye\r\n")) - c:close() -end) -</pre> - - -<!-- protect +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=protect> -socket.<b>protect(</b>func<b>)</b> -</p> - -<p class=description> -Converts a function that throws exceptions into a safe function. This -function only catches exceptions thrown by the <a href=#try><tt>try</tt></a> -and <a href=#newtry><tt>newtry</tt></a> functions. It does not catch normal -Lua errors. -</p> - -<p class=parameters> -<tt>Func</tt> is a function that calls -<a href=#try><tt>try</tt></a> (or <tt>assert</tt>, or <tt>error</tt>) -to throw exceptions. -</p> - -<p class=return> -Returns an equivalent function that instead of throwing exceptions in case of -a failed <a href=#try><tt>try</tt></a> call, returns <tt><b>nil</b></tt> -followed by an error message. -</p> - -<!-- select +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=select> -socket.<b>select(</b>recvt, sendt [, timeout]<b>)</b> -</p> - -<p class=description> -Waits for a number of sockets to change status. -</p> - -<p class=parameters> -<tt>Recvt</tt> is an array with the sockets to test for characters -available for reading. Sockets in the <tt>sendt</tt> array are watched to -see if it is OK to immediately write on them. <tt>Timeout</tt> is the -maximum amount of time (in seconds) to wait for a change in status. A -<tt><b>nil</b></tt>, negative or omitted <tt>timeout</tt> value allows the -function to block indefinitely. <tt>Recvt</tt> and <tt>sendt</tt> can also -be empty tables or <tt><b>nil</b></tt>. Non-socket values (or values with -non-numeric indices) in the arrays will be silently ignored. -</p> - -<p class=return> The function returns a list with the sockets ready for -reading, a list with the sockets ready for writing and an error message. -The error message is "<tt>timeout</tt>" if a timeout -condition was met, "<tt>select failed</tt>" if the call -to <tt>select</tt> failed, and -<tt><b>nil</b></tt> otherwise. The returned tables are -doubly keyed both by integers and also by the sockets -themselves, to simplify the test if a specific socket has -changed status. -</p> - -<p class=note> -<b>Note:</b> <tt>select</tt> can monitor a limited number -of sockets, as defined by the constant <tt>socket._SETSIZE</tt>. This -number may be as high as 1024 or as low as 64 by default, -depending on the system. It is usually possible to change this -at compile time. Invoking <tt>select</tt> with a larger -number of sockets will raise an error. -</p> - -<p class=note> -<b>Important note</b>: a known bug in WinSock causes <tt>select</tt> to fail -on non-blocking TCP sockets. The function may return a socket as -writable even though the socket is <em>not</em> ready for sending. -</p> - -<p class=note> -<b>Another important note</b>: calling select with a server socket in the receive parameter before a call to accept does <em>not</em> guarantee -<a href=tcp.html#accept><tt>accept</tt></a> will return immediately. -Use the <a href=tcp.html#settimeout><tt>settimeout</tt></a> -method or <tt>accept</tt> might block forever. -</p> - -<p class=note> -<b>Yet another note</b>: If you close a socket and pass -it to <tt>select</tt>, it will be ignored. -</p> - -<p class=note> -<b>Using select with non-socket objects</b>: Any object that implements <tt>getfd</tt> and <tt>dirty</tt> can be used with <tt>select</tt>, allowing objects from other libraries to be used within a <tt>socket.select</tt> driven loop. -</p> - -<!-- setsize ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=setsize> -socket.<b>_SETSIZE</b> -</p> - -<p class=description> -The maximum number of sockets that the <a -href=#select><tt>select</tt></a> function can handle. -</p> - - -<!-- sink ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=sink> -socket.<b>sink(</b>mode, socket<b>)</b> -</p> - -<p class=description> -Creates an -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -sink from a stream socket object. -</p> - -<p class=parameters> -<tt>Mode</tt> defines the behavior of the sink. The following -options are available: -</p> -<ul> -<li> <tt>"http-chunked"</tt>: sends data through socket after applying the -<em>chunked transfer coding</em>, closing the socket when done; -<li> <tt>"close-when-done"</tt>: sends all received data through the -socket, closing the socket when done; -<li> <tt>"keep-open"</tt>: sends all received data through the -socket, leaving it open when done. -</ul> -<p> -<tt>Socket</tt> is the stream socket object used to send the data. -</p> - -<p class=return> -The function returns a sink with the appropriate behavior. -</p> - -<!-- skip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=skip> -socket.<b>skip(</b>d [, ret<sub>1</sub>, ret<sub>2</sub> ... ret<sub>N</sub>]<b>)</b> -</p> - -<p class=description> -Drops a number of arguments and returns the remaining. -</p> - -<p class=parameters> -<tt>D</tt> is the number of arguments to drop. <tt>Ret<sub>1</sub></tt> to -<tt>ret<sub>N</sub></tt> are the arguments. -</p> - -<p class=return> -The function returns <tt>ret<sub>d+1</sub></tt> to <tt>ret<sub>N</sub></tt>. -</p> - -<p class=note> -Note: This function is useful to avoid creation of dummy variables: -</p> - -<pre class=example> --- get the status code and separator from SMTP server reply -local code, sep = socket.skip(2, string.find(line, "^(%d%d%d)(.?)")) -</pre> - -<!-- sleep ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=sleep> -socket.<b>sleep(</b>time<b>)</b> -</p> - -<p class=description> -Freezes the program execution during a given amount of time. -</p> - -<p class=parameters> -<tt>Time</tt> is the number of seconds to sleep for. If -<tt>time</tt> is negative, the function returns immediately. -</p> - -<!-- source +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=source> -socket.<b>source(</b>mode, socket [, length]<b>)</b> -</p> - -<p class=description> -Creates an -<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> -source from a stream socket object. -</p> - -<p class=parameters> -<tt>Mode</tt> defines the behavior of the source. The following -options are available: -</p> -<ul> -<li> <tt>"http-chunked"</tt>: receives data from socket and removes the -<em>chunked transfer coding</em> before returning the data; -<li> <tt>"by-length"</tt>: receives a fixed number of bytes from the -socket. This mode requires the extra argument <tt>length</tt>; -<li> <tt>"until-closed"</tt>: receives data from a socket until the other -side closes the connection. -</ul> -<p> -<tt>Socket</tt> is the stream socket object used to receive the data. -</p> - -<p class=return> -The function returns a source with the appropriate behavior. -</p> - -<!-- socketinvalid ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=socketinvalid> -socket.<b>_SOCKETINVALID</b> -</p> - -<p class=description> -The OS value for an invalid socket. -</p> - -<!-- try ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=try> -socket.<b>try(</b>ret<sub>1</sub> [, ret<sub>2</sub> ... ret<sub>N</sub>]<b>)</b> -</p> - -<p class=description> -Throws an exception in case <tt>ret<sub>1</sub></tt> is falsy, using -<tt>ret<sub>2</sub></tt> as the error message. The exception is supposed to be caught -by a <a href=#protect><tt>protect</tt></a>ed function only. -</p> - -<p class=parameters> -<tt>Ret<sub>1</sub></tt> to <tt>ret<sub>N</sub></tt> can be arbitrary -arguments, but are usually the return values of a function call -nested with <tt>try</tt>. -</p> - -<p class=return> -The function returns <tt>ret</tt><sub>1</sub> to <tt>ret</tt><sub>N</sub> if -<tt>ret</tt><sub>1</sub> is not <tt><b>nil</b></tt> or <tt><b>false</b></tt>. -Otherwise, it calls <tt>error</tt> passing <tt>ret</tt><sub>2</sub> wrapped -in a table with metatable used by <a href=#protect><tt>protect</tt></a> to -distinguish exceptions from runtime errors. -</p> - -<pre class=example> --- connects or throws an exception with the appropriate error message -c = socket.try(socket.connect("localhost", 80)) -</pre> - -<!-- version ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id=version> -socket.<b>_VERSION</b> -</p> - -<p class=description> -This constant has a string describing the current LuaSocket version. -</p> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:54 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/tcp.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/tcp.html deleted file mode 100644 index c6c6eb26956..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/tcp.html +++ /dev/null @@ -1,721 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: The TCP/IP support"> -<meta name="keywords" content="Lua, LuaSocket, Socket, TCP, Library, Network, Support"> -<title>LuaSocket: TCP/IP support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- tcp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id="tcp">TCP</h2> - -<!-- accept +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="accept"> -server:<b>accept()</b> -</p> - -<p class=description> -Waits for a remote connection on the server -object and returns a client object representing that connection. -</p> - -<p class=return> -If a connection is successfully initiated, a client object is returned. -If a timeout condition is met, the method returns <b><tt>nil</tt></b> -followed by the error string '<tt>timeout</tt>'. Other errors are -reported by <b><tt>nil</tt></b> followed by a message describing the error. -</p> - -<p class=note> -Note: calling <a href=socket.html#select><tt>socket.select</tt></a> -with a server object in -the <tt>recvt</tt> parameter before a call to <tt>accept</tt> does -<em>not</em> guarantee <tt>accept</tt> will return immediately. Use the <a -href=#settimeout><tt>settimeout</tt></a> method or <tt>accept</tt> -might block until <em>another</em> client shows up. -</p> - -<!-- bind +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="bind"> -master:<b>bind(</b>address, port<b>)</b> -</p> - -<p class=description> -Binds a master object to <tt>address</tt> and <tt>port</tt> on the -local host. - -<p class=parameters> -<tt>Address</tt> can be an IP address or a host name. -<tt>Port</tt> must be an integer number in the range [0..64K). -If <tt>address</tt> -is '<tt>*</tt>', the system binds to all local interfaces -using the <tt>INADDR_ANY</tt> constant or -<tt>IN6ADDR_ANY_INIT</tt>, according to the family. -If <tt>port</tt> is 0, the system automatically -chooses an ephemeral port. -</p> - -<p class=return> -In case of success, the method returns 1. In case of error, the -method returns <b><tt>nil</tt></b> followed by an error message. -</p> - -<p class=note> -Note: The function <a href=socket.html#bind><tt>socket.bind</tt></a> -is available and is a shortcut for the creation of server sockets. -</p> - -<!-- close ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="close"> -master:<b>close()</b><br> -client:<b>close()</b><br> -server:<b>close()</b> -</p> - -<p class=description> -Closes a TCP object. The internal socket used by the object is closed -and the local address to which the object was -bound is made available to other applications. No further operations -(except for further calls to the <tt>close</tt> method) are allowed on -a closed socket. -</p> - -<p class=note> -Note: It is important to close all used sockets once they are not -needed, since, in many systems, each socket uses a file descriptor, -which are limited system resources. Garbage-collected objects are -automatically closed before destruction, though. -</p> - -<!-- connect ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="connect"> -master:<b>connect(</b>address, port<b>)</b> -</p> - -<p class=description> -Attempts to connect a master object to a remote host, transforming it into a -client object. -Client objects support methods -<a href=#send><tt>send</tt></a>, -<a href=#receive><tt>receive</tt></a>, -<a href=#getsockname><tt>getsockname</tt></a>, -<a href=#getpeername><tt>getpeername</tt></a>, -<a href=#settimeout><tt>settimeout</tt></a>, -and <a href=#close><tt>close</tt></a>. -</p> - -<p class=parameters> -<tt>Address</tt> can be an IP address or a host name. -<tt>Port</tt> must be an integer number in the range [1..64K). -</p> - -<p class=return> -In case of error, the method returns <b><tt>nil</tt></b> followed by a string -describing the error. In case of success, the method returns 1. -</p> - -<p class=note> -Note: The function <a href=socket.html#connect><tt>socket.connect</tt></a> -is available and is a shortcut for the creation of client sockets. -</p> - -<p class=note> -Note: Starting with LuaSocket 2.0, -the <a href=#settimeout><tt>settimeout</tt></a> -method affects the behavior of <tt>connect</tt>, causing it to return -with an error in case of a timeout. If that happens, you can still call <a -href=socket.html#select><tt>socket.select</tt></a> with the socket in the -<tt>sendt</tt> table. The socket will be writable when the connection is -established. -</p> - -<p class=note> -Note: Starting with LuaSocket 3.0, the host name resolution -depends on whether the socket was created by -<a href=#socket.tcp><tt>socket.tcp</tt></a>, -<a href=#socket.tcp4><tt>socket.tcp4</tt></a> or -<a href=#socket.tcp6><tt>socket.tcp6</tt></a>. Addresses from -the appropriate family (or both) are tried in the order -returned by the resolver until the -first success or until the last failure. If the timeout was -set to zero, only the first address is tried. -</p> - -<!-- dirty +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="dirty"> -master:<b>dirty()</b><br> -client:<b>dirty()</b><br> -server:<b>dirty()</b> -</p> - -<p class=description> -Check the read buffer status. -</p> - -<p class=return> -Returns <tt>true</tt> if there is any data in the read buffer, <tt>false</tt> otherwise. -</p> - -<p class=note> -Note: <b>This is an internal method, use at your own risk.</b> -</p> - - -<!-- getfd +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="getfd"> -master:<b>getfd()</b><br> -client:<b>getfd()</b><br> -server:<b>getfd()</b> -</p> - -<p class=description> -Returns the underling socket descriptor or handle associated to the object. -</p> - -<p class=return> -The descriptor or handle. In case the object has been closed, the return will be -1. -</p> - -<p class=note> -Note: <b>This is an internal method. Unlikely to be -portable. Use at your own risk. </b> -</p> - - -<!-- getoption ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="getoption"> -client:<b>getoption(</b>option)</b><br> -server:<b>getoption(</b>option)</b> -</p> - -<p class=description> -Gets options for the TCP object. -See <a href=#setoption><tt>setoption</tt></a> for description of the -option names and values. -</p> - -<p class=parameters> -<tt>Option</tt> is a string with the option name. -<ul> - -<li> '<tt>keepalive</tt>' -<li> '<tt>linger</tt>' -<li> '<tt>reuseaddr</tt>' -<li> '<tt>tcp-nodelay</tt>' -</ul> - -<p class=return> -The method returns the option <tt>value</tt> in case of success, or -<b><tt>nil</tt></b> followed by an error message otherwise. -</p> - - -<!-- getpeername ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="getpeername"> -client:<b>getpeername()</b> -</p> - -<p class=description> -Returns information about the remote side of a connected client object. -</p> - -<p class=return> -Returns a string with the IP address of the peer, the -port number that peer is using for the connection, -and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>"). -In case of error, the method returns <b><tt>nil</tt></b>. -</p> - -<p class=note> -Note: It makes no sense to call this method on server objects. -</p> - -<!-- getsockname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="getsockname"> -master:<b>getsockname()</b><br> -client:<b>getsockname()</b><br> -server:<b>getsockname()</b> -</p> - -<p class=description> -Returns the local address information associated to the object. -</p> - -<p class=return> -The method returns a string with local IP address, a number with -the local port, -and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>"). -In case of error, the method returns <b><tt>nil</tt></b>. -</p> - -<!-- getstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="getstats"> -master:<b>getstats()</b><br> -client:<b>getstats()</b><br> -server:<b>getstats()</b><br> -</p> - -<p class=description> -Returns accounting information on the socket, useful for throttling -of bandwidth. -</p> - -<p class=return> -The method returns the number of bytes received, the number of bytes sent, -and the age of the socket object in seconds. -</p> - -<!-- gettimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="gettimeout"> -master:<b>gettimeout()</b><br> -client:<b>gettimeout()</b><br> -server:<b>gettimeout()</b> -</p> - -<p class=description> -Returns the current block timeout followed by the curent -total timeout. -</p> - - -<!-- listen ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="listen"> -master:<b>listen(</b>backlog<b>)</b> -</p> - -<p class=description> -Specifies the socket is willing to receive connections, transforming the -object into a server object. Server objects support the -<a href=#accept><tt>accept</tt></a>, -<a href=#getsockname><tt>getsockname</tt></a>, -<a href=#setoption><tt>setoption</tt></a>, -<a href=#settimeout><tt>settimeout</tt></a>, -and <a href=#close><tt>close</tt></a> methods. -</p> - -<p class=parameters> -The parameter <tt>backlog</tt> specifies the number of client -connections that can -be queued waiting for service. If the queue is full and another client -attempts connection, the connection is refused. -</p> - -<p class=return> -In case of success, the method returns 1. In case of error, the -method returns <b><tt>nil</tt></b> followed by an error message. -</p> - -<!-- receive ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="receive"> -client:<b>receive(</b>[pattern [, prefix]]<b>)</b> -</p> - -<p class=description> -Reads data from a client object, according to the specified <em>read -pattern</em>. Patterns follow the Lua file I/O format, and the difference in performance between all patterns is negligible. -</p> - -<p class=parameters> -<tt>Pattern</tt> can be any of the following: -</p> - -<ul> -<li> '<tt>*a</tt>': reads from the socket until the connection is -closed. No end-of-line translation is performed; -<li> '<tt>*l</tt>': reads a line of text from the socket. The line is -terminated by a LF character (ASCII 10), optionally preceded by a -CR character (ASCII 13). The CR and LF characters are not included in -the returned line. In fact, <em>all</em> CR characters are -ignored by the pattern. This is the default pattern; -<li> <tt>number</tt>: causes the method to read a specified <tt>number</tt> -of bytes from the socket. -</ul> - -<p class=parameters> -<tt>Prefix</tt> is an optional string to be concatenated to the beginning -of any received data before return. -</p> - -<p class=return> -If successful, the method returns the received pattern. In case of error, -the method returns <tt><b>nil</b></tt> followed by an error -message, followed by a (possibly empty) string containing -the partial that was received. The error message can be -the string '<tt>closed</tt>' in case the connection was -closed before the transmission was completed or the string -'<tt>timeout</tt>' in case there was a timeout during the operation. -</p> - -<p class=note> -<b>Important note</b>: This function was changed <em>severely</em>. It used -to support multiple patterns (but I have never seen this feature used) and -now it doesn't anymore. Partial results used to be returned in the same -way as successful results. This last feature violated the idea that all -functions should return <tt><b>nil</b></tt> on error. Thus it was changed -too. -</p> - -<!-- send +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="send"> -client:<b>send(</b>data [, i [, j]]<b>)</b> -</p> - -<p class=description> -Sends <tt>data</tt> through client object. -</p> - -<p class=parameters> -<tt>Data</tt> is the string to be sent. The optional arguments -<tt>i</tt> and <tt>j</tt> work exactly like the standard -<tt>string.sub</tt> Lua function to allow the selection of a -substring to be sent. -</p> - -<p class=return> -If successful, the method returns the index of the last byte -within <tt>[i, j]</tt> that has been sent. Notice that, if -<tt>i</tt> is 1 or absent, this is effectively the total -number of bytes sent. In case of error, the method returns -<b><tt>nil</tt></b>, followed by an error message, followed -by the index of the last byte within <tt>[i, j]</tt> that -has been sent. You might want to try again from the byte -following that. The error message can be '<tt>closed</tt>' -in case the connection was closed before the transmission -was completed or the string '<tt>timeout</tt>' in case -there was a timeout during the operation. -</p> - -<p class=note> -Note: Output is <em>not</em> buffered. For small strings, -it is always better to concatenate them in Lua -(with the '<tt>..</tt>' operator) and send the result in one call -instead of calling the method several times. -</p> - -<!-- setoption ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="setoption"> -client:<b>setoption(</b>option [, value]<b>)</b><br> -server:<b>setoption(</b>option [, value]<b>)</b> -</p> - -<p class=description> -Sets options for the TCP object. Options are only needed by low-level or -time-critical applications. You should only modify an option if you -are sure you need it. -</p> - -<p class=parameters> -<tt>Option</tt> is a string with the option name, and <tt>value</tt> -depends on the option being set: - -<ul> - -<li> '<tt>keepalive</tt>': Setting this option to <tt>true</tt> enables -the periodic transmission of messages on a connected socket. Should the -connected party fail to respond to these messages, the connection is -considered broken and processes using the socket are notified; - -<li> '<tt>linger</tt>': Controls the action taken when unsent data are -queued on a socket and a close is performed. The value is a table with a -boolean entry '<tt>on</tt>' and a numeric entry for the time interval -'<tt>timeout</tt>' in seconds. If the '<tt>on</tt>' field is set to -<tt>true</tt>, the system will block the process on the close attempt until -it is able to transmit the data or until '<tt>timeout</tt>' has passed. If -'<tt>on</tt>' is <tt>false</tt> and a close is issued, the system will -process the close in a manner that allows the process to continue as -quickly as possible. I do not advise you to set this to anything other than -zero; - -<li> '<tt>reuseaddr</tt>': Setting this option indicates that the rules -used in validating addresses supplied in a call to -<a href=#bind><tt>bind</tt></a> should allow reuse of local addresses; - -<li> '<tt>tcp-nodelay</tt>': Setting this option to <tt>true</tt> -disables the Nagle's algorithm for the connection; - -<li> '<tt>ipv6-v6only</tt>': -Setting this option to <tt>true</tt> restricts an <tt>inet6</tt> socket to -sending and receiving only IPv6 packets. -</ul> - -<p class=return> -The method returns 1 in case of success, or <b><tt>nil</tt></b> -followed by an error message otherwise. -</p> - -<p class=note> -Note: The descriptions above come from the man pages. -</p> - -<!-- setstats +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="setstats"> -master:<b>setstats(</b>received, sent, age<b>)</b><br> -client:<b>setstats(</b>received, sent, age<b>)</b><br> -server:<b>setstats(</b>received, sent, age<b>)</b><br> -</p> - -<p class=description> -Resets accounting information on the socket, useful for throttling -of bandwidth. -</p> - -<p class=parameters> -<tt>Received</tt> is a number with the new number of bytes received. -<tt>Sent</tt> is a number with the new number of bytes sent. -<tt>Age</tt> is the new age in seconds. -</p> - -<p class=return> -The method returns 1 in case of success and <tt><b>nil</b></tt> otherwise. -</p> - -<!-- settimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="settimeout"> -master:<b>settimeout(</b>value [, mode]<b>)</b><br> -client:<b>settimeout(</b>value [, mode]<b>)</b><br> -server:<b>settimeout(</b>value [, mode]<b>)</b> -</p> - -<p class=description> -Changes the timeout values for the object. By default, -all I/O operations are blocking. That is, any call to the methods -<a href=#send><tt>send</tt></a>, -<a href=#receive><tt>receive</tt></a>, and -<a href=#accept><tt>accept</tt></a> -will block indefinitely, until the operation completes. The -<tt>settimeout</tt> method defines a limit on the amount of time the -I/O methods can block. When a timeout is set and the specified amount of -time has elapsed, the affected methods give up and fail with an error code. -</p> - -<p class=parameters> -The amount of time to wait is specified as the -<tt>value</tt> parameter, in seconds. There are two timeout modes and -both can be used together for fine tuning: -</p> - -<ul> -<li> '<tt>b</tt>': <em>block</em> timeout. Specifies the upper limit on -the amount of time LuaSocket can be blocked by the operating system -while waiting for completion of any single I/O operation. This is the -default mode;</li> - -<li> '<tt>t</tt>': <em>total</em> timeout. Specifies the upper limit on -the amount of time LuaSocket can block a Lua script before returning from -a call.</li> -</ul> - -<p class=parameters> -The <b><tt>nil</tt></b> timeout <tt>value</tt> allows operations to block -indefinitely. Negative timeout values have the same effect. -</p> - -<p class=note> -Note: although timeout values have millisecond precision in LuaSocket, -large blocks can cause I/O functions not to respect timeout values due -to the time the library takes to transfer blocks to and from the OS -and to and from the Lua interpreter. Also, function that accept host names -and perform automatic name resolution might be blocked by the resolver for -longer than the specified timeout value. -</p> - -<p class=note> -Note: The old <tt>timeout</tt> method is deprecated. The name has been -changed for sake of uniformity, since all other method names already -contained verbs making their imperative nature obvious. -</p> - -<!-- shutdown +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="shutdown"> -client:<b>shutdown(</b>mode<b>)</b><br> -</p> - -<p class=description> -Shuts down part of a full-duplex connection. -</p> - -<p class=parameters> -Mode tells which way of the connection should be shut down and can -take the value: -<ul> -<li>"<tt>both</tt>": disallow further sends and receives on the object. -This is the default mode; -<li>"<tt>send</tt>": disallow further sends on the object; -<li>"<tt>receive</tt>": disallow further receives on the object. -</ul> - -<p class=return> -This function returns 1. -</p> - -<!-- setfd +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="setfd"> -master:<b>setfd(</b>fd<b>)</b><br> -client:<b>setfd(</b>fd<b>)</b><br> -server:<b>setfd(</b>fd<b>)</b> -</p> - -<p class=description> -Sets the underling socket descriptor or handle associated to the object. The current one is simply replaced, not closed, and no other change to the object state is made. -</p> - -<p class=return> -No return value. -</p> - -<p class=note> -Note: <b>This is an internal method. Unlikely to be -portable. Use at your own risk. </b> -</p> - -<!-- socket.tcp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="socket.tcp"> -socket.<b>tcp()</b> -</p> - -<p class=description> -Creates and returns an TCP master object. A master object can -be transformed into a server object with the method -<a href=#listen><tt>listen</tt></a> (after a call to <a -href=#bind><tt>bind</tt></a>) or into a client object with -the method <a href=#connect><tt>connect</tt></a>. The only other -method supported by a master object is the -<a href=#close><tt>close</tt></a> method.</p> - -<p class=return> -In case of success, a new master object is returned. In case of error, -<b><tt>nil</tt></b> is returned, followed by an error message. -</p> - -<p class=note> -Note: The choice between IPv4 and IPv6 happens during a call to -<a href=#bind><tt>bind</tt></a> or <a -href=#bind><tt>connect</tt></a>, depending on the address -family obtained from the resolver. -</p> - -<p class=note> -Note: Before the choice between IPv4 and IPv6 happens, -the internal socket object is invalid and therefore <a -href=#setoption><tt>setoption</tt></a> will fail. -</p> - -<!-- socket.tcp +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="socket.tcp4"> -socket.<b>tcp4()</b> -</p> - -<p class=description> -Creates and returns an IPv4 TCP master object. A master object can -be transformed into a server object with the method -<a href=#listen><tt>listen</tt></a> (after a call to <a -href=#bind><tt>bind</tt></a>) or into a client object with -the method <a href=#connect><tt>connect</tt></a>. The only other -method supported by a master object is the -<a href=#close><tt>close</tt></a> method.</p> - -<p class=return> -In case of success, a new master object is returned. In case of error, -<b><tt>nil</tt></b> is returned, followed by an error message. -</p> - -<!-- socket.tcp6 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="socket.tcp6"> -socket.<b>tcp6()</b> -</p> - -<p class=description> -Creates and returns an IPv6 TCP master object. A master object can -be transformed into a server object with the method -<a href=#listen><tt>listen</tt></a> (after a call to <a -href=#bind><tt>bind</tt></a>) or into a client object with -the method <a href=#connect><tt>connect</tt></a>. The only other -method supported by a master object is the -<a href=#close><tt>close</tt></a> method.</p> - -<p class=return> -In case of success, a new master object is returned. In case of error, -<b><tt>nil</tt></b> is returned, followed by an error message. -</p> - -<p class=note> -Note: The TCP object returned will have the option -"<tt>ipv6-v6only</tt>" set to <tt><b>true</b></tt>. -</p> - - - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:25:57 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/udp.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/udp.html deleted file mode 100644 index 4618aadb97e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/udp.html +++ /dev/null @@ -1,596 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: The UDP support"> -<meta name="keywords" content="Lua, LuaSocket, Socket, UDP, Library, Network, Support"> -<title>LuaSocket: UDP support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - - -<!-- udp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id="udp">UDP</h2> - -<!-- close +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="close"> -connected:<b>close()</b><br> -unconnected:<b>close()</b> -</p> - -<p class="description"> -Closes a UDP object. The internal socket -used by the object is closed and the local address to which the -object was bound is made available to other applications. No -further operations (except for further calls to the <tt>close</tt> -method) are allowed on a closed socket. -</p> - -<p class="note"> -Note: It is important to close all used sockets -once they are not needed, since, in many systems, each socket uses -a file descriptor, which are limited system resources. -Garbage-collected objects are automatically closed before -destruction, though. -</p> - -<!-- getoption +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="getoption"> -connected:<b>getoption()</b><br> -unconnected:<b>getoption()</b> -</p> - -<p class="description"> -Gets an option value from the UDP object. -See <a href=#setoption><tt>setoption</tt></a> for -description of the option names and values. -</p> - -<p class="parameters"><tt>Option</tt> is a string with the option name. -<ul> -<li> '<tt>dontroute</tt>' -<li> '<tt>broadcast</tt>' -<li> '<tt>reuseaddr</tt>' -<li> '<tt>reuseport</tt>' -<li> '<tt>ip-multicast-loop</tt>' -<li> '<tt>ipv6-v6only</tt>' -<li> '<tt>ip-multicast-if</tt>' -<li> '<tt>ip-multicast-ttl</tt>' -<li> '<tt>ip-add-membership</tt>' -<li> '<tt>ip-drop-membership</tt>' -</ul> -</p> - -<p class=return> -The method returns the option <tt>value</tt> in case of -success, or -<b><tt>nil</tt></b> followed by an error message otherwise. -</p> - -<!-- getpeername +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="getpeername"> -connected:<b>getpeername()</b> -</p> - -<p class="description"> -Retrieves information about the peer -associated with a connected UDP object. -</p> - - -<p class=return> -Returns a string with the IP address of the peer, the -port number that peer is using for the connection, -and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>"). -In case of error, the method returns <b><tt>nil</tt></b>. -</p> - -<p class="note"> -Note: It makes no sense to call this method on unconnected objects. -</p> - -<!-- getsockname +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="getsockname"> -connected:<b>getsockname()</b><br> -unconnected:<b>getsockname()</b> -</p> - -<p class="description"> -Returns the local address information associated to the object. -</p> - - -<p class=return> -The method returns a string with local IP address, a number with -the local port, -and a string with the family ("<tt>inet</tt>" or "<tt>inet6</tt>"). -In case of error, the method returns <b><tt>nil</tt></b>. -</p> - -<p class="note"> -Note: UDP sockets are not bound to any address -until the <a href="#setsockname"><tt>setsockname</tt></a> or the -<a href="#sendto"><tt>sendto</tt></a> method is called for the -first time (in which case it is bound to an ephemeral port and the -wild-card address). -</p> - -<!-- gettimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="gettimeout"> -connected:<b>settimeout(</b>value<b>)</b><br> -unconnected:<b>settimeout(</b>value<b>)</b> -</p> - -<p class=description> -Returns the current timeout value. -</p> - - -<!-- receive +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="receive"> -connected:<b>receive(</b>[size]<b>)</b><br> -unconnected:<b>receive(</b>[size]<b>)</b> -</p> - -<p class="description"> -Receives a datagram from the UDP object. If -the UDP object is connected, only datagrams coming from the peer -are accepted. Otherwise, the returned datagram can come from any -host. -</p> - -<p class="parameters"> -The optional <tt>size</tt> parameter -specifies the maximum size of the datagram to be retrieved. If -there are more than <tt>size</tt> bytes available in the datagram, -the excess bytes are discarded. If there are less then -<tt>size</tt> bytes available in the current datagram, the -available bytes are returned. -If <tt>size</tt> is omitted, the -compile-time constant <a -href=socket.html#datagramsize><tt>socket._DATAGRAMSIZE</tt></a> is used -(it defaults to 8192 bytes). Larger sizes will cause a -temporary buffer to be allocated for the operation. -</p> - -<p class="return"> -In case of success, the method returns the -received datagram. In case of timeout, the method returns -<b><tt>nil</tt></b> followed by the string '<tt>timeout</tt>'. -</p> - -<!-- receivefrom +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="receivefrom"> -unconnected:<b>receivefrom(</b>[size]<b>)</b> -</p> - -<p class="description"> -Works exactly as the <a href="#receive"><tt>receive</tt></a> -method, except it returns the IP -address and port as extra return values (and is therefore slightly less -efficient). -</p> - -<!-- send ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="send"> -connected:<b>send(</b>datagram<b>)</b> -</p> - -<p class="description"> -Sends a datagram to the UDP peer of a connected object. -</p> - -<p class="parameters"> -<tt>Datagram</tt> is a string with the datagram contents. -The maximum datagram size for UDP is 64K minus IP layer overhead. -However datagrams larger than the link layer packet size will be -fragmented, which may deteriorate performance and/or reliability. -</p> - -<p class="return"> -If successful, the method returns 1. In case of -error, the method returns <b><tt>nil</tt></b> followed by an error message. -</p> - -<p class="note"> -Note: In UDP, the <tt>send</tt> method never blocks -and the only way it can fail is if the underlying transport layer -refuses to send a message to the specified address (i.e. no -interface accepts the address). -</p> - -<!-- sendto ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="sendto"> -unconnected:<b>sendto(</b>datagram, ip, port<b>)</b> -</p> - -<p class="description"> -Sends a datagram to the specified IP address and port number. -</p> - -<p class="parameters"> -<tt>Datagram</tt> is a string with the -datagram contents. -The maximum datagram size for UDP is 64K minus IP layer overhead. -However datagrams larger than the link layer packet size will be -fragmented, which may deteriorate performance and/or reliability. -<tt>Ip</tt> is the IP address of the recipient. -Host names are <em>not</em> allowed for performance reasons. - -<tt>Port</tt> is the port number at the recipient. -</p> - -<p class="return"> -If successful, the method returns 1. In case of -error, the method returns <b><tt>nil</tt></b> followed by an error message. -</p> - -<p class="note"> -Note: In UDP, the <tt>send</tt> method never blocks -and the only way it can fail is if the underlying transport layer -refuses to send a message to the specified address (i.e. no -interface accepts the address). -</p> - -<!-- setoption +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="setoption"> -connected:<b>setoption(</b>option [, value]<b>)</b><br> -unconnected:<b>setoption(</b>option [, value]<b>)</b> -</p> - -<p class="description"> -Sets options for the UDP object. Options are -only needed by low-level or time-critical applications. You should -only modify an option if you are sure you need it.</p> -<p class="parameters"><tt>Option</tt> is a string with the option -name, and <tt>value</tt> depends on the option being set: -</p> - -<ul> -<li> '<tt>dontroute</tt>': Indicates that outgoing -messages should bypass the standard routing facilities. -Receives a boolean value; -<li> '<tt>broadcast</tt>': Requests permission to send -broadcast datagrams on the socket. -Receives a boolean value; -<li> '<tt>reuseaddr</tt>': Indicates that the rules used in -validating addresses supplied in a <tt>bind()</tt> call -should allow reuse of local addresses. -Receives a boolean value; -<li> '<tt>reuseport</tt>': Allows completely duplicate -bindings by multiple processes if they all set -'<tt>reuseport</tt>' before binding the port. -Receives a boolean value; -<li> '<tt>ip-multicast-loop</tt>': -Specifies whether or not a copy of an outgoing multicast -datagram is delivered to the sending host as long as it is a -member of the multicast group. -Receives a boolean value; -<li> '<tt>ipv6-v6only</tt>': -Specifies whether to restrict <tt>inet6</tt> sockets to -sending and receiving only IPv6 packets. -Receive a boolean value; -<li> '<tt>ip-multicast-if</tt>': -Sets the interface over which outgoing multicast datagrams -are sent. -Receives an IP address; -<li> '<tt>ip-multicast-ttl</tt>': -Sets the Time To Live in the IP header for outgoing -multicast datagrams. -Receives a number; -<li> '<tt>ip-add-membership</tt>': -Joins the multicast group specified. -Receives a table with fields -<tt>multiaddr</tt> and <tt>interface</tt>, each containing an -IP address; -<li> '<tt>ip-drop-membership</tt>': Leaves the multicast -group specified. -Receives a table with fields -<tt>multiaddr</tt> and <tt>interface</tt>, each containing an -IP address. -</ul> - -<p class="return"> -The method returns 1 in case of success, or -<b><tt>nil</tt></b> followed by an error message otherwise. -</p> - -<p class=note> -Note: The descriptions above come from the man pages. -</p> - - -<!-- setpeername +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="setpeername"> -connected:<b>setpeername(</b>'*'<b>)</b><br> -unconnected:<b>setpeername(</b>address, port<b>)</b> -</p> - -<p class="description"> -Changes the peer of a UDP object. This -method turns an unconnected UDP object into a connected UDP -object or vice versa. -</p> - -<p class="description"> -For connected objects, outgoing datagrams -will be sent to the specified peer, and datagrams received from -other peers will be discarded by the OS. Connected UDP objects must -use the <a href="#send"><tt>send</tt></a> and -<a href="#receive"><tt>receive</tt></a> methods instead of -<a href="#sendto"><tt>sendto</tt></a> and -<a href="#receivefrom"><tt>receivefrom</tt></a>. -</p> - -<p class="parameters"> -<tt>Address</tt> can be an IP address or a -host name. <tt>Port</tt> is the port number. If <tt>address</tt> is -'<tt>*</tt>' and the object is connected, the peer association is -removed and the object becomes an unconnected object again. In that -case, the <tt>port</tt> argument is ignored. -</p> - -<p class="return"> -In case of error the method returns -<b><tt>nil</tt></b> followed by an error message. In case of success, the -method returns 1. -</p> - -<p class="note"> -Note: Since the address of the peer does not have -to be passed to and from the OS, the use of connected UDP objects -is recommended when the same peer is used for several transmissions -and can result in up to 30% performance gains. -</p> - -<p class=note> -Note: Starting with LuaSocket 3.0, the host name resolution -depends on whether the socket was created by <a -href=#socket.udp><tt>socket.udp</tt></a> or <a -href=#socket.udp6><tt>socket.udp6</tt></a>. Addresses from -the appropriate family are tried in succession until the -first success or until the last failure. -</p> - -<!-- setsockname +++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="setsockname"> -unconnected:<b>setsockname(</b>address, port<b>)</b> -</p> - -<p class="description"> -Binds the UDP object to a local address. -</p> - -<p class="parameters"> -<tt>Address</tt> can be an IP address or a -host name. If <tt>address</tt> is '<tt>*</tt>' the system binds to -all local interfaces using the constant <tt>INADDR_ANY</tt>. If -<tt>port</tt> is 0, the system chooses an ephemeral port. -</p> - -<p class="return"> -If successful, the method returns 1. In case of -error, the method returns <b><tt>nil</tt></b> followed by an error -message. -</p> - -<p class="note"> -Note: This method can only be called before any -datagram is sent through the UDP object, and only once. Otherwise, -the system automatically binds the object to all local interfaces -and chooses an ephemeral port as soon as the first datagram is -sent. After the local address is set, either automatically by the -system or explicitly by <tt>setsockname</tt>, it cannot be -changed. -</p> - -<!-- settimeout +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="settimeout"> -connected:<b>settimeout(</b>value<b>)</b><br> -unconnected:<b>settimeout(</b>value<b>)</b> -</p> - -<p class="description"> -Changes the timeout values for the object. By default, the -<a href="#receive"><tt>receive</tt></a> and -<a href="#receivefrom"><tt>receivefrom</tt></a> -operations are blocking. That is, any call to the methods will block -indefinitely, until data arrives. The <tt>settimeout</tt> function defines -a limit on the amount of time the functions can block. When a timeout is -set and the specified amount of time has elapsed, the affected methods -give up and fail with an error code. -</p> - -<p class="parameters"> -The amount of time to wait is specified as -the <tt>value</tt> parameter, in seconds. The <b><tt>nil</tt></b> timeout -<tt>value</tt> allows operations to block indefinitely. Negative -timeout values have the same effect. -</p> - -<p class="note"> -Note: In UDP, the <a href="#send"><tt>send</tt></a> -and <a href="#sentdo"><tt>sendto</tt></a> methods never block (the -datagram is just passed to the OS and the call returns -immediately). Therefore, the <tt>settimeout</tt> method has no -effect on them. -</p> - -<p class="note"> -Note: The old <tt>timeout</tt> method is -deprecated. The name has been changed for sake of uniformity, since -all other method names already contained verbs making their -imperative nature obvious. -</p> - -<!-- socket.udp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="socket.udp"> -socket.<b>udp()</b> -</p> - -<p class="description"> -Creates and returns an unconnected UDP object. -Unconnected objects support the -<a href="#sendto"><tt>sendto</tt></a>, -<a href="#receive"><tt>receive</tt></a>, -<a href="#receivefrom"><tt>receivefrom</tt></a>, -<a href="#getoption"><tt>getoption</tt></a>, -<a href="#getsockname"><tt>getsockname</tt></a>, -<a href="#setoption"><tt>setoption</tt></a>, -<a href="#settimeout"><tt>settimeout</tt></a>, -<a href="#setpeername"><tt>setpeername</tt></a>, -<a href="#setsockname"><tt>setsockname</tt></a>, and -<a href="#close"><tt>close</tt></a>. -The <a href="#setpeername"><tt>setpeername</tt></a> -is used to connect the object. -</p> - -<p class="return"> -In case of success, a new unconnected UDP object -returned. In case of error, <b><tt>nil</tt></b> is returned, followed by -an error message. -</p> - -<p class=note> -Note: The choice between IPv4 and IPv6 happens during a call to -<a href=#sendto><tt>sendto</tt></a>, <a -href=#setpeername><tt>setpeername</tt></a>, or <a -href=#setsockname><tt>sockname</tt></a>, depending on the address -family obtained from the resolver. -</p> - -<p class=note> -Note: Before the choice between IPv4 and IPv6 happens, -the internal socket object is invalid and therefore <a -href=#setoption><tt>setoption</tt></a> will fail. -</p> - -<!-- socket.udp4 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="socket.udp"> -socket.<b>udp4()</b> -</p> - -<p class="description"> -Creates and returns an unconnected IPv4 UDP object. -Unconnected objects support the -<a href="#sendto"><tt>sendto</tt></a>, -<a href="#receive"><tt>receive</tt></a>, -<a href="#receivefrom"><tt>receivefrom</tt></a>, -<a href="#getoption"><tt>getoption</tt></a>, -<a href="#getsockname"><tt>getsockname</tt></a>, -<a href="#setoption"><tt>setoption</tt></a>, -<a href="#settimeout"><tt>settimeout</tt></a>, -<a href="#setpeername"><tt>setpeername</tt></a>, -<a href="#setsockname"><tt>setsockname</tt></a>, and -<a href="#close"><tt>close</tt></a>. -The <a href="#setpeername"><tt>setpeername</tt></a> -is used to connect the object. -</p> - -<p class="return"> -In case of success, a new unconnected UDP object -returned. In case of error, <b><tt>nil</tt></b> is returned, followed by -an error message. -</p> - -<!-- socket.udp ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class="name" id="socket.udp6"> -socket.<b>udp6()</b> -</p> - -<p class="description"> -Creates and returns an unconnected IPv6 UDP object. -Unconnected objects support the -<a href="#sendto"><tt>sendto</tt></a>, -<a href="#receive"><tt>receive</tt></a>, -<a href="#receivefrom"><tt>receivefrom</tt></a>, -<a href="#getoption"><tt>getoption</tt></a>, -<a href="#getsockname"><tt>getsockname</tt></a>, -<a href="#setoption"><tt>setoption</tt></a>, -<a href="#settimeout"><tt>settimeout</tt></a>, -<a href="#setpeername"><tt>setpeername</tt></a>, -<a href="#setsockname"><tt>setsockname</tt></a>, and -<a href="#close"><tt>close</tt></a>. -The <a href="#setpeername"><tt>setpeername</tt></a> -is used to connect the object. -</p> - -<p class="return"> -In case of success, a new unconnected UDP object -returned. In case of error, <b><tt>nil</tt></b> is returned, followed by -an error message. -</p> - -<p class=note> -Note: The TCP object returned will have the option -"<tt>ipv6-v6only</tt>" set to <tt><b>true</b></tt>. -</p> - - - -<!-- footer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:26:01 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/doc/url.html b/Build/source/texk/web2c/luatexdir/luasocket/doc/url.html deleted file mode 100644 index 6ff673da565..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/doc/url.html +++ /dev/null @@ -1,328 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd"> -<html> - -<head> -<meta name="description" content="LuaSocket: URL manipulation"> -<meta name="keywords" content="Lua, LuaSocket, URL, Library, Link, Network, Support"> -<title>LuaSocket: URL support</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 width=128 height=128 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="index.html">home</a> · -<a href="index.html#download">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -</center> -<hr> -</div> - -<!-- url ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<h2 id="url">URL</h2> - -<p> -The <tt>url</tt> namespace provides functions to parse, protect, -and build URLs, as well as functions to compose absolute URLs -from base and relative URLs, according to -<a href="http://www.ietf.org/rfc/rfc2396.txt">RFC 2396</a>. -</p> - -<p> -To obtain the <tt>url</tt> namespace, run: -</p> - -<pre class=example> --- loads the URL module -local url = require("socket.url") -</pre> - -<p> -An URL is defined by the following grammar: -</p> - -<blockquote> -<tt> -<url> ::= [<scheme>:][//<authority>][/<path>][;<params>][?<query>][#<fragment>]<br> -<authority> ::= [<userinfo>@]<host>[:<port>]<br> -<userinfo> ::= <user>[:<password>]<br> -<path> ::= {<segment>/}<segment><br> -</tt> -</blockquote> - -<!-- absolute +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="absolute"> -url.<b>absolute(</b>base, relative<b>)</b> -</p> - -<p class=description> -Builds an absolute URL from a base URL and a relative URL. -</p> - -<p class=parameters> -<tt>Base</tt> is a string with the base URL or -a parsed URL table. <tt>Relative</tt> is a -string with the relative URL. -</p> - -<p class=return> -The function returns a string with the absolute URL. -</p> - -<p class=note> -Note: The rules that -govern the composition are fairly complex, and are described in detail in -<a href="http://www.ietf.org/rfc/rfc2396.txt">RFC 2396</a>. -The example bellow should give an idea of what the rules are. -</p> - -<pre class=example> -http://a/b/c/d;p?q - -+ - -g:h = g:h -g = http://a/b/c/g -./g = http://a/b/c/g -g/ = http://a/b/c/g/ -/g = http://a/g -//g = http://g -?y = http://a/b/c/?y -g?y = http://a/b/c/g?y -#s = http://a/b/c/d;p?q#s -g#s = http://a/b/c/g#s -g?y#s = http://a/b/c/g?y#s -;x = http://a/b/c/;x -g;x = http://a/b/c/g;x -g;x?y#s = http://a/b/c/g;x?y#s -. = http://a/b/c/ -./ = http://a/b/c/ -.. = http://a/b/ -../ = http://a/b/ -../g = http://a/b/g -../.. = http://a/ -../../ = http://a/ -../../g = http://a/g -</pre> - -<!-- build ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="build"> -url.<b>build(</b>parsed_url<b>)</b> -</p> - -<p class=description> -Rebuilds an URL from its parts. -</p> - -<p class=parameters> -<tt>Parsed_url</tt> is a table with same components returned by -<a href="#parse"><tt>parse</tt></a>. -Lower level components, if specified, -take precedence over high level components of the URL grammar. -</p> - -<p class=return> -The function returns a string with the built URL. -</p> - -<!-- build_path +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="build_path"> -url.<b>build_path(</b>segments, unsafe<b>)</b> -</p> - -<p class=description> -Builds a <tt><path></tt> component from a list of -<tt><segment></tt> parts. -Before composition, any reserved characters found in a segment are escaped into -their protected form, so that the resulting path is a valid URL path -component. -</p> - -<p class=parameters> -<tt>Segments</tt> is a list of strings with the <tt><segment></tt> -parts. If <tt>unsafe</tt> is anything but <b><tt>nil</tt></b>, reserved -characters are left untouched. -</p> - -<p class=return> -The function returns a string with the -built <tt><path></tt> component. -</p> - -<!-- escape +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="escape"> -url.<b>escape(</b>content<b>)</b> -</p> - -<p class=description> -Applies the URL escaping content coding to a string -Each byte is encoded as a percent character followed -by the two byte hexadecimal representation of its integer -value. -</p> - -<p class=parameters> -<tt>Content</tt> is the string to be encoded. -</p> - -<p class=result> -The function returns the encoded string. -</p> - -<pre class=example> --- load url module -url = require("socket.url") - -code = url.escape("/#?;") --- code = "%2f%23%3f%3b" -</pre> - -<!-- parse ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="parse"> -url.<b>parse(</b>url, default<b>)</b> -</p> - -<p class=description> -Parses an URL given as a string into a Lua table with its components. -</p> - -<p class=parameters> -<tt>Url</tt> is the URL to be parsed. If the <tt>default</tt> table is -present, it is used to store the parsed fields. Only fields present in the -URL are overwritten. Therefore, this table can be used to pass default -values for each field. -</p> - -<p class=return> -The function returns a table with all the URL components: -</p> - -<blockquote><tt> -parsed_url = {<br> - url = <i>string</i>,<br> - scheme = <i>string</i>,<br> - authority = <i>string</i>,<br> - path = <i>string</i>,<br> - params = <i>string</i>,<br> - query = <i>string</i>,<br> - fragment = <i>string</i>,<br> - userinfo = <i>string</i>,<br> - host = <i>string</i>,<br> - port = <i>string</i>,<br> - user = <i>string</i>,<br> - password = <i>string</i><br> -} -</tt></blockquote> - -<pre class=example> --- load url module -url = require("socket.url") - -parsed_url = url.parse("http://www.example.com/cgilua/index.lua?a=2#there") --- parsed_url = { --- scheme = "http", --- authority = "www.example.com", --- path = "/cgilua/index.lua" --- query = "a=2", --- fragment = "there", --- host = "www.puc-rio.br", --- } - -parsed_url = url.parse("ftp://root:passwd@unsafe.org/pub/virus.exe;type=i") --- parsed_url = { --- scheme = "ftp", --- authority = "root:passwd@unsafe.org", --- path = "/pub/virus.exe", --- params = "type=i", --- userinfo = "root:passwd", --- host = "unsafe.org", --- user = "root", --- password = "passwd", --- } -</pre> - -<!-- parse_path +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="parse_path"> -url.<b>parse_path(</b>path<b>)</b> -</p> - -<p class=description> -Breaks a <tt><path></tt> URL component into all its -<tt><segment></tt> parts. -</p> - -<p class=description> -<tt>Path</tt> is a string with the path to be parsed. -</p> - -<p class=return> -Since some characters are reserved in URLs, they must be escaped -whenever present in a <tt><path></tt> component. Therefore, before -returning a list with all the parsed segments, the function removes -escaping from all of them. -</p> - -<!-- unescape +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<p class=name id="unescape"> -url.<b>unescape(</b>content<b>)</b> -</p> - -<p class=description> -Removes the URL escaping content coding from a string. -</p> - -<p class=parameters> -<tt>Content</tt> is the string to be decoded. -</p> - -<p class=return> -The function returns the decoded string. -</p> - -<!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - -<div class=footer> -<hr> -<center> -<p class=bar> -<a href="index.html">home</a> · -<a href="index.html#down">download</a> · -<a href="installation.html">installation</a> · -<a href="introduction.html">introduction</a> · -<a href="reference.html">reference</a> -</p> -<p> -<small> -Last modified by Diego Nehab on <br> -Thu Apr 20 00:26:05 EDT 2006 -</small> -</p> -</center> -</div> - -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/README b/Build/source/texk/web2c/luatexdir/luasocket/etc/README deleted file mode 100644 index cfd3e372fad..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/README +++ /dev/null @@ -1,89 +0,0 @@ -This directory contains code that is more useful than the -samples. This code *is* supported. - - tftp.lua -- Trivial FTP client - -This module implements file retrieval by the TFTP protocol. -Its main use was to test the UDP code, but since someone -found it usefull, I turned it into a module that is almost -official (no uploads, yet). - - dict.lua -- Dict client - -The dict.lua module started with a cool simple client -for the DICT protocol, written by Luiz Henrique Figueiredo. -This new version has been converted into a library, similar -to the HTTP and FTP libraries, that can be used from within -any luasocket application. Take a look on the source code -and you will be able to figure out how to use it. - - lp.lua -- LPD client library - -The lp.lua module implements the client part of the Line -Printer Daemon protocol, used to print files on Unix -machines. It is courtesy of David Burgess! See the source -code and the lpr.lua in the examples directory. - - b64.lua - qp.lua - eol.lua - -These are tiny programs that perform Base64, -Quoted-Printable and end-of-line marker conversions. - - get.lua -- file retriever - -This little program is a client that uses the FTP and -HTTP code to implement a command line file graber. Just -run - - lua get.lua <remote-file> [<local-file>] - -to download a remote file (either ftp:// or http://) to -the specified local file. The program also prints the -download throughput, elapsed time, bytes already downloaded -etc during download. - - check-memory.lua -- checks memory consumption - -This is just to see how much memory each module uses. - - dispatch.lua -- coroutine based dispatcher - -This is a first try at a coroutine based non-blocking -dispatcher for LuaSocket. Take a look at 'check-links.lua' -and at 'forward.lua' to see how to use it. - - check-links.lua -- HTML link checker program - -This little program scans a HTML file and checks for broken -links. It is similar to check-links.pl by Jamie Zawinski, -but uses all facilities of the LuaSocket library and the Lua -language. It has not been thoroughly tested, but it should -work. Just run - - lua check-links.lua [-n] {<url>} > output - -and open the result to see a list of broken links. Make sure -you check the '-n' switch. It runs in non-blocking mode, -using coroutines, and is MUCH faster! - - forward.lua -- coroutine based forward server - -This is a forward server that can accept several connections -and transfers simultaneously using non-blocking I/O and the -coroutine-based dispatcher. You can run, for example - - lua forward.lua 8080:proxy.com:3128 - -to redirect all local conections to port 8080 to the host -'proxy.com' at port 3128. - - unix.c and unix.h - -This is an implementation of Unix local domain sockets and -demonstrates how to extend LuaSocket with a new type of -transport. It has been tested on Linux and on Mac OS X. - -Good luck, -Diego. diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/b64.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/b64.lua deleted file mode 100644 index 11eeb2d2d74..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/b64.lua +++ /dev/null @@ -1,19 +0,0 @@ ------------------------------------------------------------------------------ --- Little program to convert to and from Base64 --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local ltn12 = require("ltn12") -local mime = require("mime") -local source = ltn12.source.file(io.stdin) -local sink = ltn12.sink.file(io.stdout) -local convert -if arg and arg[1] == '-d' then - convert = mime.decode("base64") -else - local base64 = mime.encode("base64") - local wrap = mime.wrap() - convert = ltn12.filter.chain(base64, wrap) -end -sink = ltn12.sink.chain(convert, sink) -ltn12.pump.all(source, sink) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/check-links.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/check-links.lua deleted file mode 100644 index 283f3ac2f63..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/check-links.lua +++ /dev/null @@ -1,111 +0,0 @@ ------------------------------------------------------------------------------ --- Little program that checks links in HTML files, using coroutines and --- non-blocking I/O via the dispatcher module. --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local url = require("socket.url") -local dispatch = require("dispatch") -local http = require("socket.http") -dispatch.TIMEOUT = 10 - --- make sure the user knows how to invoke us -arg = arg or {} -if #arg < 1 then - print("Usage:\n luasocket check-links.lua [-n] {<url>}") - exit() -end - --- '-n' means we are running in non-blocking mode -if arg[1] == "-n" then - -- if non-blocking I/O was requested, use real dispatcher interface - table.remove(arg, 1) - handler = dispatch.newhandler("coroutine") -else - -- if using blocking I/O, use fake dispatcher interface - handler = dispatch.newhandler("sequential") -end - -local nthreads = 0 - --- get the status of a URL using the dispatcher -function getstatus(link) - local parsed = url.parse(link, {scheme = "file"}) - if parsed.scheme == "http" then - nthreads = nthreads + 1 - handler:start(function() - local r, c, h, s = http.request{ - method = "HEAD", - url = link, - create = handler.tcp - } - if r and c == 200 then io.write('\t', link, '\n') - else io.write('\t', link, ': ', tostring(c), '\n') end - nthreads = nthreads - 1 - end) - end -end - -function readfile(path) - path = url.unescape(path) - local file, error = io.open(path, "r") - if file then - local body = file:read("*a") - file:close() - return body - else return nil, error end -end - -function load(u) - local parsed = url.parse(u, { scheme = "file" }) - local body, headers, code, error - local base = u - if parsed.scheme == "http" then - body, code, headers = http.request(u) - if code == 200 then - -- if there was a redirect, update base to reflect it - base = headers.location or base - end - if not body then - error = code - end - elseif parsed.scheme == "file" then - body, error = readfile(parsed.path) - else error = string.format("unhandled scheme '%s'", parsed.scheme) end - return base, body, error -end - -function getlinks(body, base) - -- get rid of comments - body = string.gsub(body, "%<%!%-%-.-%-%-%>", "") - local links = {} - -- extract links - body = string.gsub(body, '[Hh][Rr][Ee][Ff]%s*=%s*"([^"]*)"', function(href) - table.insert(links, url.absolute(base, href)) - end) - body = string.gsub(body, "[Hh][Rr][Ee][Ff]%s*=%s*'([^']*)'", function(href) - table.insert(links, url.absolute(base, href)) - end) - string.gsub(body, "[Hh][Rr][Ee][Ff]%s*=%s*(.-)>", function(href) - table.insert(links, url.absolute(base, href)) - end) - return links -end - -function checklinks(address) - local base, body, error = load(address) - if not body then print(error) return end - print("Checking ", base) - local links = getlinks(body, base) - for _, link in ipairs(links) do - getstatus(link) - end -end - -for _, address in ipairs(arg) do - checklinks(url.absolute("file:", address)) -end - -while nthreads > 0 do - handler:step() -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/check-memory.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/check-memory.lua deleted file mode 100644 index 7bd984d8ee8..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/check-memory.lua +++ /dev/null @@ -1,17 +0,0 @@ -function load(s) - collectgarbage() - local a = gcinfo() - _G[s] = require(s) - collectgarbage() - local b = gcinfo() - print(s .. ":\t " .. (b-a) .. "k") -end - -load("socket.url") -load("ltn12") -load("socket") -load("mime") -load("socket.tp") -load("socket.smtp") -load("socket.http") -load("socket.ftp") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/cookie.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/cookie.lua deleted file mode 100644 index 4adb40317c9..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/cookie.lua +++ /dev/null @@ -1,88 +0,0 @@ -local socket = require"socket" -local http = require"socket.http" -local url = require"socket.url" -local ltn12 = require"ltn12" - -local token_class = '[^%c%s%(%)%<%>%@%,%;%:%\\%"%/%[%]%?%=%{%}]' - -local function unquote(t, quoted) - local n = string.match(t, "%$(%d+)$") - if n then n = tonumber(n) end - if quoted[n] then return quoted[n] - else return t end -end - -local function parse_set_cookie(c, quoted, cookie_table) - c = c .. ";$last=last;" - local _, __, n, v, i = string.find(c, "(" .. token_class .. - "+)%s*=%s*(.-)%s*;%s*()") - local cookie = { - name = n, - value = unquote(v, quoted), - attributes = {} - } - while 1 do - _, __, n, v, i = string.find(c, "(" .. token_class .. - "+)%s*=?%s*(.-)%s*;%s*()", i) - if not n or n == "$last" then break end - cookie.attributes[#cookie.attributes+1] = { - name = n, - value = unquote(v, quoted) - } - end - cookie_table[#cookie_table+1] = cookie -end - -local function split_set_cookie(s, cookie_table) - cookie_table = cookie_table or {} - -- remove quoted strings from cookie list - local quoted = {} - s = string.gsub(s, '"(.-)"', function(q) - quoted[#quoted+1] = q - return "$" .. #quoted - end) - -- add sentinel - s = s .. ",$last=" - -- split into individual cookies - i = 1 - while 1 do - local _, __, cookie, next_token - _, __, cookie, i, next_token = string.find(s, "(.-)%s*%,%s*()(" .. - token_class .. "+)%s*=", i) - if not next_token then break end - parse_set_cookie(cookie, quoted, cookie_table) - if next_token == "$last" then break end - end - return cookie_table -end - -local function quote(s) - if string.find(s, "[ %,%;]") then return '"' .. s .. '"' - else return s end -end - -local _empty = {} -local function build_cookies(cookies) - s = "" - for i,v in ipairs(cookies or _empty) do - if v.name then - s = s .. v.name - if v.value and v.value ~= "" then - s = s .. '=' .. quote(v.value) - end - end - if v.name and #(v.attributes or _empty) > 0 then s = s .. "; " end - for j,u in ipairs(v.attributes or _empty) do - if u.name then - s = s .. u.name - if u.value and u.value ~= "" then - s = s .. '=' .. quote(u.value) - end - end - if j < #v.attributes then s = s .. "; " end - end - if i < #cookies then s = s .. ", " end - end - return s -end - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/dict.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/dict.lua deleted file mode 100644 index 8c5b711c139..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/dict.lua +++ /dev/null @@ -1,151 +0,0 @@ ------------------------------------------------------------------------------ --- Little program to download DICT word definitions --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ --- Load required modules ------------------------------------------------------------------------------ -local base = _G -local string = require("string") -local table = require("table") -local socket = require("socket") -local url = require("socket.url") -local tp = require("socket.tp") -module("socket.dict") - ------------------------------------------------------------------------------ --- Globals ------------------------------------------------------------------------------ -HOST = "dict.org" -PORT = 2628 -TIMEOUT = 10 - ------------------------------------------------------------------------------ --- Low-level dict API ------------------------------------------------------------------------------ -local metat = { __index = {} } - -function open(host, port) - local tp = socket.try(tp.connect(host or HOST, port or PORT, TIMEOUT)) - return base.setmetatable({tp = tp}, metat) -end - -function metat.__index:greet() - return socket.try(self.tp:check(220)) -end - -function metat.__index:check(ok) - local code, status = socket.try(self.tp:check(ok)) - return code, - base.tonumber(socket.skip(2, string.find(status, "^%d%d%d (%d*)"))) -end - -function metat.__index:getdef() - local line = socket.try(self.tp:receive()) - local def = {} - while line ~= "." do - table.insert(def, line) - line = socket.try(self.tp:receive()) - end - return table.concat(def, "\n") -end - -function metat.__index:define(database, word) - database = database or "!" - socket.try(self.tp:command("DEFINE", database .. " " .. word)) - local code, count = self:check(150) - local defs = {} - for i = 1, count do - self:check(151) - table.insert(defs, self:getdef()) - end - self:check(250) - return defs -end - -function metat.__index:match(database, strat, word) - database = database or "!" - strat = strat or "." - socket.try(self.tp:command("MATCH", database .." ".. strat .." ".. word)) - self:check(152) - local mat = {} - local line = socket.try(self.tp:receive()) - while line ~= '.' do - database, word = socket.skip(2, string.find(line, "(%S+) (.*)")) - if not mat[database] then mat[database] = {} end - table.insert(mat[database], word) - line = socket.try(self.tp:receive()) - end - self:check(250) - return mat -end - -function metat.__index:quit() - self.tp:command("QUIT") - return self:check(221) -end - -function metat.__index:close() - return self.tp:close() -end - ------------------------------------------------------------------------------ --- High-level dict API ------------------------------------------------------------------------------ -local default = { - scheme = "dict", - host = "dict.org" -} - -local function there(f) - if f == "" then return nil - else return f end -end - -local function parse(u) - local t = socket.try(url.parse(u, default)) - socket.try(t.scheme == "dict", "invalid scheme '" .. t.scheme .. "'") - socket.try(t.path, "invalid path in url") - local cmd, arg = socket.skip(2, string.find(t.path, "^/(.)(.*)$")) - socket.try(cmd == "d" or cmd == "m", "<command> should be 'm' or 'd'") - socket.try(arg and arg ~= "", "need at least <word> in URL") - t.command, t.argument = cmd, arg - arg = string.gsub(arg, "^:([^:]+)", function(f) t.word = f end) - socket.try(t.word, "need at least <word> in URL") - arg = string.gsub(arg, "^:([^:]*)", function(f) t.database = there(f) end) - if cmd == "m" then - arg = string.gsub(arg, "^:([^:]*)", function(f) t.strat = there(f) end) - end - string.gsub(arg, ":([^:]*)$", function(f) t.n = base.tonumber(f) end) - return t -end - -local function tget(gett) - local con = open(gett.host, gett.port) - con:greet() - if gett.command == "d" then - local def = con:define(gett.database, gett.word) - con:quit() - con:close() - if gett.n then return def[gett.n] - else return def end - elseif gett.command == "m" then - local mat = con:match(gett.database, gett.strat, gett.word) - con:quit() - con:close() - return mat - else return nil, "invalid command" end -end - -local function sget(u) - local gett = parse(u) - return tget(gett) -end - -get = socket.protect(function(gett) - if base.type(gett) == "string" then return sget(gett) - else return tget(gett) end -end) - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/dispatch.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/dispatch.lua deleted file mode 100644 index 24854155408..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/dispatch.lua +++ /dev/null @@ -1,307 +0,0 @@ ------------------------------------------------------------------------------ --- A hacked dispatcher module --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local base = _G -local table = require("table") -local string = require("string") -local socket = require("socket") -local coroutine = require("coroutine") -module("dispatch") - --- if too much time goes by without any activity in one of our sockets, we --- just kill it -TIMEOUT = 60 - ------------------------------------------------------------------------------ --- We implement 3 types of dispatchers: --- sequential --- coroutine --- threaded --- The user can choose whatever one is needed ------------------------------------------------------------------------------ -local handlert = {} - --- default handler is coroutine -function newhandler(mode) - mode = mode or "coroutine" - return handlert[mode]() -end - -local function seqstart(self, func) - return func() -end - --- sequential handler simply calls the functions and doesn't wrap I/O -function handlert.sequential() - return { - tcp = socket.tcp, - start = seqstart - } -end - ------------------------------------------------------------------------------ --- Mega hack. Don't try to do this at home. ------------------------------------------------------------------------------ --- we can't yield across calls to protect on Lua 5.1, so we rewrite it with --- coroutines --- make sure you don't require any module that uses socket.protect before --- loading our hack -if string.sub(base._VERSION, -3) == "5.1" then - local function _protect(co, status, ...) - if not status then - local msg = ... - if base.type(msg) == 'table' then - return nil, msg[1] - else - base.error(msg, 0) - end - end - if coroutine.status(co) == "suspended" then - return _protect(co, coroutine.resume(co, coroutine.yield(...))) - else - return ... - end - end - - function socket.protect(f) - return function(...) - local co = coroutine.create(f) - return _protect(co, coroutine.resume(co, ...)) - end - end -end - ------------------------------------------------------------------------------ --- Simple set data structure. O(1) everything. ------------------------------------------------------------------------------ -local function newset() - local reverse = {} - local set = {} - return base.setmetatable(set, {__index = { - insert = function(set, value) - if not reverse[value] then - table.insert(set, value) - reverse[value] = #set - end - end, - remove = function(set, value) - local index = reverse[value] - if index then - reverse[value] = nil - local top = table.remove(set) - if top ~= value then - reverse[top] = index - set[index] = top - end - end - end - }}) -end - ------------------------------------------------------------------------------ --- socket.tcp() wrapper for the coroutine dispatcher ------------------------------------------------------------------------------ -local function cowrap(dispatcher, tcp, error) - if not tcp then return nil, error end - -- put it in non-blocking mode right away - tcp:settimeout(0) - -- metatable for wrap produces new methods on demand for those that we - -- don't override explicitly. - local metat = { __index = function(table, key) - table[key] = function(...) - return tcp[key](tcp,select(2,...)) - end - return table[key] - end} - -- does our user want to do his own non-blocking I/O? - local zero = false - -- create a wrap object that will behave just like a real socket object - local wrap = { } - -- we ignore settimeout to preserve our 0 timeout, but record whether - -- the user wants to do his own non-blocking I/O - function wrap:settimeout(value, mode) - if value == 0 then zero = true - else zero = false end - return 1 - end - -- send in non-blocking mode and yield on timeout - function wrap:send(data, first, last) - first = (first or 1) - 1 - local result, error - while true do - -- return control to dispatcher and tell it we want to send - -- if upon return the dispatcher tells us we timed out, - -- return an error to whoever called us - if coroutine.yield(dispatcher.sending, tcp) == "timeout" then - return nil, "timeout" - end - -- try sending - result, error, first = tcp:send(data, first+1, last) - -- if we are done, or there was an unexpected error, - -- break away from loop - if error ~= "timeout" then return result, error, first end - end - end - -- receive in non-blocking mode and yield on timeout - -- or simply return partial read, if user requested timeout = 0 - function wrap:receive(pattern, partial) - local error = "timeout" - local value - while true do - -- return control to dispatcher and tell it we want to receive - -- if upon return the dispatcher tells us we timed out, - -- return an error to whoever called us - if coroutine.yield(dispatcher.receiving, tcp) == "timeout" then - return nil, "timeout" - end - -- try receiving - value, error, partial = tcp:receive(pattern, partial) - -- if we are done, or there was an unexpected error, - -- break away from loop. also, if the user requested - -- zero timeout, return all we got - if (error ~= "timeout") or zero then - return value, error, partial - end - end - end - -- connect in non-blocking mode and yield on timeout - function wrap:connect(host, port) - local result, error = tcp:connect(host, port) - if error == "timeout" then - -- return control to dispatcher. we will be writable when - -- connection succeeds. - -- if upon return the dispatcher tells us we have a - -- timeout, just abort - if coroutine.yield(dispatcher.sending, tcp) == "timeout" then - return nil, "timeout" - end - -- when we come back, check if connection was successful - result, error = tcp:connect(host, port) - if result or error == "already connected" then return 1 - else return nil, "non-blocking connect failed" end - else return result, error end - end - -- accept in non-blocking mode and yield on timeout - function wrap:accept() - while 1 do - -- return control to dispatcher. we will be readable when a - -- connection arrives. - -- if upon return the dispatcher tells us we have a - -- timeout, just abort - if coroutine.yield(dispatcher.receiving, tcp) == "timeout" then - return nil, "timeout" - end - local client, error = tcp:accept() - if error ~= "timeout" then - return cowrap(dispatcher, client, error) - end - end - end - -- remove cortn from context - function wrap:close() - dispatcher.stamp[tcp] = nil - dispatcher.sending.set:remove(tcp) - dispatcher.sending.cortn[tcp] = nil - dispatcher.receiving.set:remove(tcp) - dispatcher.receiving.cortn[tcp] = nil - return tcp:close() - end - return base.setmetatable(wrap, metat) -end - - ------------------------------------------------------------------------------ --- Our coroutine dispatcher ------------------------------------------------------------------------------ -local cometat = { __index = {} } - -function schedule(cortn, status, operation, tcp) - if status then - if cortn and operation then - operation.set:insert(tcp) - operation.cortn[tcp] = cortn - operation.stamp[tcp] = socket.gettime() - end - else base.error(operation) end -end - -function kick(operation, tcp) - operation.cortn[tcp] = nil - operation.set:remove(tcp) -end - -function wakeup(operation, tcp) - local cortn = operation.cortn[tcp] - -- if cortn is still valid, wake it up - if cortn then - kick(operation, tcp) - return cortn, coroutine.resume(cortn) - -- othrewise, just get scheduler not to do anything - else - return nil, true - end -end - -function abort(operation, tcp) - local cortn = operation.cortn[tcp] - if cortn then - kick(operation, tcp) - coroutine.resume(cortn, "timeout") - end -end - --- step through all active cortns -function cometat.__index:step() - -- check which sockets are interesting and act on them - local readable, writable = socket.select(self.receiving.set, - self.sending.set, 1) - -- for all readable connections, resume their cortns and reschedule - -- when they yield back to us - for _, tcp in base.ipairs(readable) do - schedule(wakeup(self.receiving, tcp)) - end - -- for all writable connections, do the same - for _, tcp in base.ipairs(writable) do - schedule(wakeup(self.sending, tcp)) - end - -- politely ask replacement I/O functions in idle cortns to - -- return reporting a timeout - local now = socket.gettime() - for tcp, stamp in base.pairs(self.stamp) do - if tcp.class == "tcp{client}" and now - stamp > TIMEOUT then - abort(self.sending, tcp) - abort(self.receiving, tcp) - end - end -end - -function cometat.__index:start(func) - local cortn = coroutine.create(func) - schedule(cortn, coroutine.resume(cortn)) -end - -function handlert.coroutine() - local stamp = {} - local dispatcher = { - stamp = stamp, - sending = { - name = "sending", - set = newset(), - cortn = {}, - stamp = stamp - }, - receiving = { - name = "receiving", - set = newset(), - cortn = {}, - stamp = stamp - }, - } - function dispatcher.tcp() - return cowrap(dispatcher, socket.tcp()) - end - return base.setmetatable(dispatcher, cometat) -end - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/eol.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/eol.lua deleted file mode 100644 index eeaf0ce0327..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/eol.lua +++ /dev/null @@ -1,13 +0,0 @@ ------------------------------------------------------------------------------ --- Little program to adjust end of line markers. --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local mime = require("mime") -local ltn12 = require("ltn12") -local marker = '\n' -if arg and arg[1] == '-d' then marker = '\r\n' end -local filter = mime.normalize(marker) -local source = ltn12.source.chain(ltn12.source.file(io.stdin), filter) -local sink = ltn12.sink.file(io.stdout) -ltn12.pump.all(source, sink) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/forward.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/forward.lua deleted file mode 100644 index 05ced1aede8..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/forward.lua +++ /dev/null @@ -1,65 +0,0 @@ --- load our favourite library -local dispatch = require("dispatch") -local handler = dispatch.newhandler() - --- make sure the user knows how to invoke us -if #arg < 1 then - print("Usage") - print(" lua forward.lua <iport:ohost:oport> ...") - os.exit(1) -end - --- function to move data from one socket to the other -local function move(foo, bar) - local live - while 1 do - local data, error, partial = foo:receive(2048) - live = data or error == "timeout" - data = data or partial - local result, error = bar:send(data) - if not live or not result then - foo:close() - bar:close() - break - end - end -end - --- for each tunnel, start a new server -for i, v in ipairs(arg) do - -- capture forwarding parameters - local _, _, iport, ohost, oport = string.find(v, "([^:]+):([^:]+):([^:]+)") - assert(iport, "invalid arguments") - -- create our server socket - local server = assert(handler.tcp()) - assert(server:setoption("reuseaddr", true)) - assert(server:bind("*", iport)) - assert(server:listen(32)) - -- handler for the server object loops accepting new connections - handler:start(function() - while 1 do - local client = assert(server:accept()) - assert(client:settimeout(0)) - -- for each new connection, start a new client handler - handler:start(function() - -- handler tries to connect to peer - local peer = assert(handler.tcp()) - assert(peer:settimeout(0)) - assert(peer:connect(ohost, oport)) - -- if sucessful, starts a new handler to send data from - -- client to peer - handler:start(function() - move(client, peer) - end) - -- afte starting new handler, enter in loop sending data from - -- peer to client - move(peer, client) - end) - end - end) -end - --- simply loop stepping the server -while 1 do - handler:step() -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/get.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/get.lua deleted file mode 100644 index 9edc2357027..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/get.lua +++ /dev/null @@ -1,141 +0,0 @@ ------------------------------------------------------------------------------ --- Little program to download files from URLs --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local socket = require("socket") -local http = require("socket.http") -local ftp = require("socket.ftp") -local url = require("socket.url") -local ltn12 = require("ltn12") - --- formats a number of seconds into human readable form -function nicetime(s) - local l = "s" - if s > 60 then - s = s / 60 - l = "m" - if s > 60 then - s = s / 60 - l = "h" - if s > 24 then - s = s / 24 - l = "d" -- hmmm - end - end - end - if l == "s" then return string.format("%5.0f%s", s, l) - else return string.format("%5.2f%s", s, l) end -end - --- formats a number of bytes into human readable form -function nicesize(b) - local l = "B" - if b > 1024 then - b = b / 1024 - l = "KB" - if b > 1024 then - b = b / 1024 - l = "MB" - if b > 1024 then - b = b / 1024 - l = "GB" -- hmmm - end - end - end - return string.format("%7.2f%2s", b, l) -end - --- returns a string with the current state of the download -local remaining_s = "%s received, %s/s throughput, %2.0f%% done, %s remaining" -local elapsed_s = "%s received, %s/s throughput, %s elapsed " -function gauge(got, delta, size) - local rate = got / delta - if size and size >= 1 then - return string.format(remaining_s, nicesize(got), nicesize(rate), - 100*got/size, nicetime((size-got)/rate)) - else - return string.format(elapsed_s, nicesize(got), - nicesize(rate), nicetime(delta)) - end -end - --- creates a new instance of a receive_cb that saves to disk --- kind of copied from luasocket's manual callback examples -function stats(size) - local start = socket.gettime() - local last = start - local got = 0 - return function(chunk) - -- elapsed time since start - local current = socket.gettime() - if chunk then - -- total bytes received - got = got + string.len(chunk) - -- not enough time for estimate - if current - last > 1 then - io.stderr:write("\r", gauge(got, current - start, size)) - io.stderr:flush() - last = current - end - else - -- close up - io.stderr:write("\r", gauge(got, current - start), "\n") - end - return chunk - end -end - --- determines the size of a http file -function gethttpsize(u) - local r, c, h = http.request {method = "HEAD", url = u} - if c == 200 then - return tonumber(h["content-length"]) - end -end - --- downloads a file using the http protocol -function getbyhttp(u, file) - local save = ltn12.sink.file(file or io.stdout) - -- only print feedback if output is not stdout - if file then save = ltn12.sink.chain(stats(gethttpsize(u)), save) end - local r, c, h, s = http.request {url = u, sink = save } - if c ~= 200 then io.stderr:write(s or c, "\n") end -end - --- downloads a file using the ftp protocol -function getbyftp(u, file) - local save = ltn12.sink.file(file or io.stdout) - -- only print feedback if output is not stdout - -- and we don't know how big the file is - if file then save = ltn12.sink.chain(stats(), save) end - local gett = url.parse(u) - gett.sink = save - gett.type = "i" - local ret, err = ftp.get(gett) - if err then print(err) end -end - --- determines the scheme -function getscheme(u) - -- this is an heuristic to solve a common invalid url poblem - if not string.find(u, "//") then u = "//" .. u end - local parsed = url.parse(u, {scheme = "http"}) - return parsed.scheme -end - --- gets a file either by http or ftp, saving as <name> -function get(u, name) - local fout = name and io.open(name, "wb") - local scheme = getscheme(u) - if scheme == "ftp" then getbyftp(u, fout) - elseif scheme == "http" then getbyhttp(u, fout) - else print("unknown scheme" .. scheme) end -end - --- main program -arg = arg or {} -if #arg < 1 then - io.write("Usage:\n lua get.lua <remote-url> [<local-file>]\n") - os.exit(1) -else get(arg[1], arg[2]) end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/links b/Build/source/texk/web2c/luatexdir/luasocket/etc/links deleted file mode 100644 index 087f1c0e4ae..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/links +++ /dev/null @@ -1,17 +0,0 @@ -<a href="http://www.cs.princeton.edu"> bla </a> -<a href="http://www.princeton.edu"> bla </a> -<a href="http://www.tecgraf.puc-rio.br"> bla </a> -<a href="http://www.inf.puc-rio.br"> bla </a> -<a href="http://www.puc-rio.br"> bla </a> -<a href="http://www.impa.br"> bla </a> -<a href="http://www.lua.org"> bla </a> -<a href="http://www.lua-users.org"> bla </a> -<a href="http://www.amazon.com"> bla </a> -<a href="http://www.google.com"> bla </a> -<a href="http://www.nytimes.com"> bla </a> -<a href="http://www.bbc.co.uk"> bla </a> -<a href="http://oglobo.globo.com"> bla </a> -<a href="http://slate.msn.com"> bla </a> -<a href="http://www.apple.com"> bla </a> -<a href="http://www.microsoft.com"> bla </a> -<a href="http://www.nasa.gov"> bla </a> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/lp.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/lp.lua deleted file mode 100644 index 25f0b95e15e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/lp.lua +++ /dev/null @@ -1,323 +0,0 @@ ------------------------------------------------------------------------------ --- LPD support for the Lua language --- LuaSocket toolkit. --- Author: David Burgess --- Modified by Diego Nehab, but David is in charge ------------------------------------------------------------------------------ ---[[ - if you have any questions: RFC 1179 -]] --- make sure LuaSocket is loaded -local io = require("io") -local base = _G -local os = require("os") -local math = require("math") -local string = require("string") -local socket = require("socket") -local ltn12 = require("ltn12") -module("socket.lp") - --- default port -PORT = 515 -SERVER = os.getenv("SERVER_NAME") or os.getenv("COMPUTERNAME") or "localhost" -PRINTER = os.getenv("PRINTER") or "printer" - -local function connect(localhost, option) - local host = option.host or SERVER - local port = option.port or PORT - local skt - local try = socket.newtry(function() if skt then skt:close() end end) - if option.localbind then - -- bind to a local port (if we can) - local localport = 721 - local done, err - repeat - skt = socket.try(socket.tcp()) - try(skt:settimeout(30)) - done, err = skt:bind(localhost, localport) - if not done then - localport = localport + 1 - skt:close() - skt = nil - else break end - until localport > 731 - socket.try(skt, err) - else skt = socket.try(socket.tcp()) end - try(skt:connect(host, port)) - return { skt = skt, try = try } -end - ---[[ -RFC 1179 -5.3 03 - Send queue state (short) - - +----+-------+----+------+----+ - | 03 | Queue | SP | List | LF | - +----+-------+----+------+----+ - Command code - 3 - Operand 1 - Printer queue name - Other operands - User names or job numbers - - If the user names or job numbers or both are supplied then only those - jobs for those users or with those numbers will be sent. - - The response is an ASCII stream which describes the printer queue. - The stream continues until the connection closes. Ends of lines are - indicated with ASCII LF control characters. The lines may also - contain ASCII HT control characters. - -5.4 04 - Send queue state (long) - - +----+-------+----+------+----+ - | 04 | Queue | SP | List | LF | - +----+-------+----+------+----+ - Command code - 4 - Operand 1 - Printer queue name - Other operands - User names or job numbers - - If the user names or job numbers or both are supplied then only those - jobs for those users or with those numbers will be sent. - - The response is an ASCII stream which describes the printer queue. - The stream continues until the connection closes. Ends of lines are - indicated with ASCII LF control characters. The lines may also - contain ASCII HT control characters. -]] - --- gets server acknowledement -local function recv_ack(con) - local ack = con.skt:receive(1) - con.try(string.char(0) == ack, "failed to receive server acknowledgement") -end - --- sends client acknowledement -local function send_ack(con) - local sent = con.skt:send(string.char(0)) - con.try(sent == 1, "failed to send acknowledgement") -end - --- sends queue request --- 5.2 02 - Receive a printer job --- --- +----+-------+----+ --- | 02 | Queue | LF | --- +----+-------+----+ --- Command code - 2 --- Operand - Printer queue name --- --- Receiving a job is controlled by a second level of commands. The --- daemon is given commands by sending them over the same connection. --- The commands are described in the next section (6). --- --- After this command is sent, the client must read an acknowledgement --- octet from the daemon. A positive acknowledgement is an octet of --- zero bits. A negative acknowledgement is an octet of any other --- pattern. -local function send_queue(con, queue) - queue = queue or PRINTER - local str = string.format("\2%s\10", queue) - local sent = con.skt:send(str) - con.try(sent == string.len(str), "failed to send print request") - recv_ack(con) -end - --- sends control file --- 6.2 02 - Receive control file --- --- +----+-------+----+------+----+ --- | 02 | Count | SP | Name | LF | --- +----+-------+----+------+----+ --- Command code - 2 --- Operand 1 - Number of bytes in control file --- Operand 2 - Name of control file --- --- The control file must be an ASCII stream with the ends of lines --- indicated by ASCII LF. The total number of bytes in the stream is --- sent as the first operand. The name of the control file is sent as --- the second. It should start with ASCII "cfA", followed by a three --- digit job number, followed by the host name which has constructed the --- control file. Acknowledgement processing must occur as usual after --- the command is sent. --- --- The next "Operand 1" octets over the same TCP connection are the --- intended contents of the control file. Once all of the contents have --- been delivered, an octet of zero bits is sent as an indication that --- the file being sent is complete. A second level of acknowledgement --- processing must occur at this point. - --- sends data file --- 6.3 03 - Receive data file --- --- +----+-------+----+------+----+ --- | 03 | Count | SP | Name | LF | --- +----+-------+----+------+----+ --- Command code - 3 --- Operand 1 - Number of bytes in data file --- Operand 2 - Name of data file --- --- The data file may contain any 8 bit values at all. The total number --- of bytes in the stream may be sent as the first operand, otherwise --- the field should be cleared to 0. The name of the data file should --- start with ASCII "dfA". This should be followed by a three digit job --- number. The job number should be followed by the host name which has --- constructed the data file. Interpretation of the contents of the --- data file is determined by the contents of the corresponding control --- file. If a data file length has been specified, the next "Operand 1" --- octets over the same TCP connection are the intended contents of the --- data file. In this case, once all of the contents have been --- delivered, an octet of zero bits is sent as an indication that the --- file being sent is complete. A second level of acknowledgement --- processing must occur at this point. - - -local function send_hdr(con, control) - local sent = con.skt:send(control) - con.try(sent and sent >= 1 , "failed to send header file") - recv_ack(con) -end - -local function send_control(con, control) - local sent = con.skt:send(control) - con.try(sent and sent >= 1, "failed to send control file") - send_ack(con) -end - -local function send_data(con,fh,size) - local buf - while size > 0 do - buf,message = fh:read(8192) - if buf then - st = con.try(con.skt:send(buf)) - size = size - st - else - con.try(size == 0, "file size mismatch") - end - end - recv_ack(con) -- note the double acknowledgement - send_ack(con) - recv_ack(con) - return size -end - - ---[[ -local control_dflt = { - "H"..string.sub(socket.hostname,1,31).."\10", -- host - "C"..string.sub(socket.hostname,1,31).."\10", -- class - "J"..string.sub(filename,1,99).."\10", -- jobname - "L"..string.sub(user,1,31).."\10", -- print banner page - "I"..tonumber(indent).."\10", -- indent column count ('f' only) - "M"..string.sub(mail,1,128).."\10", -- mail when printed user@host - "N"..string.sub(filename,1,131).."\10", -- name of source file - "P"..string.sub(user,1,31).."\10", -- user name - "T"..string.sub(title,1,79).."\10", -- title for banner ('p' only) - "W"..tonumber(width or 132).."\10", -- width of print f,l,p only - - "f"..file.."\10", -- formatted print (remove control chars) - "l"..file.."\10", -- print - "o"..file.."\10", -- postscript - "p"..file.."\10", -- pr format - requires T, L - "r"..file.."\10", -- fortran format - "U"..file.."\10", -- Unlink (data file only) -} -]] - --- generate a varying job number -local seq = 0 -local function newjob(connection) - seq = seq + 1 - return math.floor(socket.gettime() * 1000 + seq)%1000 -end - - -local format_codes = { - binary = 'l', - text = 'f', - ps = 'o', - pr = 'p', - fortran = 'r', - l = 'l', - r = 'r', - o = 'o', - p = 'p', - f = 'f' -} - --- lp.send{option} --- requires option.file - -send = socket.protect(function(option) - socket.try(option and base.type(option) == "table", "invalid options") - local file = option.file - socket.try(file, "invalid file name") - local fh = socket.try(io.open(file,"rb")) - local datafile_size = fh:seek("end") -- get total size - fh:seek("set") -- go back to start of file - local localhost = socket.dns.gethostname() or os.getenv("COMPUTERNAME") - or "localhost" - local con = connect(localhost, option) --- format the control file - local jobno = newjob() - local localip = socket.dns.toip(localhost) - localhost = string.sub(localhost,1,31) - local user = string.sub(option.user or os.getenv("LPRUSER") or - os.getenv("USERNAME") or os.getenv("USER") or "anonymous", 1,31) - local lpfile = string.format("dfA%3.3d%-s", jobno, localhost); - local fmt = format_codes[option.format] or 'l' - local class = string.sub(option.class or localip or localhost,1,31) - local _,_,ctlfn = string.find(file,".*[%/%\\](.*)") - ctlfn = string.sub(ctlfn or file,1,131) - local cfile = - string.format("H%-s\nC%-s\nJ%-s\nP%-s\n%.1s%-s\nU%-s\nN%-s\n", - localhost, - class, - option.job or "LuaSocket", - user, - fmt, lpfile, - lpfile, - ctlfn); -- mandatory part of ctl file - if (option.banner) then cfile = cfile .. 'L'..user..'\10' end - if (option.indent) then cfile = cfile .. 'I'..base.tonumber(option.indent)..'\10' end - if (option.mail) then cfile = cfile .. 'M'..string.sub((option.mail),1,128)..'\10' end - if (fmt == 'p' and option.title) then cfile = cfile .. 'T'..string.sub((option.title),1,79)..'\10' end - if ((fmt == 'p' or fmt == 'l' or fmt == 'f') and option.width) then - cfile = cfile .. 'W'..base.tonumber(option,width)..'\10' - end - - con.skt:settimeout(option.timeout or 65) --- send the queue header - send_queue(con, option.queue) --- send the control file header - local cfilecmd = string.format("\2%d cfA%3.3d%-s\n",string.len(cfile), jobno, localhost); - send_hdr(con,cfilecmd) - --- send the control file - send_control(con,cfile) - --- send the data file header - local dfilecmd = string.format("\3%d dfA%3.3d%-s\n",datafile_size, jobno, localhost); - send_hdr(con,dfilecmd) - --- send the data file - send_data(con,fh,datafile_size) - fh:close() - con.skt:close(); - return jobno, datafile_size -end) - --- --- lp.query({host=,queue=printer|'*', format='l'|'s', list=}) --- -query = socket.protect(function(p) - p = p or {} - local localhost = socket.dns.gethostname() or os.getenv("COMPUTERNAME") - or "localhost" - local con = connect(localhost,p) - local fmt - if string.sub(p.format or 's',1,1) == 's' then fmt = 3 else fmt = 4 end - con.try(con.skt:send(string.format("%c%s %s\n", fmt, p.queue or "*", - p.list or ""))) - local data = con.try(con.skt:receive("*a")) - con.skt:close() - return data -end) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/qp.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/qp.lua deleted file mode 100644 index 523238b18f2..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/qp.lua +++ /dev/null @@ -1,23 +0,0 @@ ------------------------------------------------------------------------------ --- Little program to convert to and from Quoted-Printable --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local ltn12 = require("ltn12") -local mime = require("mime") -local convert -arg = arg or {} -local mode = arg and arg[1] or "-et" -if mode == "-et" then - local normalize = mime.normalize() - local qp = mime.encode("quoted-printable") - local wrap = mime.wrap("quoted-printable") - convert = ltn12.filter.chain(normalize, qp, wrap) -elseif mode == "-eb" then - local qp = mime.encode("quoted-printable", "binary") - local wrap = mime.wrap("quoted-printable") - convert = ltn12.filter.chain(qp, wrap) -else convert = mime.decode("quoted-printable") end -local source = ltn12.source.chain(ltn12.source.file(io.stdin), convert) -local sink = ltn12.sink.file(io.stdout) -ltn12.pump.all(source, sink) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/etc/tftp.lua b/Build/source/texk/web2c/luatexdir/luasocket/etc/tftp.lua deleted file mode 100644 index ed99cd164b0..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/etc/tftp.lua +++ /dev/null @@ -1,154 +0,0 @@ ------------------------------------------------------------------------------ --- TFTP support for the Lua language --- LuaSocket toolkit. --- Author: Diego Nehab ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ --- Load required files ------------------------------------------------------------------------------ -local base = _G -local table = require("table") -local math = require("math") -local string = require("string") -local socket = require("socket") -local ltn12 = require("ltn12") -local url = require("socket.url") -module("socket.tftp") - ------------------------------------------------------------------------------ --- Program constants ------------------------------------------------------------------------------ -local char = string.char -local byte = string.byte - -PORT = 69 -local OP_RRQ = 1 -local OP_WRQ = 2 -local OP_DATA = 3 -local OP_ACK = 4 -local OP_ERROR = 5 -local OP_INV = {"RRQ", "WRQ", "DATA", "ACK", "ERROR"} - ------------------------------------------------------------------------------ --- Packet creation functions ------------------------------------------------------------------------------ -local function RRQ(source, mode) - return char(0, OP_RRQ) .. source .. char(0) .. mode .. char(0) -end - -local function WRQ(source, mode) - return char(0, OP_RRQ) .. source .. char(0) .. mode .. char(0) -end - -local function ACK(block) - local low, high - low = math.mod(block, 256) - high = (block - low)/256 - return char(0, OP_ACK, high, low) -end - -local function get_OP(dgram) - local op = byte(dgram, 1)*256 + byte(dgram, 2) - return op -end - ------------------------------------------------------------------------------ --- Packet analysis functions ------------------------------------------------------------------------------ -local function split_DATA(dgram) - local block = byte(dgram, 3)*256 + byte(dgram, 4) - local data = string.sub(dgram, 5) - return block, data -end - -local function get_ERROR(dgram) - local code = byte(dgram, 3)*256 + byte(dgram, 4) - local msg - _,_, msg = string.find(dgram, "(.*)\000", 5) - return string.format("error code %d: %s", code, msg) -end - ------------------------------------------------------------------------------ --- The real work ------------------------------------------------------------------------------ -local function tget(gett) - local retries, dgram, sent, datahost, dataport, code - local last = 0 - socket.try(gett.host, "missing host") - local con = socket.try(socket.udp()) - local try = socket.newtry(function() con:close() end) - -- convert from name to ip if needed - gett.host = try(socket.dns.toip(gett.host)) - con:settimeout(1) - -- first packet gives data host/port to be used for data transfers - local path = string.gsub(gett.path or "", "^/", "") - path = url.unescape(path) - retries = 0 - repeat - sent = try(con:sendto(RRQ(path, "octet"), gett.host, gett.port)) - dgram, datahost, dataport = con:receivefrom() - retries = retries + 1 - until dgram or datahost ~= "timeout" or retries > 5 - try(dgram, datahost) - -- associate socket with data host/port - try(con:setpeername(datahost, dataport)) - -- default sink - local sink = gett.sink or ltn12.sink.null() - -- process all data packets - while 1 do - -- decode packet - code = get_OP(dgram) - try(code ~= OP_ERROR, get_ERROR(dgram)) - try(code == OP_DATA, "unhandled opcode " .. code) - -- get data packet parts - local block, data = split_DATA(dgram) - -- if not repeated, write - if block == last+1 then - try(sink(data)) - last = block - end - -- last packet brings less than 512 bytes of data - if string.len(data) < 512 then - try(con:send(ACK(block))) - try(con:close()) - try(sink(nil)) - return 1 - end - -- get the next packet - retries = 0 - repeat - sent = try(con:send(ACK(last))) - dgram, err = con:receive() - retries = retries + 1 - until dgram or err ~= "timeout" or retries > 5 - try(dgram, err) - end -end - -local default = { - port = PORT, - path ="/", - scheme = "tftp" -} - -local function parse(u) - local t = socket.try(url.parse(u, default)) - socket.try(t.scheme == "tftp", "invalid scheme '" .. t.scheme .. "'") - socket.try(t.host, "invalid host") - return t -end - -local function sget(u) - local gett = parse(u) - local t = {} - gett.sink = ltn12.sink.table(t) - tget(gett) - return table.concat(t) -end - -get = socket.protect(function(gett) - if base.type(gett) == "string" then return sget(gett) - else return tget(gett) end -end) - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/luasocket.sln b/Build/source/texk/web2c/luatexdir/luasocket/luasocket.sln deleted file mode 100644 index 0e5cdc73f00..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/luasocket.sln +++ /dev/null @@ -1,35 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "socket", "socket.vcxproj", "{66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mime", "mime.vcxproj", "{128E8BD0-174A-48F0-8771-92B1E8D18713}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Debug|Win32.ActiveCfg = Debug|Win32
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Debug|Win32.Build.0 = Debug|Win32
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Debug|x64.ActiveCfg = Debug|x64
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Debug|x64.Build.0 = Debug|x64
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Release|Win32.ActiveCfg = Release|Win32
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Release|Win32.Build.0 = Release|Win32
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Release|x64.ActiveCfg = Release|x64
- {66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}.Release|x64.Build.0 = Release|x64
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Debug|Win32.ActiveCfg = Debug|Win32
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Debug|Win32.Build.0 = Debug|Win32
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Debug|x64.ActiveCfg = Debug|x64
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Debug|x64.Build.0 = Debug|x64
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release|Win32.ActiveCfg = Release|Win32
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release|Win32.Build.0 = Release|Win32
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release|x64.ActiveCfg = Release|x64
- {128E8BD0-174A-48F0-8771-92B1E8D18713}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/makefile b/Build/source/texk/web2c/luatexdir/luasocket/makefile deleted file mode 100644 index cc15b4ef6cd..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/makefile +++ /dev/null @@ -1,49 +0,0 @@ -# luasocket makefile -# -# see src/makefile for description of how to customize the build -# -# Targets: -# install install system independent support -# install-unix also install unix-only support -# install-both install for lua51 lua52 lua53 -# install-both-unix also install unix-only -# print print the build settings - -PLAT?= linux -PLATS= macosx linux win32 mingw freebsd solaris - -all: $(PLAT) - -$(PLATS) none install install-unix local clean: - $(MAKE) -C src $@ - -print: - $(MAKE) -C src $@ - -test: - lua test/hello.lua - -install-both: - $(MAKE) clean - @cd src; $(MAKE) $(PLAT) LUAV=5.1 - @cd src; $(MAKE) install LUAV=5.1 - $(MAKE) clean - @cd src; $(MAKE) $(PLAT) LUAV=5.2 - @cd src; $(MAKE) install LUAV=5.2 - $(MAKE) clean - @cd src; $(MAKE) $(PLAT) LUAV=5.3 - @cd src; $(MAKE) install LUAV=5.3 - -install-both-unix: - $(MAKE) clean - @cd src; $(MAKE) $(PLAT) LUAV=5.1 - @cd src; $(MAKE) install-unix LUAV=5.1 - $(MAKE) clean - @cd src; $(MAKE) $(PLAT) LUAV=5.2 - @cd src; $(MAKE) install-unix LUAV=5.2 - $(MAKE) clean - @cd src; $(MAKE) $(PLAT) LUAV=5.3 - @cd src; $(MAKE) install-unix LUAV=5.3 - -.PHONY: test - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/mime.vcxproj b/Build/source/texk/web2c/luatexdir/luasocket/mime.vcxproj deleted file mode 100644 index c77d611c049..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/mime.vcxproj +++ /dev/null @@ -1,217 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="src\mime.c" />
- </ItemGroup>
- <ItemGroup>
- <CustomBuild Include="src\mime.lua">
- <FileType>Document</FileType>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)</Command>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)</Command>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUALIB_PATH)$(Platform)\$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUALIB_PATH)$(Platform)\$(Configuration)</Command>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\%(Filename)%(Extension)</Outputs>
- </CustomBuild>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{128E8BD0-174A-48F0-8771-92B1E8D18713}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <_ProjectFileVersion>11.0.50727.1</_ProjectFileVersion>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>$(LUABIN_PATH)$(Configuration)\mime\</OutDir>
- <IntDir>$(Configuration)\</IntDir>
- <LinkIncremental>true</LinkIncremental>
- <TargetName>core</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <TargetName>core</TargetName>
- <OutDir>$(LUABIN_PATH)$(Platform)\$(Configuration)\mime\</OutDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>$(LUABIN_PATH)$(Configuration)\mime\</OutDir>
- <IntDir>$(Configuration)\</IntDir>
- <LinkIncremental>false</LinkIncremental>
- <TargetName>core</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(LUABIN_PATH)$(Platform)\$(Configuration)\mime\</OutDir>
- <TargetName>core</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <PrecompiledHeader />
- <WarningLevel>Level3</WarningLevel>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <ProgramDatabaseFile>$(OutDir)mime.pdb</ProgramDatabaseFile>
- <SubSystem>Windows</SubSystem>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention />
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- <TargetMachine>MachineX86</TargetMachine>
- <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;MIME_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <ProgramDatabaseFile>$(OutDir)mime.pdb</ProgramDatabaseFile>
- <SubSystem>Windows</SubSystem>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention>
- </DataExecutionPrevention>
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <PrecompiledHeader />
- <WarningLevel>Level4</WarningLevel>
- <DebugInformationFormat />
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Windows</SubSystem>
- <OptimizeReferences>true</OptimizeReferences>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention />
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- <TargetMachine>MachineX86</TargetMachine>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;MIME_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <DebugInformationFormat>
- </DebugInformationFormat>
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Windows</SubSystem>
- <OptimizeReferences>true</OptimizeReferences>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention>
- </DataExecutionPrevention>
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/mime.vcxproj.filters b/Build/source/texk/web2c/luatexdir/luasocket/mime.vcxproj.filters deleted file mode 100644 index 621215b6216..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/mime.vcxproj.filters +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <ClCompile Include="src\mime.c" />
- </ItemGroup>
- <ItemGroup>
- <Filter Include="cdir">
- <UniqueIdentifier>{fad87a86-297c-4881-a114-73b967bb3c92}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <CustomBuild Include="src\mime.lua">
- <Filter>cdir</Filter>
- </CustomBuild>
- </ItemGroup>
-</Project>
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/README b/Build/source/texk/web2c/luatexdir/luasocket/samples/README deleted file mode 100644 index e63a6f52147..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/README +++ /dev/null @@ -1,50 +0,0 @@ -This directory contains some sample programs using -LuaSocket. This code is not supported. - - listener.lua -- socket to stdout - talker.lua -- stdin to socket - -listener.lua and talker.lua are about the simplest -applications you can write using LuaSocket. Run - - 'lua listener.lua' and 'lua talker.lua' - -on different terminals. Whatever you type on talk.lua will -be printed by listen.lua. - - lpr.lua -- lpr client - -This is a cool program written by David Burgess to print -files using the Line Printer Daemon protocol, widely used in -Unix machines. It uses the lp.lua implementation, in the -etc directory. Just run 'lua lpr.lua <filename> -queue=<printername>' and the file will print! - - cddb.lua -- CDDB client - -This is the first try on a simple CDDB client. Not really -useful, but one day it might become a module. - - daytimeclnt.lua -- day time client - -Just run the program to retrieve the hour and date in -readable form from any server running an UDP daytime daemon. - - echoclnt.lua -- UDP echo client - echosrvr.lua -- UDP echo server - -These are a UDP echo client/server pair. They work with -other client and servers as well. - - tinyirc.lua -- irc like broadcast server - -This is a simple server that waits simultaneously on two -server sockets for telnet connections. Everything it -receives from the telnet clients is broadcasted to every -other connected client. It tests the select function and -shows how to create a simple server whith LuaSocket. Just -run tinyirc.lua and then open as many telnet connections -as you want to ports 8080 and 8081. - -Good luck, -Diego. diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/cddb.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/cddb.lua deleted file mode 100644 index 49a187119f8..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/cddb.lua +++ /dev/null @@ -1,46 +0,0 @@ -local socket = require("socket") -local http = require("socket.http") - -if not arg or not arg[1] or not arg[2] then - print("luasocket cddb.lua <category> <disc-id> [<server>]") - os.exit(1) -end - -local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi" - -function parse(body) - local lines = string.gfind(body, "(.-)\r\n") - local status = lines() - local code, message = socket.skip(2, string.find(status, "(%d%d%d) (.*)")) - if tonumber(code) ~= 210 then - return nil, code, message - end - local data = {} - for l in lines do - local c = string.sub(l, 1, 1) - if c ~= '#' and c ~= '.' then - local key, value = socket.skip(2, string.find(l, "(.-)=(.*)")) - value = string.gsub(value, "\\n", "\n") - value = string.gsub(value, "\\\\", "\\") - value = string.gsub(value, "\\t", "\t") - data[key] = value - end - end - return data, code, message -end - -local host = socket.dns.gethostname() -local query = "%s?cmd=cddb+read+%s+%s&hello=LuaSocket+%s+LuaSocket+2.0&proto=6" -local url = string.format(query, server, arg[1], arg[2], host) -local body, headers, code = http.request(url) - -if code == 200 then - local data, code, error = parse(body) - if not data then - print(error or code) - else - for i,v in pairs(data) do - io.write(i, ': ', v, '\n') - end - end -else print(error) end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/daytimeclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/daytimeclnt.lua deleted file mode 100644 index f81e37c4884..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/daytimeclnt.lua +++ /dev/null @@ -1,22 +0,0 @@ ------------------------------------------------------------------------------ --- UDP sample: daytime protocol client --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local socket = require"socket" -host = host or "127.0.0.1" -port = port or 13 -if arg then - host = arg[1] or host - port = arg[2] or port -end -host = socket.dns.toip(host) -udp = socket.udp() -print("Using host '" ..host.. "' and port " ..port.. "...") -udp:setpeername(host, port) -udp:settimeout(3) -sent, err = udp:send("anything") -if err then print(err) os.exit() end -dgram, err = udp:receive() -if not dgram then print(err) os.exit() end -io.write(dgram) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/echoclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/echoclnt.lua deleted file mode 100644 index bb22557a0be..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/echoclnt.lua +++ /dev/null @@ -1,23 +0,0 @@ ------------------------------------------------------------------------------ --- UDP sample: echo protocol client --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local socket = require("socket") -host = host or "localhost" -port = port or 7 -if arg then - host = arg[1] or host - port = arg[2] or port -end -host = socket.dns.toip(host) -udp = assert(socket.udp()) -assert(udp:setpeername(host, port)) -print("Using remote host '" ..host.. "' and port " .. port .. "...") -while 1 do - line = io.read() - if not line or line == "" then os.exit() end - assert(udp:send(line)) - dgram = assert(udp:receive()) - print(dgram) -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/echosrvr.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/echosrvr.lua deleted file mode 100644 index ea564e246d7..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/echosrvr.lua +++ /dev/null @@ -1,28 +0,0 @@ ------------------------------------------------------------------------------ --- UDP sample: echo protocol server --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local socket = require("socket") -host = host or "127.0.0.1" -port = port or 7 -if arg then - host = arg[1] or host - port = arg[2] or port -end -print("Binding to host '" ..host.. "' and port " ..port.. "...") -udp = assert(socket.udp()) -assert(udp:setsockname(host, port)) -assert(udp:settimeout(5)) -ip, port = udp:getsockname() -assert(ip, port) -print("Waiting packets on " .. ip .. ":" .. port .. "...") -while 1 do - dgram, ip, port = udp:receivefrom() - if dgram then - print("Echoing '" .. dgram .. "' to " .. ip .. ":" .. port) - udp:sendto(dgram, ip, port) - else - print(ip) - end -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/listener.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/listener.lua deleted file mode 100644 index 77db2d539b7..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/listener.lua +++ /dev/null @@ -1,25 +0,0 @@ ------------------------------------------------------------------------------ --- TCP sample: Little program to dump lines received at a given port --- LuaSocket sample files --- Author: Diego Nehab ------------------------------------------------------------------------------ -local socket = require("socket") -host = host or "*" -port = port or 8080 -if arg then - host = arg[1] or host - port = arg[2] or port -end -print("Binding to host '" ..host.. "' and port " ..port.. "...") -s = assert(socket.bind(host, port)) -i, p = s:getsockname() -assert(i, p) -print("Waiting connection from talker on " .. i .. ":" .. p .. "...") -c = assert(s:accept()) -print("Connected. Here is the stuff:") -l, e = c:receive() -while not e do - print(l) - l, e = c:receive() -end -print(e) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/lpr.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/lpr.lua deleted file mode 100644 index 49a1dfa9a7d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/lpr.lua +++ /dev/null @@ -1,51 +0,0 @@ -local lp = require("socket.lp") - -local function usage() - print('\nUsage: lua lpr.lua [filename] [keyword=val...]\n') - print('Valid keywords are :') - print( - ' host=remote host or IP address (default "localhost")\n' .. - ' queue=remote queue or printer name (default "printer")\n' .. - ' port=remote port number (default 515)\n' .. - ' user=sending user name\n' .. - ' format=["binary" | "text" | "ps" | "pr" | "fortran"] (default "binary")\n' .. - ' banner=true|false\n' .. - ' indent=number of columns to indent\n' .. - ' mail=email of address to notify when print is complete\n' .. - ' title=title to use for "pr" format\n' .. - ' width=width for "text" or "pr" formats\n' .. - ' class=\n' .. - ' job=\n' .. - ' name=\n' .. - ' localbind=true|false\n' - ) - return nil -end - -if not arg or not arg[1] then - return usage() -end - -do - local opt = {} - local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]?.?)" - for i = 2, #arg, 1 do - string.gsub(arg[i], pat, function(name, value) opt[name] = value end) - end - if not arg[2] then - return usage() - end - if arg[1] ~= "query" then - opt.file = arg[1] - r,e=lp.send(opt) - io.stdout:write(tostring(r or e),'\n') - else - r,e=lp.query(opt) - io.stdout:write(tostring(r or e), '\n') - end -end - --- trivial tests ---lua lp.lua lp.lua queue=default host=localhost ---lua lp.lua lp.lua queue=default host=localhost format=binary localbind=1 ---lua lp.lua query queue=default host=localhost diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/mclisten.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/mclisten.lua deleted file mode 100644 index d40d7893d69..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/mclisten.lua +++ /dev/null @@ -1,18 +0,0 @@ -local socket = require"socket" -local group = "225.0.0.37" -local port = 12345 -local c = assert(socket.udp()) -print(assert(c:setoption("reuseport", true))) -print(assert(c:setsockname("*", port))) ---print("loop:", c:getoption("ip-multicast-loop")) ---print(assert(c:setoption("ip-multicast-loop", false))) ---print("loop:", c:getoption("ip-multicast-loop")) ---print("if:", c:getoption("ip-multicast-if")) ---print(assert(c:setoption("ip-multicast-if", "127.0.0.1"))) ---print("if:", c:getoption("ip-multicast-if")) ---print(assert(c:setoption("ip-multicast-if", "10.0.1.4"))) ---print("if:", c:getoption("ip-multicast-if")) -print(assert(c:setoption("ip-add-membership", {multiaddr = group, interface = "*"}))) -while 1 do - print(c:receivefrom()) -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/mcsend.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/mcsend.lua deleted file mode 100644 index 7c24cdf2b27..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/mcsend.lua +++ /dev/null @@ -1,20 +0,0 @@ -local socket = require"socket" -local group = "225.0.0.37" -local port = 12345 -local c = assert(socket.udp()) ---print(assert(c:setoption("reuseport", true))) ---print(assert(c:setsockname("*", port))) ---print(assert(c:setoption("ip-multicast-loop", false))) ---print(assert(c:setoption("ip-multicast-ttl", 4))) ---print(assert(c:setoption("ip-multicast-if", "10.0.1.3"))) ---print(assert(c:setoption("ip-add-membership", {multiaddr = group, interface = "*"}))) -local i = 0 -while 1 do - local message = string.format("hello all %d!", i) - assert(c:sendto(message, group, port)) - print("sent " .. message) - socket.sleep(1) - c:settimeout(0.5) - print(c:receivefrom()) - i = i + 1 -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/talker.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/talker.lua deleted file mode 100644 index d5a36cbe256..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/talker.lua +++ /dev/null @@ -1,20 +0,0 @@ ------------------------------------------------------------------------------
--- TCP sample: Little program to send text lines to a given host/port
--- LuaSocket sample files
--- Author: Diego Nehab
------------------------------------------------------------------------------
-local socket = require("socket")
-host = host or "localhost"
-port = port or 8080
-if arg then
- host = arg[1] or host
- port = arg[2] or port
-end
-print("Attempting connection to host '" ..host.. "' and port " ..port.. "...")
-c = assert(socket.connect(host, port))
-print("Connected! Please type stuff (empty line to stop):")
-l = io.read()
-while l and l ~= "" and not e do
- assert(c:send(l .. "\n"))
- l = io.read()
-end
diff --git a/Build/source/texk/web2c/luatexdir/luasocket/samples/tinyirc.lua b/Build/source/texk/web2c/luatexdir/luasocket/samples/tinyirc.lua deleted file mode 100644 index 5babb7e1ea1..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/samples/tinyirc.lua +++ /dev/null @@ -1,89 +0,0 @@ ------------------------------------------------------------------------------ --- Select sample: simple text line server --- LuaSocket sample files. --- Author: Diego Nehab ------------------------------------------------------------------------------ -local socket = require("socket") -host = host or "*" -port1 = port1 or 8080 -port2 = port2 or 8181 -if arg then - host = arg[1] or host - port1 = arg[2] or port1 - port2 = arg[3] or port2 -end - -server1 = assert(socket.bind(host, port1)) -server2 = assert(socket.bind(host, port2)) -server1:settimeout(1) -- make sure we don't block in accept -server2:settimeout(1) - -io.write("Servers bound\n") - --- simple set implementation --- the select function doesn't care about what is passed to it as long as --- it behaves like a table --- creates a new set data structure -function newset() - local reverse = {} - local set = {} - return setmetatable(set, {__index = { - insert = function(set, value) - if not reverse[value] then - table.insert(set, value) - reverse[value] = #set - end - end, - remove = function(set, value) - local index = reverse[value] - if index then - reverse[value] = nil - local top = table.remove(set) - if top ~= value then - reverse[top] = index - set[index] = top - end - end - end - }}) -end - -set = newset() - -io.write("Inserting servers in set\n") -set:insert(server1) -set:insert(server2) - -while 1 do - local readable, _, error = socket.select(set, nil) - for _, input in ipairs(readable) do - -- is it a server socket? - if input == server1 or input == server2 then - io.write("Waiting for clients\n") - local new = input:accept() - if new then - new:settimeout(1) - io.write("Inserting client in set\n") - set:insert(new) - end - -- it is a client socket - else - local line, error = input:receive() - if error then - input:close() - io.write("Removing client from set\n") - set:remove(input) - else - io.write("Broadcasting line '", line, "'\n") - writable, error = socket.skip(1, socket.select(nil, set, 1)) - if not error then - for __, output in ipairs(writable) do - if output ~= input then - output:send(line .. "\n") - end - end - else io.write("No client ready to receive!!!\n") end - end - end - end -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/socket.vcxproj b/Build/source/texk/web2c/luatexdir/luasocket/socket.vcxproj deleted file mode 100644 index 16daeef63d4..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/socket.vcxproj +++ /dev/null @@ -1,307 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="src\auxiliar.c" />
- <ClCompile Include="src\buffer.c" />
- <ClCompile Include="src\except.c" />
- <ClCompile Include="src\inet.c" />
- <ClCompile Include="src\io.c" />
- <ClCompile Include="src\luasocket.c" />
- <ClCompile Include="src\options.c" />
- <ClCompile Include="src\select.c" />
- <ClCompile Include="src\tcp.c" />
- <ClCompile Include="src\timeout.c" />
- <ClCompile Include="src\udp.c" />
- <ClCompile Include="src\wsocket.c" />
- </ItemGroup>
- <ItemGroup>
- <CustomBuild Include="src\ltn12.lua">
- <FileType>Document</FileType>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)</Command>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\%(Filename)%(Extension)</Outputs>
- </CustomBuild>
- <CustomBuild Include="src\socket.lua">
- <FileType>Document</FileType>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)</Command>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\%(Filename)%(Extension)</Outputs>
- </CustomBuild>
- </ItemGroup>
- <ItemGroup>
- <CustomBuild Include="src\ftp.lua">
- <FileType>Document</FileType>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- </CustomBuild>
- <CustomBuild Include="src\headers.lua">
- <FileType>Document</FileType>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- </CustomBuild>
- <CustomBuild Include="src\http.lua">
- <FileType>Document</FileType>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- </CustomBuild>
- <CustomBuild Include="src\smtp.lua">
- <FileType>Document</FileType>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- </CustomBuild>
- <CustomBuild Include="src\tp.lua">
- <FileType>Document</FileType>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- </CustomBuild>
- <CustomBuild Include="src\url.lua">
- <FileType>Document</FileType>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(LUABIN_PATH)$(Configuration)\socket\%(Filename)%(Extension)</Outputs>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">copy %(FullPath) $(LUABIN_PATH)$(Platform)\$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy %(FullPath) $(LUABIN_PATH)$(Configuration)\socket</Command>
- </CustomBuild>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{66E3CE14-884D-4AEA-9F20-15A0BEAF8C5A}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PlatformToolset>v110</PlatformToolset>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
- <Import Project="Lua.props" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <_ProjectFileVersion>11.0.50727.1</_ProjectFileVersion>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <OutDir>$(LUALIB_PATH)$(Configuration)\socket\</OutDir>
- <IntDir>$(Configuration)\</IntDir>
- <LinkIncremental>true</LinkIncremental>
- <TargetName>core</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <TargetName>core</TargetName>
- <OutDir>$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\</OutDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <OutDir>$(LUALIB_PATH)$(Configuration)\socket\</OutDir>
- <IntDir>$(Configuration)\</IntDir>
- <LinkIncremental>false</LinkIncremental>
- <TargetName>core</TargetName>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(LUABIN_PATH)$(Platform)\$(Configuration)\socket\</OutDir>
- <TargetName>core</TargetName>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LUASOCKET_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;LUASOCKET_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <MinimalRebuild>true</MinimalRebuild>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <PrecompiledHeader />
- <WarningLevel>Level3</WarningLevel>
- <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <ProgramDatabaseFile>$(OutDir)mime.pdb</ProgramDatabaseFile>
- <SubSystem>Windows</SubSystem>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention />
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- <TargetMachine>MachineX86</TargetMachine>
- <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LUASOCKET_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;LUASOCKET_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <ProgramDatabaseFile>$(OutDir)mime.pdb</ProgramDatabaseFile>
- <SubSystem>Windows</SubSystem>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention>
- </DataExecutionPrevention>
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <PrecompiledHeader />
- <WarningLevel>Level4</WarningLevel>
- <DebugInformationFormat />
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Windows</SubSystem>
- <OptimizeReferences>true</OptimizeReferences>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention />
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- <TargetMachine>MachineX86</TargetMachine>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <AdditionalIncludeDirectories>$(LUAINC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LUASOCKET_API=__declspec(dllexport);_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <DebugInformationFormat>
- </DebugInformationFormat>
- <ProgramDataBaseFileName>$(IntDir)$(TargetName)$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <AdditionalDependencies>$(LUALIB);ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <OutputFile>$(OutDir)$(TargetName).dll</OutputFile>
- <AdditionalLibraryDirectories>$(LUALIB_PATH)$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <SubSystem>Windows</SubSystem>
- <OptimizeReferences>true</OptimizeReferences>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <RandomizedBaseAddress>false</RandomizedBaseAddress>
- <DataExecutionPrevention>
- </DataExecutionPrevention>
- <ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/socket.vcxproj.filters b/Build/source/texk/web2c/luatexdir/luasocket/socket.vcxproj.filters deleted file mode 100644 index 38f2f0733aa..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/socket.vcxproj.filters +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <ClCompile Include="src\auxiliar.c" />
- <ClCompile Include="src\buffer.c" />
- <ClCompile Include="src\except.c" />
- <ClCompile Include="src\inet.c" />
- <ClCompile Include="src\io.c" />
- <ClCompile Include="src\luasocket.c" />
- <ClCompile Include="src\options.c" />
- <ClCompile Include="src\select.c" />
- <ClCompile Include="src\tcp.c" />
- <ClCompile Include="src\timeout.c" />
- <ClCompile Include="src\udp.c" />
- <ClCompile Include="src\wsocket.c" />
- </ItemGroup>
- <ItemGroup>
- <CustomBuild Include="src\ltn12.lua">
- <Filter>cdir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\socket.lua">
- <Filter>cdir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\ftp.lua">
- <Filter>ldir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\headers.lua">
- <Filter>ldir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\http.lua">
- <Filter>ldir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\smtp.lua">
- <Filter>ldir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\tp.lua">
- <Filter>ldir</Filter>
- </CustomBuild>
- <CustomBuild Include="src\url.lua">
- <Filter>ldir</Filter>
- </CustomBuild>
- </ItemGroup>
- <ItemGroup>
- <Filter Include="cdir">
- <UniqueIdentifier>{b053460d-5439-4e3a-a2eb-c31a95b5691f}</UniqueIdentifier>
- </Filter>
- <Filter Include="ldir">
- <UniqueIdentifier>{b301b82c-37cb-4e05-9333-194e92ed7a62}</UniqueIdentifier>
- </Filter>
- </ItemGroup>
-</Project>
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/auxiliar.c b/Build/source/texk/web2c/luatexdir/luasocket/src/auxiliar.c deleted file mode 100644 index 18fa8e4c3c0..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/auxiliar.c +++ /dev/null @@ -1,158 +0,0 @@ -/*=========================================================================*\ -* Auxiliar routines for class hierarchy manipulation -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> -#include <stdio.h> - -#include "auxiliar.h" - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initializes the module -\*-------------------------------------------------------------------------*/ -int auxiliar_open(lua_State *L) { - (void) L; - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Creates a new class with given methods -* Methods whose names start with __ are passed directly to the metatable. -\*-------------------------------------------------------------------------*/ -void auxiliar_newclass(lua_State *L, const char *classname, luaL_Reg *func) { - luaL_newmetatable(L, classname); /* mt */ - /* create __index table to place methods */ - lua_pushstring(L, "__index"); /* mt,"__index" */ - lua_newtable(L); /* mt,"__index",it */ - /* put class name into class metatable */ - lua_pushstring(L, "class"); /* mt,"__index",it,"class" */ - lua_pushstring(L, classname); /* mt,"__index",it,"class",classname */ - lua_rawset(L, -3); /* mt,"__index",it */ - /* pass all methods that start with _ to the metatable, and all others - * to the index table */ - for (; func->name; func++) { /* mt,"__index",it */ - lua_pushstring(L, func->name); - lua_pushcfunction(L, func->func); - lua_rawset(L, func->name[0] == '_' ? -5: -3); - } - lua_rawset(L, -3); /* mt */ - lua_pop(L, 1); -} - -/*-------------------------------------------------------------------------*\ -* Prints the value of a class in a nice way -\*-------------------------------------------------------------------------*/ -int auxiliar_tostring(lua_State *L) { - char buf[32]; - if (!lua_getmetatable(L, 1)) goto error; - lua_pushstring(L, "__index"); - lua_gettable(L, -2); - if (!lua_istable(L, -1)) goto error; - lua_pushstring(L, "class"); - lua_gettable(L, -2); - if (!lua_isstring(L, -1)) goto error; - sprintf(buf, "%p", lua_touserdata(L, 1)); - lua_pushfstring(L, "%s: %s", lua_tostring(L, -1), buf); - return 1; -error: - lua_pushstring(L, "invalid object passed to 'auxiliar.c:__tostring'"); - lua_error(L); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Insert class into group -\*-------------------------------------------------------------------------*/ -void auxiliar_add2group(lua_State *L, const char *classname, const char *groupname) { - luaL_getmetatable(L, classname); - lua_pushstring(L, groupname); - lua_pushboolean(L, 1); - lua_rawset(L, -3); - lua_pop(L, 1); -} - -/*-------------------------------------------------------------------------*\ -* Make sure argument is a boolean -\*-------------------------------------------------------------------------*/ -int auxiliar_checkboolean(lua_State *L, int objidx) { - if (!lua_isboolean(L, objidx)) - auxiliar_typeerror(L, objidx, lua_typename(L, LUA_TBOOLEAN)); - return lua_toboolean(L, objidx); -} - -/*-------------------------------------------------------------------------*\ -* Return userdata pointer if object belongs to a given class, abort with -* error otherwise -\*-------------------------------------------------------------------------*/ -void *auxiliar_checkclass(lua_State *L, const char *classname, int objidx) { - void *data = auxiliar_getclassudata(L, classname, objidx); - if (!data) { - char msg[45]; - sprintf(msg, "%.35s expected", classname); - luaL_argerror(L, objidx, msg); - } - return data; -} - -/*-------------------------------------------------------------------------*\ -* Return userdata pointer if object belongs to a given group, abort with -* error otherwise -\*-------------------------------------------------------------------------*/ -void *auxiliar_checkgroup(lua_State *L, const char *groupname, int objidx) { - void *data = auxiliar_getgroupudata(L, groupname, objidx); - if (!data) { - char msg[45]; - sprintf(msg, "%.35s expected", groupname); - luaL_argerror(L, objidx, msg); - } - return data; -} - -/*-------------------------------------------------------------------------*\ -* Set object class -\*-------------------------------------------------------------------------*/ -void auxiliar_setclass(lua_State *L, const char *classname, int objidx) { - luaL_getmetatable(L, classname); - if (objidx < 0) objidx--; - lua_setmetatable(L, objidx); -} - -/*-------------------------------------------------------------------------*\ -* Get a userdata pointer if object belongs to a given group. Return NULL -* otherwise -\*-------------------------------------------------------------------------*/ -void *auxiliar_getgroupudata(lua_State *L, const char *groupname, int objidx) { - if (!lua_getmetatable(L, objidx)) - return NULL; - lua_pushstring(L, groupname); - lua_rawget(L, -2); - if (lua_isnil(L, -1)) { - lua_pop(L, 2); - return NULL; - } else { - lua_pop(L, 2); - return lua_touserdata(L, objidx); - } -} - -/*-------------------------------------------------------------------------*\ -* Get a userdata pointer if object belongs to a given class. Return NULL -* otherwise -\*-------------------------------------------------------------------------*/ -void *auxiliar_getclassudata(lua_State *L, const char *classname, int objidx) { - return luaL_checkudata(L, objidx, classname); -} - -/*-------------------------------------------------------------------------*\ -* Throws error when argument does not have correct type. -* Used to be part of lauxlib in Lua 5.1, was dropped from 5.2. -\*-------------------------------------------------------------------------*/ -int auxiliar_typeerror (lua_State *L, int narg, const char *tname) { - const char *msg = lua_pushfstring(L, "%s expected, got %s", tname, - luaL_typename(L, narg)); - return luaL_argerror(L, narg, msg); -} - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/auxiliar.h b/Build/source/texk/web2c/luatexdir/luasocket/src/auxiliar.h deleted file mode 100644 index 65511d4de53..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/auxiliar.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef AUXILIAR_H -#define AUXILIAR_H -/*=========================================================================*\ -* Auxiliar routines for class hierarchy manipulation -* LuaSocket toolkit (but completely independent of other LuaSocket modules) -* -* A LuaSocket class is a name associated with Lua metatables. A LuaSocket -* group is a name associated with a class. A class can belong to any number -* of groups. This module provides the functionality to: -* -* - create new classes -* - add classes to groups -* - set the class of objects -* - check if an object belongs to a given class or group -* - get the userdata associated to objects -* - print objects in a pretty way -* -* LuaSocket class names follow the convention <module>{<class>}. Modules -* can define any number of classes and groups. The module tcp.c, for -* example, defines the classes tcp{master}, tcp{client} and tcp{server} and -* the groups tcp{client,server} and tcp{any}. Module functions can then -* perform type-checking on their arguments by either class or group. -* -* LuaSocket metatables define the __index metamethod as being a table. This -* table has one field for each method supported by the class, and a field -* "class" with the class name. -* -* The mapping from class name to the corresponding metatable and the -* reverse mapping are done using lauxlib. -\*=========================================================================*/ - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -int auxiliar_open(lua_State *L); -void auxiliar_newclass(lua_State *L, const char *classname, luaL_Reg *func); -void auxiliar_add2group(lua_State *L, const char *classname, const char *group); -void auxiliar_setclass(lua_State *L, const char *classname, int objidx); -void *auxiliar_checkclass(lua_State *L, const char *classname, int objidx); -void *auxiliar_checkgroup(lua_State *L, const char *groupname, int objidx); -void *auxiliar_getclassudata(lua_State *L, const char *groupname, int objidx); -void *auxiliar_getgroupudata(lua_State *L, const char *groupname, int objidx); -int auxiliar_checkboolean(lua_State *L, int objidx); -int auxiliar_tostring(lua_State *L); -int auxiliar_typeerror(lua_State *L, int narg, const char *tname); - -#endif /* AUXILIAR_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/buffer.c b/Build/source/texk/web2c/luatexdir/luasocket/src/buffer.c deleted file mode 100644 index fff16346f00..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/buffer.c +++ /dev/null @@ -1,273 +0,0 @@ -/*=========================================================================*\ -* Input/Output interface for Lua programs -* LuaSocket toolkit -\*=========================================================================*/ -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "buffer.h" - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -static int recvraw(p_buffer buf, size_t wanted, luaL_Buffer *b); -static int recvline(p_buffer buf, luaL_Buffer *b); -static int recvall(p_buffer buf, luaL_Buffer *b); -static int buffer_get(p_buffer buf, const char **data, size_t *count); -static void buffer_skip(p_buffer buf, size_t count); -static int sendraw(p_buffer buf, const char *data, size_t count, size_t *sent); - -/* min and max macros */ -#ifndef MIN -#define MIN(x, y) ((x) < (y) ? x : y) -#endif -#ifndef MAX -#define MAX(x, y) ((x) > (y) ? x : y) -#endif - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int buffer_open(lua_State *L) { - (void) L; - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Initializes C structure -\*-------------------------------------------------------------------------*/ -void buffer_init(p_buffer buf, p_io io, p_timeout tm) { - buf->first = buf->last = 0; - buf->io = io; - buf->tm = tm; - buf->received = buf->sent = 0; - buf->birthday = timeout_gettime(); -} - -/*-------------------------------------------------------------------------*\ -* object:getstats() interface -\*-------------------------------------------------------------------------*/ -int buffer_meth_getstats(lua_State *L, p_buffer buf) { - lua_pushnumber(L, (lua_Number) buf->received); - lua_pushnumber(L, (lua_Number) buf->sent); - lua_pushnumber(L, timeout_gettime() - buf->birthday); - return 3; -} - -/*-------------------------------------------------------------------------*\ -* object:setstats() interface -\*-------------------------------------------------------------------------*/ -int buffer_meth_setstats(lua_State *L, p_buffer buf) { - buf->received = (long) luaL_optnumber(L, 2, (lua_Number) buf->received); - buf->sent = (long) luaL_optnumber(L, 3, (lua_Number) buf->sent); - if (lua_isnumber(L, 4)) buf->birthday = timeout_gettime() - lua_tonumber(L, 4); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* object:send() interface -\*-------------------------------------------------------------------------*/ -int buffer_meth_send(lua_State *L, p_buffer buf) { - int top = lua_gettop(L); - int err = IO_DONE; - size_t size = 0, sent = 0; - const char *data = luaL_checklstring(L, 2, &size); - long start = (long) luaL_optnumber(L, 3, 1); - long end = (long) luaL_optnumber(L, 4, -1); - timeout_markstart(buf->tm); - if (start < 0) start = (long) (size+start+1); - if (end < 0) end = (long) (size+end+1); - if (start < 1) start = (long) 1; - if (end > (long) size) end = (long) size; - if (start <= end) err = sendraw(buf, data+start-1, end-start+1, &sent); - /* check if there was an error */ - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, buf->io->error(buf->io->ctx, err)); - lua_pushnumber(L, (lua_Number) (sent+start-1)); - } else { - lua_pushnumber(L, (lua_Number) (sent+start-1)); - lua_pushnil(L); - lua_pushnil(L); - } -#ifdef LUASOCKET_DEBUG - /* push time elapsed during operation as the last return value */ - lua_pushnumber(L, timeout_gettime() - timeout_getstart(buf->tm)); -#endif - return lua_gettop(L) - top; -} - -/*-------------------------------------------------------------------------*\ -* object:receive() interface -\*-------------------------------------------------------------------------*/ -int buffer_meth_receive(lua_State *L, p_buffer buf) { - int err = IO_DONE, top = lua_gettop(L); - luaL_Buffer b; - size_t size; - const char *part = luaL_optlstring(L, 3, "", &size); - timeout_markstart(buf->tm); - /* initialize buffer with optional extra prefix - * (useful for concatenating previous partial results) */ - luaL_buffinit(L, &b); - luaL_addlstring(&b, part, size); - /* receive new patterns */ - if (!lua_isnumber(L, 2)) { - const char *p= luaL_optstring(L, 2, "*l"); - if (p[0] == '*' && p[1] == 'l') err = recvline(buf, &b); - else if (p[0] == '*' && p[1] == 'a') err = recvall(buf, &b); - else luaL_argcheck(L, 0, 2, "invalid receive pattern"); - /* get a fixed number of bytes (minus what was already partially - * received) */ - } else { - double n = lua_tonumber(L, 2); - size_t wanted = (size_t) n; - luaL_argcheck(L, n >= 0, 2, "invalid receive pattern"); - if (size == 0 || wanted > size) - err = recvraw(buf, wanted-size, &b); - } - /* check if there was an error */ - if (err != IO_DONE) { - /* we can't push anyting in the stack before pushing the - * contents of the buffer. this is the reason for the complication */ - luaL_pushresult(&b); - lua_pushstring(L, buf->io->error(buf->io->ctx, err)); - lua_pushvalue(L, -2); - lua_pushnil(L); - lua_replace(L, -4); - } else { - luaL_pushresult(&b); - lua_pushnil(L); - lua_pushnil(L); - } -#ifdef LUASOCKET_DEBUG - /* push time elapsed during operation as the last return value */ - lua_pushnumber(L, timeout_gettime() - timeout_getstart(buf->tm)); -#endif - return lua_gettop(L) - top; -} - -/*-------------------------------------------------------------------------*\ -* Determines if there is any data in the read buffer -\*-------------------------------------------------------------------------*/ -int buffer_isempty(p_buffer buf) { - return buf->first >= buf->last; -} - -/*=========================================================================*\ -* Internal functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Sends a block of data (unbuffered) -\*-------------------------------------------------------------------------*/ -#define STEPSIZE 8192 -static int sendraw(p_buffer buf, const char *data, size_t count, size_t *sent) { - p_io io = buf->io; - p_timeout tm = buf->tm; - size_t total = 0; - int err = IO_DONE; - while (total < count && err == IO_DONE) { - size_t done = 0; - size_t step = (count-total <= STEPSIZE)? count-total: STEPSIZE; - err = io->send(io->ctx, data+total, step, &done, tm); - total += done; - } - *sent = total; - buf->sent += total; - return err; -} - -/*-------------------------------------------------------------------------*\ -* Reads a fixed number of bytes (buffered) -\*-------------------------------------------------------------------------*/ -static int recvraw(p_buffer buf, size_t wanted, luaL_Buffer *b) { - int err = IO_DONE; - size_t total = 0; - while (err == IO_DONE) { - size_t count; const char *data; - err = buffer_get(buf, &data, &count); - count = MIN(count, wanted - total); - luaL_addlstring(b, data, count); - buffer_skip(buf, count); - total += count; - if (total >= wanted) break; - } - return err; -} - -/*-------------------------------------------------------------------------*\ -* Reads everything until the connection is closed (buffered) -\*-------------------------------------------------------------------------*/ -static int recvall(p_buffer buf, luaL_Buffer *b) { - int err = IO_DONE; - size_t total = 0; - while (err == IO_DONE) { - const char *data; size_t count; - err = buffer_get(buf, &data, &count); - total += count; - luaL_addlstring(b, data, count); - buffer_skip(buf, count); - } - if (err == IO_CLOSED) { - if (total > 0) return IO_DONE; - else return IO_CLOSED; - } else return err; -} - -/*-------------------------------------------------------------------------*\ -* Reads a line terminated by a CR LF pair or just by a LF. The CR and LF -* are not returned by the function and are discarded from the buffer -\*-------------------------------------------------------------------------*/ -static int recvline(p_buffer buf, luaL_Buffer *b) { - int err = IO_DONE; - while (err == IO_DONE) { - size_t count, pos; const char *data; - err = buffer_get(buf, &data, &count); - pos = 0; - while (pos < count && data[pos] != '\n') { - /* we ignore all \r's */ - if (data[pos] != '\r') luaL_addchar(b, data[pos]); - pos++; - } - if (pos < count) { /* found '\n' */ - buffer_skip(buf, pos+1); /* skip '\n' too */ - break; /* we are done */ - } else /* reached the end of the buffer */ - buffer_skip(buf, pos); - } - return err; -} - -/*-------------------------------------------------------------------------*\ -* Skips a given number of bytes from read buffer. No data is read from the -* transport layer -\*-------------------------------------------------------------------------*/ -static void buffer_skip(p_buffer buf, size_t count) { - buf->received += count; - buf->first += count; - if (buffer_isempty(buf)) - buf->first = buf->last = 0; -} - -/*-------------------------------------------------------------------------*\ -* Return any data available in buffer, or get more data from transport layer -* if buffer is empty -\*-------------------------------------------------------------------------*/ -static int buffer_get(p_buffer buf, const char **data, size_t *count) { - int err = IO_DONE; - p_io io = buf->io; - p_timeout tm = buf->tm; - if (buffer_isempty(buf)) { - size_t got; - err = io->recv(io->ctx, buf->data, BUF_SIZE, &got, tm); - buf->first = 0; - buf->last = got; - } - *count = buf->last - buf->first; - *data = buf->data + buf->first; - return err; -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/buffer.h b/Build/source/texk/web2c/luatexdir/luasocket/src/buffer.h deleted file mode 100644 index 1281bb39149..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/buffer.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef BUF_H -#define BUF_H -/*=========================================================================*\ -* Input/Output interface for Lua programs -* LuaSocket toolkit -* -* Line patterns require buffering. Reading one character at a time involves -* too many system calls and is very slow. This module implements the -* LuaSocket interface for input/output on connected objects, as seen by -* Lua programs. -* -* Input is buffered. Output is *not* buffered because there was no simple -* way of making sure the buffered output data would ever be sent. -* -* The module is built on top of the I/O abstraction defined in io.h and the -* timeout management is done with the timeout.h interface. -\*=========================================================================*/ -#include "lua.h" - -#include "io.h" -#include "timeout.h" - -/* buffer size in bytes */ -#define BUF_SIZE 8192 - -/* buffer control structure */ -typedef struct t_buffer_ { - double birthday; /* throttle support info: creation time, */ - size_t sent, received; /* bytes sent, and bytes received */ - p_io io; /* IO driver used for this buffer */ - p_timeout tm; /* timeout management for this buffer */ - size_t first, last; /* index of first and last bytes of stored data */ - char data[BUF_SIZE]; /* storage space for buffer data */ -} t_buffer; -typedef t_buffer *p_buffer; - -int buffer_open(lua_State *L); -void buffer_init(p_buffer buf, p_io io, p_timeout tm); -int buffer_meth_send(lua_State *L, p_buffer buf); -int buffer_meth_receive(lua_State *L, p_buffer buf); -int buffer_meth_getstats(lua_State *L, p_buffer buf); -int buffer_meth_setstats(lua_State *L, p_buffer buf); -int buffer_isempty(p_buffer buf); - -#endif /* BUF_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.c b/Build/source/texk/web2c/luatexdir/luasocket/src/compat.c deleted file mode 100644 index e9ee32a154c..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.c +++ /dev/null @@ -1,19 +0,0 @@ -#include "compat.h" - -#if LUA_VERSION_NUM<501 -/* -** Adapted from Lua 5.2 -*/ -void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { - luaL_checkstack(L, nup+1, "too many upvalues"); - for (; l->name != NULL; l++) { /* fill the table with given functions */ - int i; - lua_pushstring(L, l->name); - for (i = 0; i < nup; i++) /* copy upvalues to the top */ - lua_pushvalue(L, -(nup+1)); - lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ - lua_settable(L, -(nup + 3)); - } - lua_pop(L, nup); /* remove upvalues */ -} -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.c.orig b/Build/source/texk/web2c/luatexdir/luasocket/src/compat.c.orig deleted file mode 100644 index c2d99cb20c6..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.c.orig +++ /dev/null @@ -1,19 +0,0 @@ -#include "compat.h" - -#if LUA_VERSION_NUM==501 -/* -** Adapted from Lua 5.2 -*/ -void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { - luaL_checkstack(L, nup+1, "too many upvalues"); - for (; l->name != NULL; l++) { /* fill the table with given functions */ - int i; - lua_pushstring(L, l->name); - for (i = 0; i < nup; i++) /* copy upvalues to the top */ - lua_pushvalue(L, -(nup+1)); - lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ - lua_settable(L, -(nup + 3)); - } - lua_pop(L, nup); /* remove upvalues */ -} -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.h b/Build/source/texk/web2c/luatexdir/luasocket/src/compat.h deleted file mode 100644 index a4d5f36a660..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef COMPAT_H -#define COMPAT_H - -#include "lua.h" -#include "lauxlib.h" - -#if LUA_VERSION_NUM<501 -void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); -#endif - -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.h.orig b/Build/source/texk/web2c/luatexdir/luasocket/src/compat.h.orig deleted file mode 100644 index 7bf8010ea85..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/compat.h.orig +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef COMPAT_H -#define COMPAT_H - -#include "lua.h" -#include "lauxlib.h" - -#if LUA_VERSION_NUM==501 -void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); -#endif - -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/except.c b/Build/source/texk/web2c/luatexdir/luasocket/src/except.c deleted file mode 100644 index 60b5005823a..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/except.c +++ /dev/null @@ -1,133 +0,0 @@ -/*=========================================================================*\ -* Simple exception support -* LuaSocket toolkit -\*=========================================================================*/ -#include <stdio.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "except.h" - -#if LUA_VERSION_NUM < 502 -#define lua_pcallk(L, na, nr, err, ctx, cont) \ - (((void)ctx),((void)cont),lua_pcall(L, na, nr, err)) -#endif - -#if LUA_VERSION_NUM < 503 -typedef int lua_KContext; -#endif - -/*=========================================================================*\ -* Internal function prototypes. -\*=========================================================================*/ -static int global_protect(lua_State *L); -static int global_newtry(lua_State *L); -static int protected_(lua_State *L); -static int finalize(lua_State *L); -static int do_nothing(lua_State *L); - -/* except functions */ -static luaL_Reg func[] = { - {"newtry", global_newtry}, - {"protect", global_protect}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Try factory -\*-------------------------------------------------------------------------*/ -static void wrap(lua_State *L) { - lua_createtable(L, 1, 0); - lua_pushvalue(L, -2); - lua_rawseti(L, -2, 1); - lua_pushvalue(L, lua_upvalueindex(1)); - lua_setmetatable(L, -2); -} - -static int finalize(lua_State *L) { - if (!lua_toboolean(L, 1)) { - lua_pushvalue(L, lua_upvalueindex(2)); - lua_call(L, 0, 0); - lua_settop(L, 2); - wrap(L); - lua_error(L); - return 0; - } else return lua_gettop(L); -} - -static int do_nothing(lua_State *L) { - (void) L; - return 0; -} - -static int global_newtry(lua_State *L) { - lua_settop(L, 1); - if (lua_isnil(L, 1)) lua_pushcfunction(L, do_nothing); - lua_pushvalue(L, lua_upvalueindex(1)); - lua_insert(L, -2); - lua_pushcclosure(L, finalize, 2); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Protect factory -\*-------------------------------------------------------------------------*/ -static int unwrap(lua_State *L) { - if (lua_istable(L, -1) && lua_getmetatable(L, -1)) { - int r = lua_rawequal(L, -1, lua_upvalueindex(1)); - lua_pop(L, 1); - if (r) { - lua_pushnil(L); - lua_rawgeti(L, -2, 1); - return 1; - } - } - return 0; -} - -static int protected_finish(lua_State *L, int status, lua_KContext ctx) { - (void)ctx; - if (status != 0 && status != LUA_YIELD) { - if (unwrap(L)) return 2; - else return lua_error(L); - } else return lua_gettop(L); -} - -#if LUA_VERSION_NUM == 502 -static int protected_cont(lua_State *L) { - int ctx = 0; - int status = lua_getctx(L, &ctx); - return protected_finish(L, status, ctx); -} -#else -#define protected_cont protected_finish -#endif - -static int protected_(lua_State *L) { - int status; - lua_pushvalue(L, lua_upvalueindex(2)); - lua_insert(L, 1); - status = lua_pcallk(L, lua_gettop(L) - 1, LUA_MULTRET, 0, 0, protected_cont); - return protected_finish(L, status, 0); -} - -static int global_protect(lua_State *L) { - lua_settop(L, 1); - lua_pushvalue(L, lua_upvalueindex(1)); - lua_insert(L, 1); - lua_pushcclosure(L, protected_, 2); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Init module -\*-------------------------------------------------------------------------*/ -int except_open(lua_State *L) { - lua_newtable(L); /* metatable for wrapped exceptions */ - lua_pushboolean(L, 0); - lua_setfield(L, -2, "__metatable"); - luaL_setfuncs(L, func, 1); - return 0; -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/except.h b/Build/source/texk/web2c/luatexdir/luasocket/src/except.h deleted file mode 100644 index 2497c0566b8..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/except.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef EXCEPT_H -#define EXCEPT_H -/*=========================================================================*\ -* Exception control -* LuaSocket toolkit (but completely independent from other modules) -* -* This provides support for simple exceptions in Lua. During the -* development of the HTTP/FTP/SMTP support, it became aparent that -* error checking was taking a substantial amount of the coding. These -* function greatly simplify the task of checking errors. -* -* The main idea is that functions should return nil as their first return -* values when they find an error, and return an error message (or value) -* following nil. In case of success, as long as the first value is not nil, -* the other values don't matter. -* -* The idea is to nest function calls with the "try" function. This function -* checks the first value, and, if it's falsy, wraps the second value in a -* table with metatable and calls "error" on it. Otherwise, it returns all -* values it received. Basically, it works like the Lua "assert" function, -* but it creates errors targeted specifically at "protect". -* -* The "newtry" function is a factory for "try" functions that call a -* finalizer in protected mode before calling "error". -* -* The "protect" function returns a new function that behaves exactly like -* the function it receives, but the new function catches exceptions thrown -* by "try" functions and returns nil followed by the error message instead. -* -* With these three functions, it's easy to write functions that throw -* exceptions on error, but that don't interrupt the user script. -\*=========================================================================*/ - -#include "lua.h" - -int except_open(lua_State *L); - -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ftp.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/ftp.lua deleted file mode 100644 index 905dd989def..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ftp.lua +++ /dev/null @@ -1,268 +0,0 @@ -local base = _G -local table = require("table") -local string = require("string") -local math = require("math") -local socket = socket or require("socket") -local url = socket.url or require("socket.url") -local tp = socket.tp or require("socket.tp") -local ltn12 = ltn12 or require("ltn12") -socket.ftp = {} -local _M = socket.ftp -module("socket.ftp") -_M.TIMEOUT = 60 -local PORT = 21 -_M.USER = "ftp" -_M.PASSWORD = "anonymous@anonymous.org" -local metat = { __index = {} } -function _M.open(server, port, create) - local tp = socket.try(tp.connect(server, port or PORT, _M.TIMEOUT, create)) - local f = base.setmetatable({ tp = tp }, metat) - -- make sure everything gets closed in an exception - f.try = socket.newtry(function() f:close() end) - return f -end -function metat.__index:portconnect() - self.try(self.server:settimeout(_M.TIMEOUT)) - self.data = self.try(self.server:accept()) - self.try(self.data:settimeout(_M.TIMEOUT)) -end -function metat.__index:pasvconnect() - self.data = self.try(socket.tcp()) - self.try(self.data:settimeout(_M.TIMEOUT)) - self.try(self.data:connect(self.pasvt.address, self.pasvt.port)) -end -function metat.__index:login(user, password) - self.try(self.tp:command("user", user or _M.USER)) - local code, reply = self.try(self.tp:check{"2..", 331}) - if code == 331 then - self.try(self.tp:command("pass", password or _M.PASSWORD)) - self.try(self.tp:check("2..")) - end - return 1 -end -function metat.__index:pasv() - self.try(self.tp:command("pasv")) - local code, reply = self.try(self.tp:check("2..")) - local pattern = "(%d+)%D(%d+)%D(%d+)%D(%d+)%D(%d+)%D(%d+)" - local a, b, c, d, p1, p2 = socket.skip(2, string.find(reply, pattern)) - self.try(a and b and c and d and p1 and p2, reply) - self.pasvt = { - address = string.format("%d.%d.%d.%d", a, b, c, d), - port = p1*256 + p2 - } - if self.server then - self.server:close() - self.server = nil - end - return self.pasvt.address, self.pasvt.port -end -function metat.__index:epsv() - self.try(self.tp:command("epsv")) - local code, reply = self.try(self.tp:check("229")) - local pattern = "%((.)(.-)%1(.-)%1(.-)%1%)" - local d, prt, address, port = string.match(reply, pattern) - self.try(port, "invalid epsv response") - self.pasvt = { - address = self.tp:getpeername(), - port = port - } - if self.server then - self.server:close() - self.server = nil - end - return self.pasvt.address, self.pasvt.port -end -function metat.__index:port(address, port) - self.pasvt = nil - if not address then - address, port = self.try(self.tp:getsockname()) - self.server = self.try(socket.bind(address, 0)) - address, port = self.try(self.server:getsockname()) - self.try(self.server:settimeout(_M.TIMEOUT)) - end - local pl = math.mod(port, 256) - local ph = (port - pl)/256 - local arg = string.gsub(string.format("%s,%d,%d", address, ph, pl), "%.", ",") - self.try(self.tp:command("port", arg)) - self.try(self.tp:check("2..")) - return 1 -end -function metat.__index:eprt(family, address, port) - self.pasvt = nil - if not address then - address, port = self.try(self.tp:getsockname()) - self.server = self.try(socket.bind(address, 0)) - address, port = self.try(self.server:getsockname()) - self.try(self.server:settimeout(_M.TIMEOUT)) - end - local arg = string.format("|%s|%s|%d|", family, address, port) - self.try(self.tp:command("eprt", arg)) - self.try(self.tp:check("2..")) - return 1 -end -function metat.__index:send(sendt) - self.try(self.pasvt or self.server, "need port or pasv first") - if self.pasvt then self:pasvconnect() end - local argument = sendt.argument or - url.unescape(string.gsub(sendt.path or "", "^[/\\]", "")) - if argument == "" then argument = nil end - local command = sendt.command or "stor" - self.try(self.tp:command(command, argument)) - local code, reply = self.try(self.tp:check{"2..", "1.."}) - if not self.pasvt then self:portconnect() end - local step = sendt.step or ltn12.pump.step - local readt = { self.tp } - local checkstep = function(src, snk) - local readyt = socket.select(readt, nil, 0) - if readyt[tp] then code = self.try(self.tp:check("2..")) end - return step(src, snk) - end - local sink = socket.sink("close-when-done", self.data) - self.try(ltn12.pump.all(sendt.source, sink, checkstep)) - if string.find(code, "1..") then self.try(self.tp:check("2..")) end - self.data:close() - local sent = socket.skip(1, self.data:getstats()) - self.data = nil - return sent -end -function metat.__index:receive(recvt) - self.try(self.pasvt or self.server, "need port or pasv first") - if self.pasvt then self:pasvconnect() end - local argument = recvt.argument or - url.unescape(string.gsub(recvt.path or "", "^[/\\]", "")) - if argument == "" then argument = nil end - local command = recvt.command or "retr" - self.try(self.tp:command(command, argument)) - local code,reply = self.try(self.tp:check{"1..", "2.."}) - if (code >= 200) and (code <= 299) then - recvt.sink(reply) - return 1 - end - if not self.pasvt then self:portconnect() end - local source = socket.source("until-closed", self.data) - local step = recvt.step or ltn12.pump.step - self.try(ltn12.pump.all(source, recvt.sink, step)) - if string.find(code, "1..") then self.try(self.tp:check("2..")) end - self.data:close() - self.data = nil - return 1 -end -function metat.__index:cwd(dir) - self.try(self.tp:command("cwd", dir)) - self.try(self.tp:check(250)) - return 1 -end -function metat.__index:type(type) - self.try(self.tp:command("type", type)) - self.try(self.tp:check(200)) - return 1 -end -function metat.__index:greet() - local code = self.try(self.tp:check{"1..", "2.."}) - if string.find(code, "1..") then self.try(self.tp:check("2..")) end - return 1 -end -function metat.__index:quit() - self.try(self.tp:command("quit")) - self.try(self.tp:check("2..")) - return 1 -end -function metat.__index:close() - if self.data then self.data:close() end - if self.server then self.server:close() end - return self.tp:close() -end -local function override(t) - if t.url then - local u = url.parse(t.url) - for i,v in base.pairs(t) do - u[i] = v - end - return u - else return t end -end -local function tput(putt) - putt = override(putt) - socket.try(putt.host, "missing hostname") - local f = _M.open(putt.host, putt.port, putt.create) - f:greet() - f:login(putt.user, putt.password) - if putt.type then f:type(putt.type) end - f:epsv() - local sent = f:send(putt) - f:quit() - f:close() - return sent -end -local default = { - path = "/", - scheme = "ftp" -} -local function genericform(u) - local t = socket.try(url.parse(u, default)) - socket.try(t.scheme == "ftp", "wrong scheme '" .. t.scheme .. "'") - socket.try(t.host, "missing hostname") - local pat = "^type=(.)$" - if t.params then - t.type = socket.skip(2, string.find(t.params, pat)) - socket.try(t.type == "a" or t.type == "i", - "invalid type '" .. t.type .. "'") - end - return t -end -_M.genericform = genericform -local function sput(u, body) - local putt = genericform(u) - putt.source = ltn12.source.string(body) - return tput(putt) -end -_M.put = socket.protect(function(putt, body) - if base.type(putt) == "string" then return sput(putt, body) - else return tput(putt) end -end) -local function tget(gett) - gett = override(gett) - socket.try(gett.host, "missing hostname") - local f = _M.open(gett.host, gett.port, gett.create) - f:greet() - f:login(gett.user, gett.password) - if gett.type then f:type(gett.type) end - f:epsv() - f:receive(gett) - f:quit() - return f:close() -end -local function sget(u) - local gett = genericform(u) - local t = {} - gett.sink = ltn12.sink.table(t) - tget(gett) - return table.concat(t) -end -_M.command = socket.protect(function(cmdt) - cmdt = override(cmdt) - socket.try(cmdt.host, "missing hostname") - socket.try(cmdt.command, "missing command") - local f = _M.open(cmdt.host, cmdt.port, cmdt.create) - f:greet() - f:login(cmdt.user, cmdt.password) - if type(cmdt.command) == "table" then - local argument = cmdt.argument or {} - local check = cmdt.check or {} - for i,cmd in ipairs(cmdt.command) do - f.try(f.tp:command(cmd, argument[i])) - if check[i] then f.try(f.tp:check(check[i])) end - end - else - f.try(f.tp:command(cmdt.command, cmdt.argument)) - if cmdt.check then f.try(f.tp:check(cmdt.check)) end - end - f:quit() - return f:close() -end) -_M.get = socket.protect(function(gett) - if base.type(gett) == "string" then return sget(gett) - else return tget(gett) end -end) -socket.ftp = _M -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ftp.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/ftp.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ftp.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ftp_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/ftp_lua.c deleted file mode 100644 index dc91e97691c..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ftp_lua.c +++ /dev/null @@ -1,754 +0,0 @@ -#include "lua.h" -#include "lauxlib.h" - -int luatex_ftp_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x28, 0x22, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x29, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, - 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x6d, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x6d, 0x61, 0x74, 0x68, 0x22, 0x29, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x6f, - 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, - 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x75, 0x72, 0x6c, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x75, 0x72, 0x6c, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x74, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x74, 0x70, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, - 0x74, 0x6e, 0x31, 0x32, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, - 0x22, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x22, 0x29, 0x0a, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x7b, 0x7d, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x74, 0x70, 0x0a, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x66, 0x74, 0x70, 0x22, 0x29, 0x0a, 0x5f, 0x4d, 0x2e, 0x54, - 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x20, 0x3d, 0x20, 0x36, 0x30, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x50, 0x4f, 0x52, 0x54, 0x20, 0x3d, - 0x20, 0x32, 0x31, 0x0a, 0x5f, 0x4d, 0x2e, 0x55, 0x53, 0x45, 0x52, 0x20, - 0x3d, 0x20, 0x22, 0x66, 0x74, 0x70, 0x22, 0x0a, 0x5f, 0x4d, 0x2e, 0x50, - 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x20, 0x3d, 0x20, 0x22, 0x61, - 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x40, 0x61, 0x6e, 0x6f, - 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x2e, 0x6f, 0x72, 0x67, 0x22, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x20, - 0x3d, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, - 0x3d, 0x20, 0x7b, 0x7d, 0x20, 0x7d, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x28, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x2c, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x70, 0x20, 0x3d, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x74, 0x70, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x20, - 0x6f, 0x72, 0x20, 0x50, 0x4f, 0x52, 0x54, 0x2c, 0x20, 0x5f, 0x4d, 0x2e, - 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x2c, 0x20, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x66, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x28, 0x7b, 0x20, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x70, 0x20, - 0x7d, 0x2c, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x2d, 0x2d, 0x20, 0x6d, 0x61, 0x6b, 0x65, 0x20, 0x73, 0x75, - 0x72, 0x65, 0x20, 0x65, 0x76, 0x65, 0x72, 0x79, 0x74, 0x68, 0x69, 0x6e, - 0x67, 0x20, 0x67, 0x65, 0x74, 0x73, 0x20, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x64, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x63, 0x65, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x6e, 0x65, 0x77, 0x74, 0x72, 0x79, 0x28, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x66, 0x3a, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x3a, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x3a, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x28, 0x5f, 0x4d, 0x2e, 0x54, 0x49, 0x4d, 0x45, 0x4f, - 0x55, 0x54, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, - 0x28, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x3a, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, - 0x74, 0x28, 0x5f, 0x4d, 0x2e, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, - 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x70, 0x61, 0x73, 0x76, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x20, 0x3d, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x28, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x28, 0x5f, 0x4d, 0x2e, - 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x29, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, - 0x73, 0x76, 0x74, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x2e, - 0x70, 0x6f, 0x72, 0x74, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, - 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x28, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x28, 0x22, 0x75, 0x73, 0x65, 0x72, 0x22, 0x2c, 0x20, 0x75, 0x73, 0x65, - 0x72, 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x55, 0x53, 0x45, 0x52, - 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, - 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, - 0x6b, 0x7b, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x2c, 0x20, 0x33, 0x33, 0x31, - 0x7d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x6f, - 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x33, 0x33, 0x31, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, - 0x22, 0x70, 0x61, 0x73, 0x73, 0x22, 0x2c, 0x20, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x50, - 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x29, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x70, 0x61, 0x73, 0x76, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, - 0x28, 0x22, 0x70, 0x61, 0x73, 0x76, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, 0x65, - 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x3d, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, - 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x20, 0x3d, - 0x20, 0x22, 0x28, 0x25, 0x64, 0x2b, 0x29, 0x25, 0x44, 0x28, 0x25, 0x64, - 0x2b, 0x29, 0x25, 0x44, 0x28, 0x25, 0x64, 0x2b, 0x29, 0x25, 0x44, 0x28, - 0x25, 0x64, 0x2b, 0x29, 0x25, 0x44, 0x28, 0x25, 0x64, 0x2b, 0x29, 0x25, - 0x44, 0x28, 0x25, 0x64, 0x2b, 0x29, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x2c, 0x20, 0x62, 0x2c, 0x20, - 0x63, 0x2c, 0x20, 0x64, 0x2c, 0x20, 0x70, 0x31, 0x2c, 0x20, 0x70, 0x32, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6b, - 0x69, 0x70, 0x28, 0x32, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x2c, - 0x20, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x61, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x62, 0x20, 0x61, 0x6e, 0x64, 0x20, - 0x63, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, - 0x70, 0x31, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x70, 0x32, 0x2c, 0x20, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x3d, 0x20, 0x7b, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x28, 0x22, 0x25, 0x64, - 0x2e, 0x25, 0x64, 0x2e, 0x25, 0x64, 0x2e, 0x25, 0x64, 0x22, 0x2c, 0x20, - 0x61, 0x2c, 0x20, 0x62, 0x2c, 0x20, 0x63, 0x2c, 0x20, 0x64, 0x29, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x20, 0x3d, 0x20, 0x70, 0x31, 0x2a, 0x32, 0x35, 0x36, 0x20, 0x2b, - 0x20, 0x70, 0x32, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x3d, 0x20, - 0x6e, 0x69, 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x2e, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x70, 0x61, 0x73, 0x76, 0x74, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x3a, 0x65, 0x70, 0x73, 0x76, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x28, 0x22, 0x65, 0x70, 0x73, 0x76, 0x22, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x3d, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, - 0x32, 0x39, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x20, - 0x3d, 0x20, 0x22, 0x25, 0x28, 0x28, 0x2e, 0x29, 0x28, 0x2e, 0x2d, 0x29, - 0x25, 0x31, 0x28, 0x2e, 0x2d, 0x29, 0x25, 0x31, 0x28, 0x2e, 0x2d, 0x29, - 0x25, 0x31, 0x25, 0x29, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x64, 0x2c, 0x20, 0x70, 0x72, 0x74, 0x2c, 0x20, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x28, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x2c, 0x20, - 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x70, 0x6f, - 0x72, 0x74, 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x20, 0x65, 0x70, 0x73, 0x76, 0x20, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x70, 0x3a, 0x67, 0x65, 0x74, 0x70, 0x65, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x28, 0x29, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x3d, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x6e, 0x69, 0x6c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, - 0x76, 0x74, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x70, - 0x6f, 0x72, 0x74, 0x28, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, - 0x20, 0x70, 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x3d, 0x20, - 0x6e, 0x69, 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x67, 0x65, 0x74, - 0x73, 0x6f, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x28, 0x29, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x62, 0x69, 0x6e, 0x64, 0x28, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x2c, 0x20, 0x30, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, - 0x20, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x3a, 0x67, 0x65, 0x74, 0x73, 0x6f, 0x63, 0x6b, - 0x6e, 0x61, 0x6d, 0x65, 0x28, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x3a, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x28, - 0x5f, 0x4d, 0x2e, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x6c, 0x20, 0x3d, 0x20, - 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x6d, 0x6f, 0x64, 0x28, 0x70, 0x6f, 0x72, - 0x74, 0x2c, 0x20, 0x32, 0x35, 0x36, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x68, 0x20, 0x3d, 0x20, 0x28, - 0x70, 0x6f, 0x72, 0x74, 0x20, 0x2d, 0x20, 0x70, 0x6c, 0x29, 0x2f, 0x32, - 0x35, 0x36, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x61, 0x72, 0x67, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x28, 0x22, 0x25, 0x73, - 0x2c, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x22, 0x2c, 0x20, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x68, 0x2c, 0x20, 0x70, 0x6c, - 0x29, 0x2c, 0x20, 0x22, 0x25, 0x2e, 0x22, 0x2c, 0x20, 0x22, 0x2c, 0x22, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x70, 0x6f, 0x72, 0x74, - 0x22, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, - 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, - 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, - 0x65, 0x70, 0x72, 0x74, 0x28, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x2c, - 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, - 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x3d, 0x20, 0x6e, 0x69, 0x6c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x3d, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x67, 0x65, 0x74, 0x73, 0x6f, 0x63, - 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x28, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x62, - 0x69, 0x6e, 0x64, 0x28, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, - 0x20, 0x30, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, - 0x72, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x3a, 0x67, 0x65, 0x74, 0x73, 0x6f, 0x63, 0x6b, 0x6e, 0x61, 0x6d, - 0x65, 0x28, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x28, 0x5f, 0x4d, 0x2e, - 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x29, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x61, 0x72, 0x67, 0x20, 0x3d, 0x20, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x28, - 0x22, 0x7c, 0x25, 0x73, 0x7c, 0x25, 0x73, 0x7c, 0x25, 0x64, 0x7c, 0x22, - 0x2c, 0x20, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x2c, 0x20, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x65, 0x70, 0x72, 0x74, 0x22, - 0x2c, 0x20, 0x61, 0x72, 0x67, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, - 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x73, 0x65, 0x6e, 0x64, 0x74, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x6f, - 0x72, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2c, 0x20, 0x22, 0x6e, 0x65, 0x65, 0x64, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x20, 0x6f, 0x72, 0x20, 0x70, 0x61, 0x73, 0x76, 0x20, 0x66, 0x69, - 0x72, 0x73, 0x74, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, 0x70, 0x61, - 0x73, 0x76, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x3d, - 0x20, 0x73, 0x65, 0x6e, 0x64, 0x74, 0x2e, 0x61, 0x72, 0x67, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x75, 0x72, 0x6c, 0x2e, 0x75, 0x6e, 0x65, 0x73, 0x63, - 0x61, 0x70, 0x65, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, - 0x73, 0x75, 0x62, 0x28, 0x73, 0x65, 0x6e, 0x64, 0x74, 0x2e, 0x70, 0x61, - 0x74, 0x68, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x22, 0x2c, 0x20, 0x22, 0x5e, - 0x5b, 0x2f, 0x5c, 0x5c, 0x5d, 0x22, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x61, 0x72, 0x67, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x20, 0x3d, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x74, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x72, 0x20, - 0x22, 0x73, 0x74, 0x6f, 0x72, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2c, 0x20, 0x61, 0x72, 0x67, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, - 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, - 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x7b, 0x22, 0x32, 0x2e, 0x2e, 0x22, - 0x2c, 0x20, 0x22, 0x31, 0x2e, 0x2e, 0x22, 0x7d, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, - 0x65, 0x70, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x74, 0x2e, 0x73, - 0x74, 0x65, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x61, - 0x64, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x70, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x74, 0x65, 0x70, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x73, 0x72, 0x63, 0x2c, 0x20, 0x73, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x72, 0x65, 0x61, 0x64, 0x79, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x28, 0x72, - 0x65, 0x61, 0x64, 0x74, 0x2c, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x30, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x72, 0x65, 0x61, 0x64, 0x79, 0x74, 0x5b, 0x74, 0x70, 0x5d, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, - 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x73, 0x74, 0x65, 0x70, 0x28, 0x73, 0x72, 0x63, 0x2c, 0x20, - 0x73, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, - 0x69, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x28, 0x22, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x2d, 0x77, 0x68, 0x65, 0x6e, 0x2d, 0x64, 0x6f, 0x6e, 0x65, 0x22, 0x2c, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, - 0x61, 0x6c, 0x6c, 0x28, 0x73, 0x65, 0x6e, 0x64, 0x74, 0x2e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x20, - 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x74, 0x65, 0x70, 0x29, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x2c, - 0x20, 0x22, 0x31, 0x2e, 0x2e, 0x22, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, - 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x65, 0x6e, 0x74, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6b, - 0x69, 0x70, 0x28, 0x31, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x3a, 0x67, 0x65, 0x74, 0x73, 0x74, 0x61, 0x74, 0x73, - 0x28, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x20, 0x3d, 0x20, 0x6e, 0x69, 0x6c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x65, 0x6e, 0x74, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, - 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x28, 0x72, 0x65, 0x63, 0x76, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x6f, 0x72, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2c, 0x20, 0x22, 0x6e, 0x65, 0x65, 0x64, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x20, 0x6f, 0x72, 0x20, 0x70, 0x61, 0x73, 0x76, 0x20, 0x66, 0x69, 0x72, - 0x73, 0x74, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, 0x61, 0x73, 0x76, 0x74, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, 0x70, 0x61, 0x73, - 0x76, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x3d, 0x20, - 0x72, 0x65, 0x63, 0x76, 0x74, 0x2e, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x20, 0x6f, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x75, 0x72, 0x6c, 0x2e, 0x75, 0x6e, 0x65, 0x73, 0x63, 0x61, - 0x70, 0x65, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, - 0x75, 0x62, 0x28, 0x72, 0x65, 0x63, 0x76, 0x74, 0x2e, 0x70, 0x61, 0x74, - 0x68, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x22, 0x2c, 0x20, 0x22, 0x5e, 0x5b, - 0x2f, 0x5c, 0x5c, 0x5d, 0x22, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x20, - 0x3d, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x63, 0x76, 0x74, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x72, 0x20, 0x22, - 0x72, 0x65, 0x74, 0x72, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x72, 0x65, - 0x70, 0x6c, 0x79, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x7b, 0x22, 0x31, 0x2e, 0x2e, 0x22, 0x2c, 0x20, - 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x7d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3e, 0x3d, 0x20, - 0x32, 0x30, 0x30, 0x29, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x28, 0x63, 0x6f, - 0x64, 0x65, 0x20, 0x3c, 0x3d, 0x20, 0x32, 0x39, 0x39, 0x29, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x63, 0x76, 0x74, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x28, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x70, - 0x61, 0x73, 0x76, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x3a, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x28, 0x22, 0x75, 0x6e, 0x74, 0x69, 0x6c, - 0x2d, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x22, 0x2c, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, - 0x3d, 0x20, 0x72, 0x65, 0x63, 0x76, 0x74, 0x2e, 0x73, 0x74, 0x65, 0x70, - 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x70, 0x75, - 0x6d, 0x70, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x6c, 0x74, 0x6e, - 0x31, 0x32, 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x61, 0x6c, 0x6c, 0x28, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x63, 0x76, - 0x74, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, - 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x63, 0x6f, - 0x64, 0x65, 0x2c, 0x20, 0x22, 0x31, 0x2e, 0x2e, 0x22, 0x29, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x20, 0x3d, 0x20, 0x6e, 0x69, 0x6c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x63, 0x77, 0x64, 0x28, 0x64, 0x69, 0x72, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x28, 0x22, 0x63, 0x77, 0x64, 0x22, 0x2c, 0x20, 0x64, 0x69, - 0x72, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, - 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x32, 0x35, 0x30, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x74, 0x79, 0x70, 0x65, 0x28, 0x74, 0x79, - 0x70, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, - 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x74, 0x79, - 0x70, 0x65, 0x22, 0x2c, 0x20, 0x74, 0x79, 0x70, 0x65, 0x29, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x28, 0x32, 0x30, 0x30, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x67, 0x72, 0x65, 0x65, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, - 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, - 0x7b, 0x22, 0x31, 0x2e, 0x2e, 0x22, 0x2c, 0x20, 0x22, 0x32, 0x2e, 0x2e, - 0x22, 0x7d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x63, - 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x22, 0x31, 0x2e, 0x2e, 0x22, 0x29, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, - 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, - 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x71, 0x75, 0x69, 0x74, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x71, 0x75, 0x69, - 0x74, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, - 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, - 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x3a, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x28, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x76, - 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x28, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x74, 0x2e, 0x75, 0x72, 0x6c, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x75, 0x20, 0x3d, 0x20, 0x75, 0x72, - 0x6c, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, 0x74, 0x2e, 0x75, 0x72, - 0x6c, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, - 0x6f, 0x72, 0x20, 0x69, 0x2c, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x74, 0x29, 0x20, - 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x75, 0x5b, 0x69, 0x5d, 0x20, 0x3d, 0x20, 0x76, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x75, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x70, - 0x75, 0x74, 0x28, 0x70, 0x75, 0x74, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x70, 0x75, 0x74, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x76, 0x65, 0x72, - 0x72, 0x69, 0x64, 0x65, 0x28, 0x70, 0x75, 0x74, 0x74, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x70, 0x75, 0x74, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2c, - 0x20, 0x22, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x68, 0x6f, - 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x20, 0x3d, 0x20, 0x5f, - 0x4d, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x28, 0x70, 0x75, 0x74, 0x74, 0x2e, - 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x75, 0x74, 0x74, 0x2e, 0x70, - 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x70, 0x75, 0x74, 0x74, 0x2e, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, - 0x67, 0x72, 0x65, 0x65, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x66, 0x3a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x28, 0x70, 0x75, 0x74, 0x74, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x75, 0x74, 0x74, 0x2e, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x75, 0x74, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x66, 0x3a, 0x74, 0x79, - 0x70, 0x65, 0x28, 0x70, 0x75, 0x74, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, - 0x65, 0x70, 0x73, 0x76, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x65, 0x6e, 0x74, 0x20, 0x3d, 0x20, - 0x66, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, 0x70, 0x75, 0x74, 0x74, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x71, 0x75, 0x69, 0x74, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6e, 0x74, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, - 0x74, 0x68, 0x20, 0x3d, 0x20, 0x22, 0x2f, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x22, - 0x66, 0x74, 0x70, 0x22, 0x0a, 0x7d, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x66, 0x6f, 0x72, 0x6d, 0x28, 0x75, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, - 0x75, 0x2c, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x74, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, - 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x66, 0x74, 0x70, 0x22, 0x2c, 0x20, 0x22, - 0x77, 0x72, 0x6f, 0x6e, 0x67, 0x20, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, - 0x20, 0x27, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x74, 0x2e, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x65, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x27, 0x22, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x22, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x68, 0x6f, 0x73, 0x74, - 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x61, 0x74, 0x20, 0x3d, 0x20, 0x22, - 0x5e, 0x74, 0x79, 0x70, 0x65, 0x3d, 0x28, 0x2e, 0x29, 0x24, 0x22, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x74, 0x2e, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x20, - 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6b, 0x69, - 0x70, 0x28, 0x32, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x66, 0x69, 0x6e, 0x64, 0x28, 0x74, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x2c, 0x20, 0x70, 0x61, 0x74, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x61, 0x22, 0x20, 0x6f, 0x72, 0x20, 0x74, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x69, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x22, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x74, 0x79, 0x70, - 0x65, 0x20, 0x27, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x74, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x27, 0x22, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x5f, 0x4d, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x66, 0x6f, - 0x72, 0x6d, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x66, 0x6f, 0x72, 0x6d, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x75, 0x74, - 0x28, 0x75, 0x2c, 0x20, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x75, 0x74, 0x74, - 0x20, 0x3d, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x66, 0x6f, - 0x72, 0x6d, 0x28, 0x75, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x75, - 0x74, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, - 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x62, 0x6f, 0x64, 0x79, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x74, 0x70, 0x75, 0x74, 0x28, 0x70, 0x75, 0x74, 0x74, 0x29, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x4d, 0x2e, 0x70, 0x75, 0x74, 0x20, 0x3d, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x65, 0x63, 0x74, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x70, 0x75, 0x74, 0x74, 0x2c, 0x20, 0x62, 0x6f, 0x64, 0x79, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x70, 0x75, 0x74, 0x74, 0x29, 0x20, - 0x3d, 0x3d, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x70, 0x75, 0x74, 0x28, 0x70, 0x75, 0x74, 0x74, 0x2c, 0x20, 0x62, - 0x6f, 0x64, 0x79, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x70, 0x75, - 0x74, 0x28, 0x70, 0x75, 0x74, 0x74, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x67, 0x65, 0x74, - 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x67, - 0x65, 0x74, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, - 0x64, 0x65, 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x67, 0x65, 0x74, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x22, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x68, 0x6f, 0x73, 0x74, - 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x28, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x68, 0x6f, - 0x73, 0x74, 0x2c, 0x20, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x70, 0x6f, 0x72, - 0x74, 0x2c, 0x20, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x67, 0x72, - 0x65, 0x65, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, - 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x28, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x2c, 0x20, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x66, 0x3a, 0x74, 0x79, 0x70, 0x65, - 0x28, 0x67, 0x65, 0x74, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x65, 0x70, - 0x73, 0x76, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x71, 0x75, 0x69, 0x74, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x66, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x67, 0x65, 0x74, 0x28, 0x75, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x67, 0x65, 0x74, 0x74, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x69, 0x63, 0x66, 0x6f, 0x72, 0x6d, 0x28, 0x75, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x20, 0x3d, 0x20, - 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x74, 0x2e, - 0x73, 0x69, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, - 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x74, 0x67, 0x65, 0x74, 0x28, - 0x67, 0x65, 0x74, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x63, - 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x28, 0x74, 0x29, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x5f, 0x4d, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x20, - 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x65, 0x63, 0x74, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x63, 0x6d, 0x64, 0x74, 0x20, 0x3d, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x72, - 0x69, 0x64, 0x65, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, - 0x22, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x68, 0x6f, 0x73, - 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x63, - 0x6d, 0x64, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2c, - 0x20, 0x22, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x20, 0x3d, 0x20, 0x5f, 0x4d, - 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x68, - 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x70, 0x6f, - 0x72, 0x74, 0x2c, 0x20, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, 0x67, - 0x72, 0x65, 0x65, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, - 0x3a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x74, 0x79, 0x70, 0x65, 0x28, 0x63, 0x6d, 0x64, - 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x29, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, - 0x74, 0x20, 0x3d, 0x20, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x61, 0x72, 0x67, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x7b, 0x7d, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x3d, 0x20, 0x63, 0x6d, - 0x64, 0x74, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x6f, 0x72, 0x20, - 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, - 0x6f, 0x72, 0x20, 0x69, 0x2c, 0x63, 0x6d, 0x64, 0x20, 0x69, 0x6e, 0x20, - 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x29, 0x20, 0x64, 0x6f, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x63, 0x6d, 0x64, 0x2c, 0x20, - 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5b, 0x69, 0x5d, 0x29, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5b, 0x69, - 0x5d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, - 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5b, 0x69, 0x5d, 0x29, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x2c, 0x20, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x61, 0x72, - 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x6d, 0x64, 0x74, - 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x28, 0x63, 0x6d, 0x64, 0x74, 0x2e, 0x63, 0x68, - 0x65, 0x63, 0x6b, 0x29, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x3a, - 0x71, 0x75, 0x69, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x3a, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x28, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x5f, 0x4d, 0x2e, - 0x67, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x28, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x67, 0x65, 0x74, 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x74, 0x67, 0x65, 0x74, 0x28, 0x67, 0x65, 0x74, 0x74, 0x29, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x66, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x5f, - 0x4d, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d, 0x0a, - 0x00}; - return luaL_dostring(L, (const char*)B); -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/headers.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/headers.lua deleted file mode 100644 index 3a3dcaf0e20..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/headers.lua +++ /dev/null @@ -1,100 +0,0 @@ -if not(socket) then - local socket = require("socket") -end -socket.headers = {} -local _M = socket.headers -module("socket.headers") -_M.canonic = { - ["accept"] = "Accept", - ["accept-charset"] = "Accept-Charset", - ["accept-encoding"] = "Accept-Encoding", - ["accept-language"] = "Accept-Language", - ["accept-ranges"] = "Accept-Ranges", - ["action"] = "Action", - ["alternate-recipient"] = "Alternate-Recipient", - ["age"] = "Age", - ["allow"] = "Allow", - ["arrival-date"] = "Arrival-Date", - ["authorization"] = "Authorization", - ["bcc"] = "Bcc", - ["cache-control"] = "Cache-Control", - ["cc"] = "Cc", - ["comments"] = "Comments", - ["connection"] = "Connection", - ["content-description"] = "Content-Description", - ["content-disposition"] = "Content-Disposition", - ["content-encoding"] = "Content-Encoding", - ["content-id"] = "Content-ID", - ["content-language"] = "Content-Language", - ["content-length"] = "Content-Length", - ["content-location"] = "Content-Location", - ["content-md5"] = "Content-MD5", - ["content-range"] = "Content-Range", - ["content-transfer-encoding"] = "Content-Transfer-Encoding", - ["content-type"] = "Content-Type", - ["cookie"] = "Cookie", - ["date"] = "Date", - ["diagnostic-code"] = "Diagnostic-Code", - ["dsn-gateway"] = "DSN-Gateway", - ["etag"] = "ETag", - ["expect"] = "Expect", - ["expires"] = "Expires", - ["final-log-id"] = "Final-Log-ID", - ["final-recipient"] = "Final-Recipient", - ["from"] = "From", - ["host"] = "Host", - ["if-match"] = "If-Match", - ["if-modified-since"] = "If-Modified-Since", - ["if-none-match"] = "If-None-Match", - ["if-range"] = "If-Range", - ["if-unmodified-since"] = "If-Unmodified-Since", - ["in-reply-to"] = "In-Reply-To", - ["keywords"] = "Keywords", - ["last-attempt-date"] = "Last-Attempt-Date", - ["last-modified"] = "Last-Modified", - ["location"] = "Location", - ["max-forwards"] = "Max-Forwards", - ["message-id"] = "Message-ID", - ["mime-version"] = "MIME-Version", - ["original-envelope-id"] = "Original-Envelope-ID", - ["original-recipient"] = "Original-Recipient", - ["pragma"] = "Pragma", - ["proxy-authenticate"] = "Proxy-Authenticate", - ["proxy-authorization"] = "Proxy-Authorization", - ["range"] = "Range", - ["received"] = "Received", - ["received-from-mta"] = "Received-From-MTA", - ["references"] = "References", - ["referer"] = "Referer", - ["remote-mta"] = "Remote-MTA", - ["reply-to"] = "Reply-To", - ["reporting-mta"] = "Reporting-MTA", - ["resent-bcc"] = "Resent-Bcc", - ["resent-cc"] = "Resent-Cc", - ["resent-date"] = "Resent-Date", - ["resent-from"] = "Resent-From", - ["resent-message-id"] = "Resent-Message-ID", - ["resent-reply-to"] = "Resent-Reply-To", - ["resent-sender"] = "Resent-Sender", - ["resent-to"] = "Resent-To", - ["retry-after"] = "Retry-After", - ["return-path"] = "Return-Path", - ["sender"] = "Sender", - ["server"] = "Server", - ["smtp-remote-recipient"] = "SMTP-Remote-Recipient", - ["status"] = "Status", - ["subject"] = "Subject", - ["te"] = "TE", - ["to"] = "To", - ["trailer"] = "Trailer", - ["transfer-encoding"] = "Transfer-Encoding", - ["upgrade"] = "Upgrade", - ["user-agent"] = "User-Agent", - ["vary"] = "Vary", - ["via"] = "Via", - ["warning"] = "Warning", - ["will-retry-until"] = "Will-Retry-Until", - ["www-authenticate"] = "WWW-Authenticate", - ["x-mailer"] = "X-Mailer", -} -return _M
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/headers.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/headers.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/headers.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/headers_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/headers_lua.c deleted file mode 100644 index 8e701614539..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/headers_lua.c +++ /dev/null @@ -1,300 +0,0 @@ -#include "lua.h" -#include "lauxlib.h" - -int luatex_headers_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x0a, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x3d, - 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x22, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, - 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x0a, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x29, 0x0a, 0x5f, 0x4d, - 0x2e, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x20, 0x3d, 0x20, 0x7b, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, 0x63, 0x63, 0x65, 0x70, - 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x63, 0x63, 0x65, 0x70, - 0x74, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, 0x63, - 0x63, 0x65, 0x70, 0x74, 0x2d, 0x63, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, - 0x2d, 0x43, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, - 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, 0x45, 0x6e, 0x63, - 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, - 0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, - 0x67, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, - 0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, - 0x2d, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, - 0x20, 0x3d, 0x20, 0x22, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, 0x6c, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x74, 0x65, 0x2d, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, - 0x6e, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x6c, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x74, 0x65, 0x2d, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, - 0x65, 0x6e, 0x74, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x61, 0x67, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x67, 0x65, - 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x6c, 0x6c, 0x6f, - 0x77, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x61, 0x72, - 0x72, 0x69, 0x76, 0x61, 0x6c, 0x2d, 0x64, 0x61, 0x74, 0x65, 0x22, 0x5d, - 0x20, 0x3d, 0x20, 0x22, 0x41, 0x72, 0x72, 0x69, 0x76, 0x61, 0x6c, 0x2d, - 0x44, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x62, 0x63, 0x63, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x42, 0x63, 0x63, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2d, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x2d, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x63, 0x22, 0x5d, - 0x20, 0x3d, 0x20, 0x22, 0x43, 0x63, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x64, 0x69, - 0x73, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x44, - 0x69, 0x73, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x2d, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x2d, 0x69, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x49, 0x44, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x2d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x4c, - 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, - 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x4c, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x6d, 0x64, 0x35, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x4d, - 0x44, 0x35, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x72, 0x61, 0x6e, 0x67, 0x65, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x2d, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2d, 0x65, 0x6e, 0x63, - 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, - 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x54, - 0x79, 0x70, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x64, 0x61, 0x74, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x44, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x2d, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x44, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2d, 0x43, 0x6f, - 0x64, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x64, - 0x73, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x22, 0x5d, - 0x20, 0x3d, 0x20, 0x22, 0x44, 0x53, 0x4e, 0x2d, 0x47, 0x61, 0x74, 0x65, - 0x77, 0x61, 0x79, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x65, 0x74, 0x61, 0x67, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x45, 0x54, - 0x61, 0x67, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x65, - 0x78, 0x70, 0x65, 0x63, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x45, - 0x78, 0x70, 0x65, 0x63, 0x74, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x66, 0x69, 0x6e, 0x61, 0x6c, - 0x2d, 0x6c, 0x6f, 0x67, 0x2d, 0x69, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x2d, 0x4c, 0x6f, 0x67, 0x2d, 0x49, - 0x44, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x66, 0x69, - 0x6e, 0x61, 0x6c, 0x2d, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, - 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x46, 0x69, 0x6e, 0x61, 0x6c, - 0x2d, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x66, 0x72, 0x6f, 0x6d, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x68, 0x6f, 0x73, 0x74, 0x22, 0x5d, - 0x20, 0x3d, 0x20, 0x22, 0x48, 0x6f, 0x73, 0x74, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x69, 0x66, 0x2d, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x49, 0x66, 0x2d, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x69, 0x66, 0x2d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, - 0x73, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x49, - 0x66, 0x2d, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2d, 0x53, - 0x69, 0x6e, 0x63, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x69, 0x66, 0x2d, 0x6e, 0x6f, 0x6e, 0x65, 0x2d, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x49, 0x66, 0x2d, 0x4e, - 0x6f, 0x6e, 0x65, 0x2d, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x69, 0x66, 0x2d, 0x72, 0x61, 0x6e, - 0x67, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x49, 0x66, 0x2d, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x69, 0x66, 0x2d, 0x75, 0x6e, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x2d, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x49, 0x66, 0x2d, 0x55, 0x6e, 0x6d, 0x6f, 0x64, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x2d, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x69, 0x6e, 0x2d, 0x72, 0x65, 0x70, - 0x6c, 0x79, 0x2d, 0x74, 0x6f, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x49, - 0x6e, 0x2d, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x2d, 0x54, 0x6f, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x6b, 0x65, 0x79, 0x77, 0x6f, - 0x72, 0x64, 0x73, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4b, 0x65, 0x79, - 0x77, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x6c, 0x61, 0x73, 0x74, 0x2d, 0x61, 0x74, 0x74, 0x65, 0x6d, - 0x70, 0x74, 0x2d, 0x64, 0x61, 0x74, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x4c, 0x61, 0x73, 0x74, 0x2d, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, - 0x74, 0x2d, 0x44, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x6c, 0x61, 0x73, 0x74, 0x2d, 0x6d, 0x6f, 0x64, 0x69, - 0x66, 0x69, 0x65, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4c, 0x61, - 0x73, 0x74, 0x2d, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x6d, 0x61, 0x78, 0x2d, 0x66, 0x6f, 0x72, 0x77, 0x61, - 0x72, 0x64, 0x73, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4d, 0x61, 0x78, - 0x2d, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x73, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2d, 0x69, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x2d, 0x49, 0x44, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x6d, 0x69, 0x6d, 0x65, 0x2d, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4d, - 0x49, 0x4d, 0x45, 0x2d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x61, 0x6c, 0x2d, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, - 0x65, 0x2d, 0x69, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x4f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x2d, 0x45, 0x6e, 0x76, 0x65, 0x6c, - 0x6f, 0x70, 0x65, 0x2d, 0x49, 0x44, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x2d, - 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x2d, - 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x70, 0x72, 0x61, 0x67, 0x6d, 0x61, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x50, 0x72, 0x61, 0x67, 0x6d, 0x61, - 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x70, 0x72, 0x6f, - 0x78, 0x79, 0x2d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x2d, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2d, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x5d, - 0x20, 0x3d, 0x20, 0x22, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x2d, 0x66, 0x72, - 0x6f, 0x6d, 0x2d, 0x6d, 0x74, 0x61, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x2d, 0x46, 0x72, 0x6f, - 0x6d, 0x2d, 0x4d, 0x54, 0x41, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x2d, 0x6d, 0x74, 0x61, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x2d, 0x4d, 0x54, 0x41, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x2d, 0x74, - 0x6f, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x70, 0x6c, 0x79, - 0x2d, 0x54, 0x6f, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2d, 0x6d, 0x74, - 0x61, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x2d, 0x4d, 0x54, 0x41, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, - 0x62, 0x63, 0x63, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x73, - 0x65, 0x6e, 0x74, 0x2d, 0x42, 0x63, 0x63, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x63, - 0x63, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x73, 0x65, 0x6e, - 0x74, 0x2d, 0x43, 0x63, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x64, 0x61, 0x74, 0x65, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x74, - 0x2d, 0x44, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x5b, 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x66, 0x72, 0x6f, - 0x6d, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x73, 0x65, 0x6e, - 0x74, 0x2d, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x2d, 0x69, 0x64, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2d, 0x49, 0x44, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x2d, 0x74, 0x6f, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x52, 0x65, 0x70, 0x6c, - 0x79, 0x2d, 0x54, 0x6f, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, - 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x73, 0x65, - 0x6e, 0x74, 0x2d, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, - 0x2d, 0x74, 0x6f, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x73, - 0x65, 0x6e, 0x74, 0x2d, 0x54, 0x6f, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x72, 0x65, 0x74, 0x72, 0x79, 0x2d, 0x61, 0x66, 0x74, - 0x65, 0x72, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x74, 0x72, - 0x79, 0x2d, 0x41, 0x66, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x2d, 0x70, - 0x61, 0x74, 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x52, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x2d, 0x50, 0x61, 0x74, 0x68, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x73, - 0x6d, 0x74, 0x70, 0x2d, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2d, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x53, 0x4d, 0x54, 0x50, 0x2d, 0x52, 0x65, 0x6d, 0x6f, 0x74, - 0x65, 0x2d, 0x52, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x22, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x73, - 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x74, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x54, 0x45, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x74, - 0x6f, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x54, 0x6f, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, - 0x72, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x54, 0x72, 0x61, 0x69, 0x6c, - 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2d, 0x65, 0x6e, 0x63, 0x6f, - 0x64, 0x69, 0x6e, 0x67, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, - 0x69, 0x6e, 0x67, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x55, 0x73, 0x65, - 0x72, 0x2d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x76, 0x61, 0x72, 0x79, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x56, 0x61, 0x72, 0x79, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x76, 0x69, 0x61, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x56, 0x69, 0x61, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, - 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x22, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x77, 0x69, 0x6c, 0x6c, 0x2d, 0x72, 0x65, - 0x74, 0x72, 0x79, 0x2d, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x57, 0x69, 0x6c, 0x6c, 0x2d, 0x52, 0x65, 0x74, 0x72, - 0x79, 0x2d, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x22, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x77, 0x77, 0x77, 0x2d, 0x61, 0x75, 0x74, 0x68, - 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x5d, 0x20, 0x3d, - 0x20, 0x22, 0x57, 0x57, 0x57, 0x2d, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, - 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x5b, 0x22, 0x78, 0x2d, 0x6d, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x58, 0x2d, 0x4d, 0x61, 0x69, 0x6c, 0x65, - 0x72, 0x22, 0x2c, 0x0a, 0x7d, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x5f, 0x4d, 0x00}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/http.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/http.lua deleted file mode 100644 index ac7b2c0ffa7..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/http.lua +++ /dev/null @@ -1,384 +0,0 @@ ------------------------------------------------------------------------------ --- HTTP/1.1 client support for the Lua language. --- LuaSocket toolkit. --- Author: Diego Nehab ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ --- Declare module and import dependencies -------------------------------------------------------------------------------- -local socket = socket or require("socket") -local url = socket.url or require("socket.url") -local ltn12 = ltn12 or require("ltn12") -local mime = mime or require("mime") -local string = require("string") -local headers = socket.headers or require("socket.headers") -local base = _G -local table = require("table") -socket.http = {} -local _M = socket.http -module("socket.http") - ------------------------------------------------------------------------------ --- Program constants ------------------------------------------------------------------------------ --- connection timeout in seconds -_M.TIMEOUT = 60 --- user agent field sent in request -_M.USERAGENT = socket._VERSION - --- supported schemes -local SCHEMES = { ["http"] = true } --- default port for document retrieval -local PORT = 80 - ------------------------------------------------------------------------------ --- Reads MIME headers from a connection, unfolding where needed ------------------------------------------------------------------------------ -local function receiveheaders(sock, headers) - local line, name, value, err - headers = headers or {} - -- get first line - line, err = sock:receive() - if err then return nil, err end - -- headers go until a blank line is found - while line ~= "" do - -- get field-name and value - name, value = socket.skip(2, string.find(line, "^(.-):%s*(.*)")) - if not (name and value) then return nil, "malformed reponse headers" end - name = string.lower(name) - -- get next line (value might be folded) - line, err = sock:receive() - if err then return nil, err end - -- unfold any folded values - while string.find(line, "^%s") do - value = value .. line - line = sock:receive() - if err then return nil, err end - end - -- save pair in table - if headers[name] then headers[name] = headers[name] .. ", " .. value - else headers[name] = value end - end - return headers -end - ------------------------------------------------------------------------------ --- Extra sources and sinks ------------------------------------------------------------------------------ -socket.sourcet["http-chunked"] = function(sock, headers) - return base.setmetatable({ - getfd = function() return sock:getfd() end, - dirty = function() return sock:dirty() end - }, { - __call = function() - -- get chunk size, skip extention - local line, err = sock:receive() - if err then return nil, err end - local size = base.tonumber(string.gsub(line, ";.*", ""), 16) - if not size then return nil, "invalid chunk size" end - -- was it the last chunk? - if size > 0 then - -- if not, get chunk and skip terminating CRLF - local chunk, err, part = sock:receive(size) - if chunk then sock:receive() end - return chunk, err - else - -- if it was, read trailers into headers table - headers, err = receiveheaders(sock, headers) - if not headers then return nil, err end - end - end - }) -end - -socket.sinkt["http-chunked"] = function(sock) - return base.setmetatable({ - getfd = function() return sock:getfd() end, - dirty = function() return sock:dirty() end - }, { - __call = function(self, chunk, err) - if not chunk then return sock:send("0\r\n\r\n") end - local size = string.format("%X\r\n", string.len(chunk)) - return sock:send(size .. chunk .. "\r\n") - end - }) -end - ------------------------------------------------------------------------------ --- Low level HTTP API ------------------------------------------------------------------------------ -local metat = { __index = {} } - -function _M.open(host, port, create) - -- create socket with user connect function, or with default - local c = socket.try((create or socket.tcp)()) - local h = base.setmetatable({ c = c }, metat) - -- create finalized try - h.try = socket.newtry(function() h:close() end) - -- set timeout before connecting - h.try(c:settimeout(_M.TIMEOUT)) - h.try(c:connect(host, port or PORT)) - -- here everything worked - return h -end - -function metat.__index:sendrequestline(method, uri) - local reqline = string.format("%s %s HTTP/1.1\r\n", method or "GET", uri) - return self.try(self.c:send(reqline)) -end - -function metat.__index:sendheaders(tosend) - local canonic = headers.canonic - local h = "\r\n" - for f, v in base.pairs(tosend) do - h = (canonic[f] or f) .. ": " .. v .. "\r\n" .. h - end - self.try(self.c:send(h)) - return 1 -end - -function metat.__index:sendbody(headers, source, step) - source = source or ltn12.source.empty() - step = step or ltn12.pump.step - -- if we don't know the size in advance, send chunked and hope for the best - local mode = "http-chunked" - if headers["content-length"] then mode = "keep-open" end - return self.try(ltn12.pump.all(source, socket.sink(mode, self.c), step)) -end - -function metat.__index:receivestatusline() - local status = self.try(self.c:receive(5)) - -- identify HTTP/0.9 responses, which do not contain a status line - -- this is just a heuristic, but is what the RFC recommends - if status ~= "HTTP/" then return nil, status end - -- otherwise proceed reading a status line - status = self.try(self.c:receive("*l", status)) - local code = socket.skip(2, string.find(status, "HTTP/%d*%.%d* (%d%d%d)")) - return self.try(base.tonumber(code), status) -end - -function metat.__index:receiveheaders() - return self.try(receiveheaders(self.c)) -end - -function metat.__index:receivebody(headers, sink, step) - sink = sink or ltn12.sink.null() - step = step or ltn12.pump.step - local length = base.tonumber(headers["content-length"]) - local t = headers["transfer-encoding"] -- shortcut - local mode = "default" -- connection close - if t and t ~= "identity" then mode = "http-chunked" - elseif base.tonumber(headers["content-length"]) then mode = "by-length" end - return self.try(ltn12.pump.all(socket.source(mode, self.c, length), - sink, step)) -end - -function metat.__index:receive09body(status, sink, step) - local source = ltn12.source.rewind(socket.source("until-closed", self.c)) - source(status) - return self.try(ltn12.pump.all(source, sink, step)) -end - -function metat.__index:close() - return self.c:close() -end - ------------------------------------------------------------------------------ --- High level HTTP API ------------------------------------------------------------------------------ -local function adjusturi(reqt) - local u = reqt - -- if there is a proxy, we need the full url. otherwise, just a part. - if not reqt.proxy and not _M.PROXY then - u = { - path = socket.try(reqt.path, "invalid path 'nil'"), - params = reqt.params, - query = reqt.query, - fragment = reqt.fragment - } - end - return url.build(u) -end - -local function adjustproxy(reqt) - local proxy = reqt.proxy or _M.PROXY - if proxy then - proxy = url.parse(proxy) - return proxy.host, proxy.port or 3128 - else - return reqt.host, reqt.port - end -end - -local function adjustheaders(reqt) - -- default headers - local host = string.gsub(reqt.authority, "^.-@", "") - local lower = { - ["user-agent"] = _M.USERAGENT, - ["host"] = host, - ["connection"] = "close, TE", - ["te"] = "trailers" - } - -- if we have authentication information, pass it along - if reqt.user and reqt.password then - lower["authorization"] = - "Basic " .. (mime.b64(reqt.user .. ":" .. - url.unescape(reqt.password))) - end - -- if we have proxy authentication information, pass it along - local proxy = reqt.proxy or _M.PROXY - if proxy then - proxy = url.parse(proxy) - if proxy.user and proxy.password then - lower["proxy-authorization"] = - "Basic " .. (mime.b64(proxy.user .. ":" .. proxy.password)) - end - end - -- override with user headers - for i,v in base.pairs(reqt.headers or lower) do - lower[string.lower(i)] = v - end - return lower -end - --- default url parts -local default = { - host = "", - port = PORT, - path ="/", - scheme = "http" -} - -local function adjustrequest(reqt) - -- parse url if provided - local nreqt = reqt.url and url.parse(reqt.url, default) or {} - -- explicit components override url - for i,v in base.pairs(reqt) do nreqt[i] = v end - if nreqt.port == "" then nreqt.port = PORT end - if not (nreqt.host and nreqt.host ~= "") then - socket.try(nil, "invalid host '" .. base.tostring(nreqt.host) .. "'") - end - -- compute uri if user hasn't overriden - nreqt.uri = reqt.uri or adjusturi(nreqt) - -- adjust headers in request - nreqt.headers = adjustheaders(nreqt) - -- ajust host and port if there is a proxy - nreqt.host, nreqt.port = adjustproxy(nreqt) - return nreqt -end - -local function shouldredirect(reqt, code, headers) - local location = headers.location - if not location then return false end - location = string.gsub(location, "%s", "") - if location == "" then return false end - local scheme = string.match(location, "^([%w][%w%+%-%.]*)%:") - if scheme and not SCHEMES[scheme] then return false end - return (reqt.redirect ~= false) and - (code == 301 or code == 302 or code == 303 or code == 307) and - (not reqt.method or reqt.method == "GET" or reqt.method == "HEAD") - and (not reqt.nredirects or reqt.nredirects < 5) -end - -local function shouldreceivebody(reqt, code) - if reqt.method == "HEAD" then return nil end - if code == 204 or code == 304 then return nil end - if code >= 100 and code < 200 then return nil end - return 1 -end - --- forward declarations -local trequest, tredirect - ---[[local]] function tredirect(reqt, location) - local result, code, headers, status = trequest { - -- the RFC says the redirect URL has to be absolute, but some - -- servers do not respect that - url = url.absolute(reqt.url, location), - source = reqt.source, - sink = reqt.sink, - headers = reqt.headers, - proxy = reqt.proxy, - nredirects = (reqt.nredirects or 0) + 1, - create = reqt.create - } - -- pass location header back as a hint we redirected - headers = headers or {} - headers.location = headers.location or location - return result, code, headers, status -end - ---[[local]] function trequest(reqt) - -- we loop until we get what we want, or - -- until we are sure there is no way to get it - local nreqt = adjustrequest(reqt) - local h = _M.open(nreqt.host, nreqt.port, nreqt.create) - -- send request line and headers - h:sendrequestline(nreqt.method, nreqt.uri) - h:sendheaders(nreqt.headers) - -- if there is a body, send it - if nreqt.source then - h:sendbody(nreqt.headers, nreqt.source, nreqt.step) - end - local code, status = h:receivestatusline() - -- if it is an HTTP/0.9 server, simply get the body and we are done - if not code then - h:receive09body(status, nreqt.sink, nreqt.step) - return 1, 200 - end - local headers - -- ignore any 100-continue messages - while code == 100 do - headers = h:receiveheaders() - code, status = h:receivestatusline() - end - headers = h:receiveheaders() - -- at this point we should have a honest reply from the server - -- we can't redirect if we already used the source, so we report the error - if shouldredirect(nreqt, code, headers) and not nreqt.source then - h:close() - return tredirect(reqt, headers.location) - end - -- here we are finally done - if shouldreceivebody(nreqt, code) then - h:receivebody(headers, nreqt.sink, nreqt.step) - end - h:close() - return 1, code, headers, status -end - --- turns an url and a body into a generic request -local function genericform(u, b) - local t = {} - local reqt = { - url = u, - sink = ltn12.sink.table(t), - target = t - } - if b then - reqt.source = ltn12.source.string(b) - reqt.headers = { - ["content-length"] = string.len(b), - ["content-type"] = "application/x-www-form-urlencoded" - } - reqt.method = "POST" - end - return reqt -end - -_M.genericform = genericform - -local function srequest(u, b) - local reqt = genericform(u, b) - local _, code, headers, status = trequest(reqt) - return table.concat(reqt.target), code, headers, status -end - -_M.request = socket.protect(function(reqt, body) - if base.type(reqt) == "string" then return srequest(reqt, body) - else return trequest(reqt) end -end) - -socket.http = _M -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/http.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/http.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/http.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/http_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/http_lua.c deleted file mode 100644 index 55a791e1716..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/http_lua.c +++ /dev/null @@ -1,823 +0,0 @@ -/* - * This file is generated with xxd -i and bit of bash script. -*/ -#include "lua.h" -#include "lauxlib.h" - -int luatex_http_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x6f, 0x72, - 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x75, 0x72, 0x6c, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x75, 0x72, 0x6c, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, - 0x31, 0x32, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x28, 0x22, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x22, 0x29, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x20, 0x3d, 0x20, - 0x6d, 0x69, 0x6d, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x28, 0x22, 0x6d, 0x69, 0x6d, 0x65, 0x22, 0x29, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x47, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x29, 0x0a, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x7b, 0x7d, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x0a, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x22, 0x29, 0x0a, 0x5f, 0x4d, - 0x2e, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x20, 0x3d, 0x20, 0x36, - 0x30, 0x0a, 0x5f, 0x4d, 0x2e, 0x55, 0x53, 0x45, 0x52, 0x41, 0x47, 0x45, - 0x4e, 0x54, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x45, 0x53, 0x20, 0x3d, - 0x20, 0x7b, 0x20, 0x5b, 0x22, 0x68, 0x74, 0x74, 0x70, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x74, 0x72, 0x75, 0x65, 0x20, 0x7d, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x50, 0x4f, 0x52, 0x54, 0x20, 0x3d, 0x20, 0x38, 0x30, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x2c, - 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x69, 0x6e, 0x65, - 0x2c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x7b, 0x7d, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x2c, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, - 0x69, 0x6c, 0x65, 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x20, 0x7e, 0x3d, 0x20, - 0x22, 0x22, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, - 0x6b, 0x69, 0x70, 0x28, 0x32, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x6c, 0x69, 0x6e, 0x65, 0x2c, - 0x20, 0x22, 0x5e, 0x28, 0x2e, 0x2d, 0x29, 0x3a, 0x25, 0x73, 0x2a, 0x28, - 0x2e, 0x2a, 0x29, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x28, 0x6e, - 0x61, 0x6d, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x22, 0x6d, 0x61, 0x6c, - 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x20, 0x72, 0x65, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x28, 0x6e, 0x61, 0x6d, 0x65, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x69, - 0x6e, 0x65, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x20, 0x3d, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x6c, 0x69, 0x6e, 0x65, - 0x2c, 0x20, 0x22, 0x5e, 0x25, 0x73, 0x22, 0x29, 0x20, 0x64, 0x6f, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3d, 0x20, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x20, 0x2e, 0x2e, 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x69, - 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x65, - 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x6e, - 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, - 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x6e, 0x61, - 0x6d, 0x65, 0x5d, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x2c, 0x20, 0x22, 0x20, - 0x2e, 0x2e, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, - 0x3d, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x74, 0x5b, 0x22, 0x68, - 0x74, 0x74, 0x70, 0x2d, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, - 0x6b, 0x3a, 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, - 0x64, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, - 0x69, 0x72, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, - 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, - 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, - 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, - 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x3d, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, - 0x75, 0x62, 0x28, 0x6c, 0x69, 0x6e, 0x65, 0x2c, 0x20, 0x22, 0x3b, 0x2e, - 0x2a, 0x22, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x2c, 0x20, 0x31, 0x36, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x69, 0x7a, 0x65, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x73, 0x69, 0x7a, - 0x65, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x69, - 0x7a, 0x65, 0x20, 0x3e, 0x20, 0x30, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x2c, 0x20, 0x70, 0x61, - 0x72, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x73, 0x69, 0x7a, 0x65, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, - 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x68, 0x74, 0x74, 0x70, 0x2d, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, 0x3d, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, - 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, 0x72, - 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, 0x7b, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x63, - 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2c, 0x20, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, 0x22, 0x30, 0x5c, 0x72, - 0x5c, 0x6e, 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, - 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x28, 0x22, 0x25, 0x58, 0x5c, 0x72, 0x5c, 0x6e, 0x22, - 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x65, 0x6e, - 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x73, 0x65, 0x6e, - 0x64, 0x28, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x2e, 0x2e, 0x20, 0x20, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, - 0x6e, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x20, 0x7d, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x6f, 0x70, - 0x65, 0x6e, 0x28, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x2c, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x20, 0x3d, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x28, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x29, 0x28, 0x29, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x68, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x20, - 0x63, 0x20, 0x3d, 0x20, 0x63, 0x20, 0x7d, 0x2c, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x2e, 0x74, 0x72, - 0x79, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x6e, - 0x65, 0x77, 0x74, 0x72, 0x79, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x68, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x68, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x63, 0x3a, 0x73, 0x65, 0x74, 0x74, - 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x28, 0x5f, 0x4d, 0x2e, 0x54, 0x49, - 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x68, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x63, 0x3a, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x28, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x6f, - 0x72, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x50, 0x4f, 0x52, 0x54, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x68, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x6c, 0x69, 0x6e, 0x65, 0x28, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x2c, 0x20, 0x75, 0x72, 0x69, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x71, 0x6c, - 0x69, 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x28, 0x22, 0x25, 0x73, 0x20, - 0x25, 0x73, 0x20, 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x31, 0x5c, - 0x72, 0x5c, 0x6e, 0x22, 0x2c, 0x20, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x20, 0x6f, 0x72, 0x20, 0x22, 0x47, 0x45, 0x54, 0x22, 0x2c, 0x20, 0x75, - 0x72, 0x69, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, - 0x72, 0x65, 0x71, 0x6c, 0x69, 0x6e, 0x65, 0x29, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x28, 0x74, 0x6f, 0x73, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x61, 0x6e, 0x6f, 0x6e, - 0x69, 0x63, 0x20, 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x2e, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x20, 0x3d, 0x20, 0x22, - 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, - 0x72, 0x20, 0x66, 0x2c, 0x20, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x74, 0x6f, 0x73, - 0x65, 0x6e, 0x64, 0x29, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x68, 0x20, 0x3d, 0x20, 0x28, 0x63, 0x61, 0x6e, - 0x6f, 0x6e, 0x69, 0x63, 0x5b, 0x66, 0x5d, 0x20, 0x6f, 0x72, 0x20, 0x66, - 0x29, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x3a, 0x20, 0x22, 0x20, 0x2e, 0x2e, - 0x20, 0x76, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x22, - 0x20, 0x2e, 0x2e, 0x20, 0x68, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x73, 0x65, - 0x6e, 0x64, 0x28, 0x68, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x62, 0x6f, 0x64, 0x79, 0x28, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x2c, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, - 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x65, 0x6d, 0x70, 0x74, 0x79, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, - 0x3d, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, - 0x6e, 0x31, 0x32, 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x73, 0x74, 0x65, - 0x70, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x6d, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, - 0x2d, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x22, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x22, 0x5d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x6d, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x6b, 0x65, 0x65, 0x70, - 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x61, 0x6c, 0x6c, 0x28, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x2c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x2c, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x29, 0x2c, 0x20, 0x73, 0x74, 0x65, - 0x70, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, - 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x6c, 0x69, 0x6e, 0x65, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x63, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x35, 0x29, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x48, 0x54, 0x54, 0x50, - 0x2f, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x22, 0x2a, 0x6c, 0x22, - 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, - 0x6b, 0x69, 0x70, 0x28, 0x32, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2c, 0x20, 0x22, 0x48, 0x54, 0x54, 0x50, 0x2f, 0x25, 0x64, 0x2a, - 0x25, 0x2e, 0x25, 0x64, 0x2a, 0x20, 0x28, 0x25, 0x64, 0x25, 0x64, 0x25, - 0x64, 0x29, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x29, 0x2c, 0x20, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, - 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x72, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x29, 0x29, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x62, 0x6f, 0x64, - 0x79, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x73, - 0x69, 0x6e, 0x6b, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x73, 0x69, - 0x6e, 0x6b, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, - 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x6e, 0x75, 0x6c, 0x6c, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, 0x3d, 0x20, 0x73, - 0x74, 0x65, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, - 0x6f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x28, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x2d, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x5d, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x20, 0x3d, - 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x22, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2d, 0x65, 0x6e, 0x63, 0x6f, 0x64, - 0x69, 0x6e, 0x67, 0x22, 0x5d, 0x20, 0x2d, 0x2d, 0x20, 0x73, 0x68, 0x6f, - 0x72, 0x74, 0x63, 0x75, 0x74, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x22, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x20, 0x2d, 0x2d, 0x20, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, - 0x6c, 0x6f, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x74, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x74, 0x20, 0x7e, 0x3d, 0x20, 0x22, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x68, - 0x74, 0x74, 0x70, 0x2d, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x22, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x22, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x22, 0x5d, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x6d, 0x6f, - 0x64, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x62, 0x79, 0x2d, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x70, - 0x75, 0x6d, 0x70, 0x2e, 0x61, 0x6c, 0x6c, 0x28, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x28, 0x6d, 0x6f, - 0x64, 0x65, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x2c, 0x20, - 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x20, 0x73, - 0x74, 0x65, 0x70, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, - 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x30, 0x39, 0x62, 0x6f, 0x64, 0x79, 0x28, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2c, - 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, - 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x2e, 0x72, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x28, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x28, - 0x22, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x2d, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x64, 0x22, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x28, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x70, 0x75, - 0x6d, 0x70, 0x2e, 0x61, 0x6c, 0x6c, 0x28, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x20, 0x73, 0x74, 0x65, - 0x70, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, - 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x28, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x75, 0x72, 0x69, 0x28, 0x72, 0x65, - 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x75, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x61, 0x6e, 0x64, - 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x5f, 0x4d, 0x2e, 0x50, 0x52, 0x4f, 0x58, - 0x59, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x75, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x2c, - 0x20, 0x22, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x70, 0x61, - 0x74, 0x68, 0x20, 0x27, 0x6e, 0x69, 0x6c, 0x27, 0x22, 0x29, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, - 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, - 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x66, 0x72, 0x61, 0x67, 0x6d, - 0x65, 0x6e, 0x74, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x75, 0x72, 0x6c, - 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x28, 0x75, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x28, 0x72, 0x65, 0x71, 0x74, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x72, 0x6f, - 0x78, 0x79, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x50, 0x52, - 0x4f, 0x58, 0x59, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, - 0x3d, 0x20, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x6f, 0x72, 0x20, - 0x33, 0x31, 0x32, 0x38, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x6f, - 0x73, 0x74, 0x2c, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x6f, 0x72, - 0x74, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x72, 0x65, 0x71, 0x74, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, - 0x6f, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2c, 0x20, 0x22, 0x5e, - 0x2e, 0x2d, 0x40, 0x22, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x6f, 0x77, 0x65, - 0x72, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x5b, 0x22, 0x75, 0x73, 0x65, 0x72, 0x2d, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x55, 0x53, - 0x45, 0x52, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x68, 0x6f, 0x73, 0x74, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x2c, 0x20, 0x54, 0x45, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5b, 0x22, 0x74, 0x65, - 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, - 0x72, 0x73, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x77, 0x65, 0x72, 0x5b, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x22, - 0x42, 0x61, 0x73, 0x69, 0x63, 0x20, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x20, - 0x28, 0x6d, 0x69, 0x6d, 0x65, 0x2e, 0x62, 0x36, 0x34, 0x28, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x20, 0x2e, 0x2e, 0x20, 0x22, - 0x3a, 0x22, 0x20, 0x2e, 0x2e, 0x0a, 0x09, 0x09, 0x75, 0x72, 0x6c, 0x2e, - 0x75, 0x6e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x28, 0x72, 0x65, 0x71, - 0x74, 0x2e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x29, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x78, 0x79, 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x50, 0x52, 0x4f, - 0x58, 0x59, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x3d, - 0x20, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, 0x22, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x2d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x22, 0x42, 0x61, 0x73, 0x69, 0x63, 0x20, 0x22, 0x20, - 0x2e, 0x2e, 0x20, 0x20, 0x28, 0x6d, 0x69, 0x6d, 0x65, 0x2e, 0x62, 0x36, - 0x34, 0x28, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x3a, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x2c, 0x76, 0x20, - 0x69, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x61, 0x69, 0x72, - 0x73, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x29, - 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x28, 0x69, 0x29, 0x5d, 0x20, 0x3d, - 0x20, 0x76, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x6f, - 0x77, 0x65, 0x72, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x3d, 0x20, - 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x3d, - 0x20, 0x22, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x20, 0x3d, 0x20, 0x50, 0x4f, 0x52, 0x54, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x22, 0x2f, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x20, - 0x3d, 0x20, 0x22, 0x68, 0x74, 0x74, 0x70, 0x22, 0x0a, 0x7d, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x28, 0x72, 0x65, 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6e, 0x72, 0x65, 0x71, - 0x74, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x75, 0x72, 0x6c, - 0x20, 0x61, 0x6e, 0x64, 0x20, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x75, 0x72, 0x6c, 0x2c, - 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x29, 0x20, 0x6f, 0x72, - 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x69, 0x2c, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x72, 0x65, 0x71, 0x74, 0x29, 0x20, - 0x64, 0x6f, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x5b, 0x69, 0x5d, 0x20, - 0x3d, 0x20, 0x76, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x6f, 0x72, - 0x74, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x20, - 0x3d, 0x20, 0x50, 0x4f, 0x52, 0x54, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x28, 0x6e, - 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x61, 0x6e, - 0x64, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, - 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x22, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x6e, 0x69, 0x6c, 0x2c, - 0x20, 0x22, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x68, 0x6f, - 0x73, 0x74, 0x20, 0x27, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x74, 0x6f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x6e, - 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x29, 0x20, 0x2e, - 0x2e, 0x20, 0x22, 0x27, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, - 0x2e, 0x75, 0x72, 0x69, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, - 0x75, 0x72, 0x69, 0x20, 0x6f, 0x72, 0x20, 0x61, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x75, 0x72, 0x69, 0x28, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x61, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x6e, 0x72, - 0x65, 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x6e, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x3d, 0x20, 0x61, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x28, 0x6e, 0x72, - 0x65, 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x72, - 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x28, 0x72, 0x65, 0x71, 0x74, - 0x2c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, - 0x73, 0x75, 0x62, 0x28, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2c, 0x20, 0x22, 0x25, 0x73, 0x22, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, - 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x61, - 0x74, 0x63, 0x68, 0x28, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2c, 0x20, 0x22, 0x5e, 0x28, 0x5b, 0x25, 0x77, 0x5d, 0x5b, 0x25, 0x77, - 0x25, 0x2b, 0x25, 0x2d, 0x25, 0x2e, 0x5d, 0x2a, 0x29, 0x25, 0x3a, 0x22, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x53, 0x43, 0x48, 0x45, 0x4d, 0x45, 0x53, 0x5b, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x65, 0x5d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x20, 0x7e, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x29, 0x20, 0x61, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, - 0x3d, 0x20, 0x33, 0x30, 0x31, 0x20, 0x6f, 0x72, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x33, 0x30, 0x32, 0x20, 0x6f, 0x72, 0x20, - 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x33, 0x30, 0x33, 0x20, - 0x6f, 0x72, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x33, - 0x30, 0x37, 0x29, 0x20, 0x61, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x28, 0x6e, 0x6f, 0x74, 0x20, - 0x72, 0x65, 0x71, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, - 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x47, 0x45, 0x54, 0x22, 0x20, - 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x48, 0x45, 0x41, 0x44, 0x22, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x61, 0x6e, 0x64, 0x20, 0x28, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x6e, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x73, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x6e, 0x72, - 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, 0x20, 0x3c, 0x20, 0x35, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x68, 0x6f, - 0x75, 0x6c, 0x64, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x62, 0x6f, - 0x64, 0x79, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x20, 0x3d, 0x3d, - 0x20, 0x22, 0x48, 0x45, 0x41, 0x44, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, - 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x32, 0x30, 0x34, 0x20, 0x6f, - 0x72, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x33, 0x30, - 0x34, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3e, 0x3d, - 0x20, 0x31, 0x30, 0x30, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x20, 0x3c, 0x20, 0x32, 0x30, 0x30, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x74, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2c, - 0x20, 0x74, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x0a, 0x2d, - 0x2d, 0x5b, 0x5b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5d, 0x5d, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x72, 0x65, 0x64, - 0x69, 0x72, 0x65, 0x63, 0x74, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2c, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x75, - 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x75, 0x72, 0x6c, 0x2e, 0x61, 0x62, 0x73, - 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x75, - 0x72, 0x6c, 0x2c, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x29, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, - 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x20, 0x3d, 0x20, - 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x3d, 0x20, 0x72, - 0x65, 0x71, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x72, 0x65, 0x64, 0x69, - 0x72, 0x65, 0x63, 0x74, 0x73, 0x20, 0x3d, 0x20, 0x28, 0x72, 0x65, 0x71, - 0x74, 0x2e, 0x6e, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x73, - 0x20, 0x6f, 0x72, 0x20, 0x30, 0x29, 0x20, 0x2b, 0x20, 0x31, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, - 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, - 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x2c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x2d, 0x2d, 0x5b, 0x5b, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x5d, 0x5d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x74, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x28, 0x72, 0x65, - 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x20, 0x3d, 0x20, 0x61, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x28, - 0x72, 0x65, 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x68, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x6f, - 0x70, 0x65, 0x6e, 0x28, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x6f, - 0x73, 0x74, 0x2c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x70, 0x6f, - 0x72, 0x74, 0x2c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x3a, - 0x73, 0x65, 0x6e, 0x64, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x6c, - 0x69, 0x6e, 0x65, 0x28, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x6d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x2c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, - 0x75, 0x72, 0x69, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x6e, - 0x72, 0x65, 0x71, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, - 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x62, 0x6f, 0x64, 0x79, 0x28, 0x6e, 0x72, - 0x65, 0x71, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, - 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x74, 0x65, - 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x3d, 0x20, - 0x68, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x6c, 0x69, 0x6e, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x68, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x30, 0x39, 0x62, 0x6f, 0x64, 0x79, 0x28, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x69, 0x6e, - 0x6b, 0x2c, 0x20, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x74, 0x65, - 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x2c, 0x20, 0x32, 0x30, 0x30, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, - 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x30, 0x30, - 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x68, 0x3a, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x20, 0x3d, 0x20, 0x68, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x6c, 0x69, 0x6e, 0x65, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, - 0x68, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x73, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x72, 0x65, 0x64, 0x69, - 0x72, 0x65, 0x63, 0x74, 0x28, 0x6e, 0x72, 0x65, 0x71, 0x74, 0x2c, 0x20, - 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x29, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6e, - 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x68, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x74, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x28, - 0x72, 0x65, 0x71, 0x74, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x62, 0x6f, 0x64, 0x79, 0x28, 0x6e, 0x72, 0x65, - 0x71, 0x74, 0x2c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x29, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, - 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x62, 0x6f, 0x64, 0x79, - 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x6e, 0x72, - 0x65, 0x71, 0x74, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x20, 0x6e, 0x72, - 0x65, 0x71, 0x74, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x3a, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x2c, 0x20, 0x63, 0x6f, - 0x64, 0x65, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, - 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x66, 0x6f, - 0x72, 0x6d, 0x28, 0x75, 0x2c, 0x20, 0x62, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x20, 0x3d, 0x20, 0x7b, - 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x72, 0x65, 0x71, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x75, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x69, - 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x73, - 0x69, 0x6e, 0x6b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x74, 0x29, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x62, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x71, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, - 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x2d, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x65, 0x6e, 0x28, 0x62, - 0x29, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x5b, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x2d, 0x74, 0x79, 0x70, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x22, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x78, - 0x2d, 0x77, 0x77, 0x77, 0x2d, 0x66, 0x6f, 0x72, 0x6d, 0x2d, 0x75, 0x72, - 0x6c, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x22, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x71, 0x74, 0x2e, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x20, 0x3d, 0x20, 0x22, 0x50, 0x4f, 0x53, 0x54, 0x22, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x71, 0x74, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x4d, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x69, 0x63, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x3d, 0x20, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x66, 0x6f, 0x72, 0x6d, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x73, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x28, 0x75, 0x2c, - 0x20, 0x62, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x72, 0x65, 0x71, 0x74, 0x20, 0x3d, 0x20, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x66, 0x6f, 0x72, 0x6d, 0x28, 0x75, 0x2c, 0x20, - 0x62, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x5f, 0x2c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x20, 0x3d, 0x20, 0x74, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x28, 0x72, 0x65, 0x71, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, - 0x63, 0x6f, 0x6e, 0x63, 0x61, 0x74, 0x28, 0x72, 0x65, 0x71, 0x74, 0x2e, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x29, 0x2c, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x2c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x20, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, - 0x4d, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x3d, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x65, - 0x63, 0x74, 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x72, 0x65, 0x71, 0x74, 0x2c, 0x20, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x28, 0x72, 0x65, 0x71, 0x74, 0x29, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x28, 0x72, 0x65, 0x71, 0x74, - 0x2c, 0x20, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x74, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x28, 0x72, 0x65, 0x71, - 0x74, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x29, 0x0a, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x20, - 0x3d, 0x20, 0x20, 0x5f, 0x4d, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x5f, 0x4d, 0x0a,0x0}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c b/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c deleted file mode 100644 index f4c84044eb7..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.c +++ /dev/null @@ -1,543 +0,0 @@ -/*=========================================================================*\ -* Internet domain functions -* LuaSocket toolkit -\*=========================================================================*/ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "inet.h" - -/*=========================================================================*\ -* Internal function prototypes. -\*=========================================================================*/ -static int inet_global_toip(lua_State *L); -static int inet_global_getaddrinfo(lua_State *L); -static int inet_global_tohostname(lua_State *L); -static int inet_global_getnameinfo(lua_State *L); -static void inet_pushresolved(lua_State *L, struct hostent *hp); -static int inet_global_gethostname(lua_State *L); - -/* DNS functions */ -static luaL_Reg func[] = { - { "toip", inet_global_toip}, - { "getaddrinfo", inet_global_getaddrinfo}, - { "tohostname", inet_global_tohostname}, - { "getnameinfo", inet_global_getnameinfo}, - { "gethostname", inet_global_gethostname}, - { NULL, NULL} -}; - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int inet_open(lua_State *L) -{ - lua_pushstring(L, "dns"); - lua_newtable(L); - luaL_setfuncs(L, func, 0); - lua_settable(L, -3); - return 0; -} - -/*=========================================================================*\ -* Global Lua functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Returns all information provided by the resolver given a host name -* or ip address -\*-------------------------------------------------------------------------*/ -static int inet_gethost(const char *address, struct hostent **hp) { - struct in_addr addr; - if (inet_aton(address, &addr)) - return socket_gethostbyaddr((char *) &addr, sizeof(addr), hp); - else - return socket_gethostbyname(address, hp); -} - -/*-------------------------------------------------------------------------*\ -* Returns all information provided by the resolver given a host name -* or ip address -\*-------------------------------------------------------------------------*/ -static int inet_global_tohostname(lua_State *L) { - const char *address = luaL_checkstring(L, 1); - struct hostent *hp = NULL; - int err = inet_gethost(address, &hp); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, socket_hoststrerror(err)); - return 2; - } - lua_pushstring(L, hp->h_name); - inet_pushresolved(L, hp); - return 2; -} - -static int inet_global_getnameinfo(lua_State *L) { - char hbuf[NI_MAXHOST]; - char sbuf[NI_MAXSERV]; - int i, ret; - struct addrinfo hints; - struct addrinfo *resolved, *iter; - const char *host = luaL_optstring(L, 1, NULL); - const char *serv = luaL_optstring(L, 2, NULL); - - if (!(host || serv)) - luaL_error(L, "host and serv cannot be both nil"); - - memset(&hints, 0, sizeof(hints)); - hints.ai_socktype = SOCK_STREAM; - hints.ai_family = AF_UNSPEC; - - ret = getaddrinfo(host, serv, &hints, &resolved); - if (ret != 0) { - lua_pushnil(L); - lua_pushstring(L, socket_gaistrerror(ret)); - return 2; - } - - lua_newtable(L); - for (i = 1, iter = resolved; iter; i++, iter = iter->ai_next) { - getnameinfo(iter->ai_addr, (socklen_t) iter->ai_addrlen, - hbuf, host? (socklen_t) sizeof(hbuf): 0, - sbuf, serv? (socklen_t) sizeof(sbuf): 0, 0); - if (host) { - lua_pushnumber(L, i); - lua_pushstring(L, hbuf); - lua_settable(L, -3); - } - } - freeaddrinfo(resolved); - - if (serv) { - lua_pushstring(L, sbuf); - return 2; - } else { - return 1; - } -} - -/*-------------------------------------------------------------------------*\ -* Returns all information provided by the resolver given a host name -* or ip address -\*-------------------------------------------------------------------------*/ -static int inet_global_toip(lua_State *L) -{ - const char *address = luaL_checkstring(L, 1); - struct hostent *hp = NULL; - int err = inet_gethost(address, &hp); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, socket_hoststrerror(err)); - return 2; - } - lua_pushstring(L, inet_ntoa(*((struct in_addr *) hp->h_addr))); - inet_pushresolved(L, hp); - return 2; -} - -int inet_optfamily(lua_State* L, int narg, const char* def) -{ - static const char* optname[] = { "unspec", "inet", "inet6", NULL }; - static int optvalue[] = { AF_UNSPEC, AF_INET, AF_INET6, 0 }; - - return optvalue[luaL_checkoption(L, narg, def, optname)]; -} - -int inet_optsocktype(lua_State* L, int narg, const char* def) -{ - static const char* optname[] = { "stream", "dgram", NULL }; - static int optvalue[] = { SOCK_STREAM, SOCK_DGRAM, 0 }; - - return optvalue[luaL_checkoption(L, narg, def, optname)]; -} - -static int inet_global_getaddrinfo(lua_State *L) -{ - const char *hostname = luaL_checkstring(L, 1); - struct addrinfo *iterator = NULL, *resolved = NULL; - struct addrinfo hints; - int i = 1, ret = 0; - memset(&hints, 0, sizeof(hints)); - hints.ai_socktype = SOCK_STREAM; - hints.ai_family = AF_UNSPEC; - ret = getaddrinfo(hostname, NULL, &hints, &resolved); - if (ret != 0) { - lua_pushnil(L); - lua_pushstring(L, socket_gaistrerror(ret)); - return 2; - } - lua_newtable(L); - for (iterator = resolved; iterator; iterator = iterator->ai_next) { - char hbuf[NI_MAXHOST]; - ret = getnameinfo(iterator->ai_addr, (socklen_t) iterator->ai_addrlen, - hbuf, (socklen_t) sizeof(hbuf), NULL, 0, NI_NUMERICHOST); - if (ret){ - freeaddrinfo(resolved); - lua_pushnil(L); - lua_pushstring(L, socket_gaistrerror(ret)); - return 2; - } - lua_pushnumber(L, i); - lua_newtable(L); - switch (iterator->ai_family) { - case AF_INET: - lua_pushliteral(L, "family"); - lua_pushliteral(L, "inet"); - lua_settable(L, -3); - break; - case AF_INET6: - lua_pushliteral(L, "family"); - lua_pushliteral(L, "inet6"); - lua_settable(L, -3); - break; - case AF_UNSPEC: - lua_pushliteral(L, "family"); - lua_pushliteral(L, "unspec"); - lua_settable(L, -3); - break; - default: - lua_pushliteral(L, "family"); - lua_pushliteral(L, "unknown"); - lua_settable(L, -3); - break; - } - lua_pushliteral(L, "addr"); - lua_pushstring(L, hbuf); - lua_settable(L, -3); - lua_settable(L, -3); - i++; - } - freeaddrinfo(resolved); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Gets the host name -\*-------------------------------------------------------------------------*/ -static int inet_global_gethostname(lua_State *L) -{ - char name[257]; - name[256] = '\0'; - if (gethostname(name, 256) < 0) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(errno)); - return 2; - } else { - lua_pushstring(L, name); - return 1; - } -} - -/*=========================================================================*\ -* Lua methods -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Retrieves socket peer name -\*-------------------------------------------------------------------------*/ -int inet_meth_getpeername(lua_State *L, p_socket ps, int family) -{ - int err; - struct sockaddr_storage peer; - socklen_t peer_len = sizeof(peer); - char name[INET6_ADDRSTRLEN]; - char port[6]; /* 65535 = 5 bytes + 0 to terminate it */ - if (getpeername(*ps, (SA *) &peer, &peer_len) < 0) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(errno)); - return 2; - } - err = getnameinfo((struct sockaddr *) &peer, peer_len, - name, INET6_ADDRSTRLEN, - port, sizeof(port), NI_NUMERICHOST | NI_NUMERICSERV); - if (err) { - lua_pushnil(L); - lua_pushstring(L, gai_strerror(err)); - return 2; - } - lua_pushstring(L, name); - lua_pushinteger(L, (int) strtol(port, (char **) NULL, 10)); - switch (family) { - case AF_INET: lua_pushliteral(L, "inet"); break; - case AF_INET6: lua_pushliteral(L, "inet6"); break; - case AF_UNSPEC: lua_pushliteral(L, "unspec"); break; - default: lua_pushliteral(L, "unknown"); break; - } - return 3; -} - -/*-------------------------------------------------------------------------*\ -* Retrieves socket local name -\*-------------------------------------------------------------------------*/ -int inet_meth_getsockname(lua_State *L, p_socket ps, int family) -{ - int err; - struct sockaddr_storage peer; - socklen_t peer_len = sizeof(peer); - char name[INET6_ADDRSTRLEN]; - char port[6]; /* 65535 = 5 bytes + 0 to terminate it */ - if (getsockname(*ps, (SA *) &peer, &peer_len) < 0) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(errno)); - return 2; - } - err=getnameinfo((struct sockaddr *)&peer, peer_len, - name, INET6_ADDRSTRLEN, port, 6, NI_NUMERICHOST | NI_NUMERICSERV); - if (err) { - lua_pushnil(L); - lua_pushstring(L, gai_strerror(err)); - return 2; - } - lua_pushstring(L, name); - lua_pushstring(L, port); - switch (family) { - case AF_INET: lua_pushliteral(L, "inet"); break; - case AF_INET6: lua_pushliteral(L, "inet6"); break; - case AF_UNSPEC: lua_pushliteral(L, "unspec"); break; - default: lua_pushliteral(L, "unknown"); break; - } - return 3; -} - -/*=========================================================================*\ -* Internal functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Passes all resolver information to Lua as a table -\*-------------------------------------------------------------------------*/ -static void inet_pushresolved(lua_State *L, struct hostent *hp) -{ - char **alias; - struct in_addr **addr; - int i, resolved; - lua_newtable(L); resolved = lua_gettop(L); - lua_pushstring(L, "name"); - lua_pushstring(L, hp->h_name); - lua_settable(L, resolved); - lua_pushstring(L, "ip"); - lua_pushstring(L, "alias"); - i = 1; - alias = hp->h_aliases; - lua_newtable(L); - if (alias) { - while (*alias) { - lua_pushnumber(L, i); - lua_pushstring(L, *alias); - lua_settable(L, -3); - i++; alias++; - } - } - lua_settable(L, resolved); - i = 1; - lua_newtable(L); - addr = (struct in_addr **) hp->h_addr_list; - if (addr) { - while (*addr) { - lua_pushnumber(L, i); - lua_pushstring(L, inet_ntoa(**addr)); - lua_settable(L, -3); - i++; addr++; - } - } - lua_settable(L, resolved); -} - -/*-------------------------------------------------------------------------*\ -* Tries to create a new inet socket -\*-------------------------------------------------------------------------*/ -const char *inet_trycreate(p_socket ps, int family, int type, int protocol) { - const char *err = socket_strerror(socket_create(ps, family, type, protocol)); - if (err == NULL && family == AF_INET6) { - int yes = 1; - setsockopt(*ps, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&yes, sizeof(yes)); - } - return err; -} - -/*-------------------------------------------------------------------------*\ -* "Disconnects" a DGRAM socket -\*-------------------------------------------------------------------------*/ -const char *inet_trydisconnect(p_socket ps, int family, p_timeout tm) -{ - switch (family) { - case AF_INET: { - struct sockaddr_in sin; - memset((char *) &sin, 0, sizeof(sin)); - sin.sin_family = AF_UNSPEC; - sin.sin_addr.s_addr = INADDR_ANY; - return socket_strerror(socket_connect(ps, (SA *) &sin, - sizeof(sin), tm)); - } - case AF_INET6: { - struct sockaddr_in6 sin6; - struct in6_addr addrany = IN6ADDR_ANY_INIT; - memset((char *) &sin6, 0, sizeof(sin6)); - sin6.sin6_family = AF_UNSPEC; - sin6.sin6_addr = addrany; - return socket_strerror(socket_connect(ps, (SA *) &sin6, - sizeof(sin6), tm)); - } - } - return NULL; -} - -/*-------------------------------------------------------------------------*\ -* Tries to connect to remote address (address, port) -\*-------------------------------------------------------------------------*/ -const char *inet_tryconnect(p_socket ps, int *family, const char *address, - const char *serv, p_timeout tm, struct addrinfo *connecthints) -{ - struct addrinfo *iterator = NULL, *resolved = NULL; - const char *err = NULL; - int current_family = *family; - /* try resolving */ - err = socket_gaistrerror(getaddrinfo(address, serv, - connecthints, &resolved)); - if (err != NULL) { - if (resolved) freeaddrinfo(resolved); - return err; - } - for (iterator = resolved; iterator; iterator = iterator->ai_next) { - timeout_markstart(tm); - /* create new socket if necessary. if there was no - * bind, we need to create one for every new family - * that shows up while iterating. if there was a - * bind, all families will be the same and we will - * not enter this branch. */ - if (current_family != iterator->ai_family || *ps == SOCKET_INVALID) { - socket_destroy(ps); - err = inet_trycreate(ps, iterator->ai_family, - iterator->ai_socktype, iterator->ai_protocol); - if (err) continue; - current_family = iterator->ai_family; - /* set non-blocking before connect */ - socket_setnonblocking(ps); - } - /* try connecting to remote address */ - err = socket_strerror(socket_connect(ps, (SA *) iterator->ai_addr, - (socklen_t) iterator->ai_addrlen, tm)); - /* if success or timeout is zero, break out of loop */ - if (err == NULL || timeout_iszero(tm)) { - *family = current_family; - break; - } - } - freeaddrinfo(resolved); - /* here, if err is set, we failed */ - return err; -} - -/*-------------------------------------------------------------------------*\ -* Tries to accept a socket -\*-------------------------------------------------------------------------*/ -const char *inet_tryaccept(p_socket server, int family, p_socket client, - p_timeout tm) { - socklen_t len; - t_sockaddr_storage addr; - switch (family) { - case AF_INET6: len = sizeof(struct sockaddr_in6); break; - case AF_INET: len = sizeof(struct sockaddr_in); break; - default: len = sizeof(addr); break; - } - return socket_strerror(socket_accept(server, client, (SA *) &addr, - &len, tm)); -} - -/*-------------------------------------------------------------------------*\ -* Tries to bind socket to (address, port) -\*-------------------------------------------------------------------------*/ -const char *inet_trybind(p_socket ps, int *family, const char *address, - const char *serv, struct addrinfo *bindhints) { - struct addrinfo *iterator = NULL, *resolved = NULL; - const char *err = NULL; - int current_family = *family; - /* translate luasocket special values to C */ - if (strcmp(address, "*") == 0) address = NULL; - if (!serv) serv = "0"; - /* try resolving */ - err = socket_gaistrerror(getaddrinfo(address, serv, bindhints, &resolved)); - if (err) { - if (resolved) freeaddrinfo(resolved); - return err; - } - /* iterate over resolved addresses until one is good */ - for (iterator = resolved; iterator; iterator = iterator->ai_next) { - if (current_family != iterator->ai_family || *ps == SOCKET_INVALID) { - socket_destroy(ps); - err = inet_trycreate(ps, iterator->ai_family, - iterator->ai_socktype, iterator->ai_protocol); - if (err) continue; - current_family = iterator->ai_family; - } - /* try binding to local address */ - err = socket_strerror(socket_bind(ps, (SA *) iterator->ai_addr, - (socklen_t) iterator->ai_addrlen)); - /* keep trying unless bind succeeded */ - if (err == NULL) { - *family = current_family; - /* set to non-blocking after bind */ - socket_setnonblocking(ps); - break; - } - } - /* cleanup and return error */ - freeaddrinfo(resolved); - /* here, if err is set, we failed */ - return err; -} - -/*-------------------------------------------------------------------------*\ -* Some systems do not provide these so that we provide our own. -\*-------------------------------------------------------------------------*/ -#ifdef LUASOCKET_INET_ATON -int inet_aton(const char *cp, struct in_addr *inp) -{ - unsigned int a = 0, b = 0, c = 0, d = 0; - int n = 0, r; - unsigned long int addr = 0; - r = sscanf(cp, "%u.%u.%u.%u%n", &a, &b, &c, &d, &n); - if (r == 0 || n == 0) return 0; - cp += n; - if (*cp) return 0; - if (a > 255 || b > 255 || c > 255 || d > 255) return 0; - if (inp) { - addr += a; addr <<= 8; - addr += b; addr <<= 8; - addr += c; addr <<= 8; - addr += d; - inp->s_addr = htonl(addr); - } - return 1; -} -#endif - -#ifdef LUASOCKET_INET_PTON -int inet_pton(int af, const char *src, void *dst) -{ - struct addrinfo hints, *res; - int ret = 1; - memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = af; - hints.ai_flags = AI_NUMERICHOST; - if (getaddrinfo(src, NULL, &hints, &res) != 0) return -1; - if (af == AF_INET) { - struct sockaddr_in *in = (struct sockaddr_in *) res->ai_addr; - memcpy(dst, &in->sin_addr, sizeof(in->sin_addr)); - } else if (af == AF_INET6) { - struct sockaddr_in6 *in = (struct sockaddr_in6 *) res->ai_addr; - memcpy(dst, &in->sin6_addr, sizeof(in->sin6_addr)); - } else { - ret = -1; - } - freeaddrinfo(res); - return ret; -} - -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h b/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h deleted file mode 100644 index 928c7eb407e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/inet.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef INET_H -#define INET_H -/*=========================================================================*\ -* Internet domain functions -* LuaSocket toolkit -* -* This module implements the creation and connection of internet domain -* sockets, on top of the socket.h interface, and the interface of with the -* resolver. -* -* The function inet_aton is provided for the platforms where it is not -* available. The module also implements the interface of the internet -* getpeername and getsockname functions as seen by Lua programs. -* -* The Lua functions toip and tohostname are also implemented here. -\*=========================================================================*/ -#include "lua.h" -#include "socket.h" -#include "timeout.h" - -#ifdef _WIN32 -#define LUASOCKET_INET_ATON -#endif - -#if defined( __MINGW32__ ) || defined( __MINGW64__ ) -#define LUASOCKET_INET_PTON -#endif - -int inet_open(lua_State *L); - -const char *inet_trycreate(p_socket ps, int family, int type, int protocol); -const char *inet_tryconnect(p_socket ps, int *family, const char *address, - const char *serv, p_timeout tm, struct addrinfo *connecthints); -const char *inet_trybind(p_socket ps, int *family, const char *address, - const char *serv, struct addrinfo *bindhints); -const char *inet_trydisconnect(p_socket ps, int family, p_timeout tm); -const char *inet_tryaccept(p_socket server, int family, p_socket client, p_timeout tm); - -int inet_meth_getpeername(lua_State *L, p_socket ps, int family); -int inet_meth_getsockname(lua_State *L, p_socket ps, int family); - -int inet_optfamily(lua_State* L, int narg, const char* def); -int inet_optsocktype(lua_State* L, int narg, const char* def); - -#ifdef LUASOCKET_INET_ATON -int inet_aton(const char *cp, struct in_addr *inp); -#endif - -#ifdef LUASOCKET_INET_PTON -const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); -int inet_pton(int af, const char *src, void *dst); -#endif - -#endif /* INET_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/io.c b/Build/source/texk/web2c/luatexdir/luasocket/src/io.c deleted file mode 100644 index a4230ce82b8..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/io.c +++ /dev/null @@ -1,30 +0,0 @@ -/*=========================================================================*\ -* Input/Output abstraction -* LuaSocket toolkit -\*=========================================================================*/ -#include "io.h" - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initializes C structure -\*-------------------------------------------------------------------------*/ -void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx) { - io->send = send; - io->recv = recv; - io->error = error; - io->ctx = ctx; -} - -/*-------------------------------------------------------------------------*\ -* I/O error strings -\*-------------------------------------------------------------------------*/ -const char *io_strerror(int err) { - switch (err) { - case IO_DONE: return NULL; - case IO_CLOSED: return "closed"; - case IO_TIMEOUT: return "timeout"; - default: return "unknown error"; - } -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/io.h b/Build/source/texk/web2c/luatexdir/luasocket/src/io.h deleted file mode 100644 index 8cca08a8602..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/io.h +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef IO_H -#define IO_H -/*=========================================================================*\ -* Input/Output abstraction -* LuaSocket toolkit -* -* This module defines the interface that LuaSocket expects from the -* transport layer for streamed input/output. The idea is that if any -* transport implements this interface, then the buffer.c functions -* automatically work on it. -* -* The module socket.h implements this interface, and thus the module tcp.h -* is very simple. -\*=========================================================================*/ -#include <stdio.h> -#include "lua.h" - -#include "timeout.h" - -/* IO error codes */ -enum { - IO_DONE = 0, /* operation completed successfully */ - IO_TIMEOUT = -1, /* operation timed out */ - IO_CLOSED = -2, /* the connection has been closed */ - IO_UNKNOWN = -3 -}; - -/* interface to error message function */ -typedef const char *(*p_error) ( - void *ctx, /* context needed by send */ - int err /* error code */ -); - -/* interface to send function */ -typedef int (*p_send) ( - void *ctx, /* context needed by send */ - const char *data, /* pointer to buffer with data to send */ - size_t count, /* number of bytes to send from buffer */ - size_t *sent, /* number of bytes sent uppon return */ - p_timeout tm /* timeout control */ -); - -/* interface to recv function */ -typedef int (*p_recv) ( - void *ctx, /* context needed by recv */ - char *data, /* pointer to buffer where data will be writen */ - size_t count, /* number of bytes to receive into buffer */ - size_t *got, /* number of bytes received uppon return */ - p_timeout tm /* timeout control */ -); - -/* IO driver definition */ -typedef struct t_io_ { - void *ctx; /* context needed by send/recv */ - p_send send; /* send function pointer */ - p_recv recv; /* receive function pointer */ - p_error error; /* strerror function */ -} t_io; -typedef t_io *p_io; - -void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx); -const char *io_strerror(int err); - -#endif /* IO_H */ - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua deleted file mode 100644 index 0bdf2334aee..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua +++ /dev/null @@ -1,310 +0,0 @@ ------------------------------------------------------------------------------ --- LTN12 - Filters, sources, sinks and pumps. --- LuaSocket toolkit. --- Author: Diego Nehab ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ --- Declare module ------------------------------------------------------------------------------ -local string = require("string") -local table = require("table") -local unpack = unpack or table.unpack -local base = _G -local _M = {} -if module then -- heuristic for exporting a global package table - ltn12 = _M -end -module("ltn12") -local filter,source,sink,pump = {},{},{},{} - -_M.filter = filter -_M.source = source -_M.sink = sink -_M.pump = pump - -local unpack = unpack or table.unpack -local select = base.select - --- 2048 seems to be better in windows... -_M.BLOCKSIZE = 2048 -_M._VERSION = "LTN12 1.0.3" - ------------------------------------------------------------------------------ --- Filter stuff ------------------------------------------------------------------------------ --- returns a high level filter that cycles a low-level filter -function filter.cycle(low, ctx, extra) - base.assert(low) - return function(chunk) - local ret - ret, ctx = low(ctx, chunk, extra) - return ret - end -end - --- chains a bunch of filters together --- (thanks to Wim Couwenberg) -function filter.chain(...) - local arg = {...} - local n = base.select('#',...) - local top, index = 1, 1 - local retry = "" - return function(chunk) - retry = chunk and retry - while true do - if index == top then - chunk = arg[index](chunk) - if chunk == "" or top == n then return chunk - elseif chunk then index = index + 1 - else - top = top+1 - index = top - end - else - chunk = arg[index](chunk or "") - if chunk == "" then - index = index - 1 - chunk = retry - elseif chunk then - if index == n then return chunk - else index = index + 1 end - else base.error("filter returned inappropriate nil") end - end - end - end -end - ------------------------------------------------------------------------------ --- Source stuff ------------------------------------------------------------------------------ --- create an empty source -local function empty() - return nil -end - -function source.empty() - return empty -end - --- returns a source that just outputs an error -function source.error(err) - return function() - return nil, err - end -end - --- creates a file source -function source.file(handle, io_err) - if handle then - return function() - local chunk = handle:read(_M.BLOCKSIZE) - if not chunk then handle:close() end - return chunk - end - else return source.error(io_err or "unable to open file") end -end - --- turns a fancy source into a simple source -function source.simplify(src) - base.assert(src) - return function() - local chunk, err_or_new = src() - src = err_or_new or src - if not chunk then return nil, err_or_new - else return chunk end - end -end - --- creates string source -function source.string(s) - if s then - local i = 1 - return function() - local chunk = string.sub(s, i, i+_M.BLOCKSIZE-1) - i = i + _M.BLOCKSIZE - if chunk ~= "" then return chunk - else return nil end - end - else return source.empty() end -end - --- creates rewindable source -function source.rewind(src) - base.assert(src) - local t = {} - return function(chunk) - if not chunk then - chunk = table.remove(t) - if not chunk then return src() - else return chunk end - else - table.insert(t, chunk) - end - end -end - --- chains a source with one or several filter(s) -function source.chain(src, f, ...) - if ... then f=filter.chain(f, ...) end - base.assert(src and f) - local last_in, last_out = "", "" - local state = "feeding" - local err - return function() - if not last_out then - base.error('source is empty!', 2) - end - while true do - if state == "feeding" then - last_in, err = src() - if err then return nil, err end - last_out = f(last_in) - if not last_out then - if last_in then - base.error('filter returned inappropriate nil') - else - return nil - end - elseif last_out ~= "" then - state = "eating" - if last_in then last_in = "" end - return last_out - end - else - last_out = f(last_in) - if last_out == "" then - if last_in == "" then - state = "feeding" - else - base.error('filter returned ""') - end - elseif not last_out then - if last_in then - base.error('filter returned inappropriate nil') - else - return nil - end - else - return last_out - end - end - end - end -end - --- creates a source that produces contents of several sources, one after the --- other, as if they were concatenated --- (thanks to Wim Couwenberg) -function source.cat(...) - local arg = {...} - local src = table.remove(arg, 1) - return function() - while src do - local chunk, err = src() - if chunk then return chunk end - if err then return nil, err end - src = table.remove(arg, 1) - end - end -end - ------------------------------------------------------------------------------ --- Sink stuff ------------------------------------------------------------------------------ --- creates a sink that stores into a table -function sink.table(t) - t = t or {} - local f = function(chunk, err) - if chunk then table.insert(t, chunk) end - return 1 - end - return f, t -end - --- turns a fancy sink into a simple sink -function sink.simplify(snk) - base.assert(snk) - return function(chunk, err) - local ret, err_or_new = snk(chunk, err) - if not ret then return nil, err_or_new end - snk = err_or_new or snk - return 1 - end -end - --- creates a file sink -function sink.file(handle, io_err) - if handle then - return function(chunk, err) - if not chunk then - handle:close() - return 1 - else return handle:write(chunk) end - end - else return sink.error(io_err or "unable to open file") end -end - --- creates a sink that discards data -local function null() - return 1 -end - -function sink.null() - return null -end - --- creates a sink that just returns an error -function sink.error(err) - return function() - return nil, err - end -end - --- chains a sink with one or several filter(s) -function sink.chain(f, snk, ...) - if ... then - local args = { f, snk, ... } - snk = table.remove(args, #args) - f = filter.chain(unpack(args)) - end - base.assert(f and snk) - return function(chunk, err) - if chunk ~= "" then - local filtered = f(chunk) - local done = chunk and "" - while true do - local ret, snkerr = snk(filtered, err) - if not ret then return nil, snkerr end - if filtered == done then return 1 end - filtered = f(done) - end - else return 1 end - end -end - ------------------------------------------------------------------------------ --- Pump stuff ------------------------------------------------------------------------------ --- pumps one chunk from the source to the sink -function pump.step(src, snk) - local chunk, src_err = src() - local ret, snk_err = snk(chunk, src_err) - if chunk and ret then return 1 - else return nil, src_err or snk_err end -end - --- pumps all data from a source to a sink, using a step function -function pump.all(src, snk, step) - base.assert(src and snk) - step = step or pump.step - while true do - local ret, err = step(src, snk) - if not ret then - if err then return nil, err - else return 1 end - end - end -end - -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12_lua.c deleted file mode 100644 index 226fc575464..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/ltn12_lua.c +++ /dev/null @@ -1,567 +0,0 @@ -/* - * This file is generated with xxd -i and bit of bash script. -*/ -#include "lua.h" -#include "lauxlib.h" - -int luatex_ltn12_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x3d, 0x20, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x75, 0x6e, - 0x70, 0x61, 0x63, 0x6b, 0x20, 0x3d, 0x20, 0x75, 0x6e, 0x70, 0x61, 0x63, - 0x6b, 0x20, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x75, - 0x6e, 0x70, 0x61, 0x63, 0x6b, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, - 0x69, 0x66, 0x20, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x2d, 0x2d, 0x20, 0x68, 0x65, 0x75, 0x72, 0x69, 0x73, - 0x74, 0x69, 0x63, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x67, 0x6c, 0x6f, 0x62, - 0x61, 0x6c, 0x20, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x20, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x74, 0x6e, - 0x31, 0x32, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x28, 0x22, 0x6c, 0x74, 0x6e, 0x31, - 0x32, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, - 0x73, 0x69, 0x6e, 0x6b, 0x2c, 0x70, 0x75, 0x6d, 0x70, 0x20, 0x3d, 0x20, - 0x7b, 0x7d, 0x2c, 0x7b, 0x7d, 0x2c, 0x7b, 0x7d, 0x2c, 0x7b, 0x7d, 0x0a, - 0x5f, 0x4d, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x20, 0x3d, 0x20, - 0x73, 0x69, 0x6e, 0x6b, 0x0a, 0x5f, 0x4d, 0x2e, 0x70, 0x75, 0x6d, 0x70, - 0x20, 0x3d, 0x20, 0x70, 0x75, 0x6d, 0x70, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x75, 0x6e, 0x70, 0x61, 0x63, 0x6b, 0x20, 0x3d, 0x20, 0x75, - 0x6e, 0x70, 0x61, 0x63, 0x6b, 0x20, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2e, 0x75, 0x6e, 0x70, 0x61, 0x63, 0x6b, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x20, 0x3d, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x0a, 0x5f, 0x4d, 0x2e, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, - 0x45, 0x20, 0x3d, 0x20, 0x32, 0x30, 0x34, 0x38, 0x0a, 0x5f, 0x4d, 0x2e, - 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x20, 0x3d, 0x20, 0x22, - 0x4c, 0x54, 0x4e, 0x31, 0x32, 0x20, 0x31, 0x2e, 0x30, 0x2e, 0x33, 0x22, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x28, 0x6c, - 0x6f, 0x77, 0x2c, 0x20, 0x63, 0x74, 0x78, 0x2c, 0x20, 0x65, 0x78, 0x74, - 0x72, 0x61, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x28, 0x6c, 0x6f, 0x77, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x74, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x2c, 0x20, 0x63, - 0x74, 0x78, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x77, 0x28, 0x63, 0x74, 0x78, - 0x2c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x78, 0x74, - 0x72, 0x61, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x28, 0x2e, 0x2e, 0x2e, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x61, 0x72, 0x67, 0x20, 0x3d, 0x20, 0x7b, 0x2e, 0x2e, 0x2e, 0x7d, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6e, 0x20, - 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x28, 0x27, 0x23, 0x27, 0x2c, 0x2e, 0x2e, 0x2e, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x6f, 0x70, - 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x31, 0x2c, - 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x72, 0x65, 0x74, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x22, 0x22, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x74, 0x72, 0x79, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, - 0x20, 0x74, 0x72, 0x75, 0x65, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x3d, 0x20, 0x74, 0x6f, 0x70, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x61, 0x72, 0x67, 0x5b, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x5d, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x6f, 0x72, 0x20, 0x74, 0x6f, - 0x70, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x20, 0x2b, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x74, 0x6f, - 0x70, 0x20, 0x3d, 0x20, 0x74, 0x6f, 0x70, 0x2b, 0x31, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, - 0x3d, 0x20, 0x74, 0x6f, 0x70, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x61, 0x72, 0x67, 0x5b, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x5d, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, - 0x6f, 0x72, 0x20, 0x22, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x3d, 0x3d, 0x20, 0x22, - 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x20, 0x2d, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x3d, - 0x20, 0x72, 0x65, 0x74, 0x72, 0x79, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x3d, - 0x20, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, - 0x2b, 0x20, 0x31, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x28, 0x22, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x20, 0x6e, - 0x69, 0x6c, 0x22, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, - 0x69, 0x6c, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x65, - 0x6d, 0x70, 0x74, 0x79, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x28, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x66, 0x69, 0x6c, - 0x65, 0x28, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x2c, 0x20, 0x69, 0x6f, - 0x5f, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x3a, - 0x72, 0x65, 0x61, 0x64, 0x28, 0x5f, 0x4d, 0x2e, 0x42, 0x4c, 0x4f, 0x43, - 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, - 0x74, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x3a, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x28, 0x69, 0x6f, 0x5f, 0x65, 0x72, 0x72, 0x20, 0x6f, 0x72, 0x20, - 0x22, 0x75, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x6f, - 0x70, 0x65, 0x6e, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x73, - 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x79, 0x28, 0x73, 0x72, 0x63, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x73, - 0x73, 0x65, 0x72, 0x74, 0x28, 0x73, 0x72, 0x63, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x5f, 0x6f, 0x72, 0x5f, - 0x6e, 0x65, 0x77, 0x20, 0x3d, 0x20, 0x73, 0x72, 0x63, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x72, 0x63, 0x20, - 0x3d, 0x20, 0x65, 0x72, 0x72, 0x5f, 0x6f, 0x72, 0x5f, 0x6e, 0x65, 0x77, - 0x20, 0x6f, 0x72, 0x20, 0x73, 0x72, 0x63, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x5f, 0x6f, 0x72, 0x5f, 0x6e, 0x65, 0x77, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x28, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x69, 0x20, 0x3d, - 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x73, 0x75, 0x62, 0x28, 0x73, 0x2c, 0x20, 0x69, 0x2c, 0x20, - 0x69, 0x2b, 0x5f, 0x4d, 0x2e, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, - 0x5a, 0x45, 0x2d, 0x31, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x69, 0x20, - 0x2b, 0x20, 0x5f, 0x4d, 0x2e, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, - 0x5a, 0x45, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, - 0x7e, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x65, 0x6d, 0x70, 0x74, 0x79, - 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x2e, 0x72, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x28, 0x73, 0x72, - 0x63, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x28, 0x73, 0x72, 0x63, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x20, - 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x20, 0x3d, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, - 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x28, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x72, 0x63, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x69, 0x6e, - 0x73, 0x65, 0x72, 0x74, 0x28, 0x74, 0x2c, 0x20, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x28, 0x73, 0x72, 0x63, 0x2c, 0x20, 0x66, 0x2c, 0x20, 0x2e, 0x2e, 0x2e, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x2e, 0x2e, 0x2e, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x66, 0x3d, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x28, 0x66, 0x2c, 0x20, - 0x2e, 0x2e, 0x2e, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, - 0x28, 0x73, 0x72, 0x63, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x66, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x2c, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x22, 0x22, 0x2c, 0x20, 0x22, 0x22, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x66, 0x65, 0x65, 0x64, - 0x69, 0x6e, 0x67, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x65, 0x72, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x27, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6d, 0x70, 0x74, - 0x79, 0x21, 0x27, 0x2c, 0x20, 0x32, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x74, 0x72, - 0x75, 0x65, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x66, 0x65, 0x65, 0x64, 0x69, - 0x6e, 0x67, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x3d, 0x20, 0x73, 0x72, 0x63, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, - 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x20, 0x3d, - 0x20, 0x66, 0x28, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6c, - 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, - 0x27, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x61, 0x70, 0x70, 0x72, 0x6f, - 0x70, 0x72, 0x69, 0x61, 0x74, 0x65, 0x20, 0x6e, 0x69, 0x6c, 0x27, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, - 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x20, 0x7e, 0x3d, 0x20, - 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x20, 0x3d, 0x20, - 0x22, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x69, 0x6e, 0x20, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x75, - 0x74, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x20, 0x66, 0x28, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x69, 0x6e, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x20, 0x3d, 0x3d, 0x20, - 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x69, 0x6e, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x74, 0x61, 0x74, 0x65, 0x20, 0x3d, 0x20, 0x22, 0x66, - 0x65, 0x65, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x27, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, - 0x20, 0x22, 0x22, 0x27, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x27, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x65, 0x64, 0x20, 0x69, 0x6e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x70, 0x72, - 0x69, 0x61, 0x74, 0x65, 0x20, 0x6e, 0x69, 0x6c, 0x27, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, - 0x61, 0x73, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x63, 0x61, 0x74, 0x28, 0x2e, 0x2e, 0x2e, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x72, 0x67, 0x20, 0x3d, - 0x20, 0x7b, 0x2e, 0x2e, 0x2e, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x72, 0x63, 0x20, 0x3d, 0x20, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x28, - 0x61, 0x72, 0x67, 0x2c, 0x20, 0x31, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, 0x65, 0x20, 0x73, 0x72, 0x63, 0x20, - 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x72, - 0x63, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, - 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x72, 0x63, 0x20, 0x3d, - 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x28, 0x61, 0x72, 0x67, 0x2c, 0x20, 0x31, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x74, 0x20, 0x3d, 0x20, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x7b, 0x7d, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, - 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x2e, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x28, 0x74, - 0x2c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x66, 0x2c, 0x20, 0x74, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2e, - 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x79, 0x28, 0x73, 0x6e, 0x6b, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, - 0x73, 0x73, 0x65, 0x72, 0x74, 0x28, 0x73, 0x6e, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x74, - 0x2c, 0x20, 0x65, 0x72, 0x72, 0x5f, 0x6f, 0x72, 0x5f, 0x6e, 0x65, 0x77, - 0x20, 0x3d, 0x20, 0x73, 0x6e, 0x6b, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, - 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x5f, 0x6f, - 0x72, 0x5f, 0x6e, 0x65, 0x77, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6e, 0x6b, 0x20, 0x3d, 0x20, - 0x65, 0x72, 0x72, 0x5f, 0x6f, 0x72, 0x5f, 0x6e, 0x65, 0x77, 0x20, 0x6f, - 0x72, 0x20, 0x73, 0x6e, 0x6b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x69, 0x6e, 0x6b, - 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x28, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x2c, 0x20, 0x69, 0x6f, 0x5f, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, - 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x3a, 0x63, 0x6c, - 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x68, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x28, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x69, 0x6e, 0x6b, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x69, 0x6f, - 0x5f, 0x65, 0x72, 0x72, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x75, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x6f, 0x70, 0x65, 0x6e, 0x20, - 0x66, 0x69, 0x6c, 0x65, 0x22, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x28, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2e, 0x6e, 0x75, 0x6c, 0x6c, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x75, 0x6c, 0x6c, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x69, 0x6e, 0x6b, - 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x65, 0x72, 0x72, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2e, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x28, 0x66, 0x2c, 0x20, 0x73, 0x6e, 0x6b, - 0x2c, 0x20, 0x2e, 0x2e, 0x2e, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x61, 0x72, 0x67, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x66, 0x2c, - 0x20, 0x73, 0x6e, 0x6b, 0x2c, 0x20, 0x2e, 0x2e, 0x2e, 0x20, 0x7d, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6e, 0x6b, 0x20, - 0x3d, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x72, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x28, 0x61, 0x72, 0x67, 0x73, 0x2c, 0x20, 0x23, 0x61, 0x72, - 0x67, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x66, 0x20, 0x3d, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x28, 0x75, 0x6e, 0x70, 0x61, 0x63, 0x6b, 0x28, - 0x61, 0x72, 0x67, 0x73, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, 0x28, 0x66, 0x20, 0x61, 0x6e, 0x64, - 0x20, 0x73, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x65, 0x64, 0x20, 0x3d, 0x20, 0x66, - 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x64, 0x6f, 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, - 0x69, 0x6c, 0x65, 0x20, 0x74, 0x72, 0x75, 0x65, 0x20, 0x64, 0x6f, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, - 0x74, 0x2c, 0x20, 0x73, 0x6e, 0x6b, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, - 0x73, 0x6e, 0x6b, 0x28, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x65, 0x64, - 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x74, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, - 0x6c, 0x2c, 0x20, 0x73, 0x6e, 0x6b, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x65, 0x64, 0x20, 0x3d, 0x3d, 0x20, 0x64, 0x6f, 0x6e, - 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x31, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x65, 0x64, 0x20, 0x3d, 0x20, 0x66, - 0x28, 0x64, 0x6f, 0x6e, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x70, 0x75, - 0x6d, 0x70, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x28, 0x73, 0x72, 0x63, 0x2c, - 0x20, 0x73, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x73, - 0x72, 0x63, 0x5f, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x72, 0x63, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x72, 0x65, 0x74, 0x2c, 0x20, 0x73, 0x6e, 0x6b, 0x5f, 0x65, 0x72, - 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6e, 0x6b, 0x28, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x2c, 0x20, 0x73, 0x72, 0x63, 0x5f, 0x65, 0x72, 0x72, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x74, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x73, 0x72, 0x63, 0x5f, - 0x65, 0x72, 0x72, 0x20, 0x6f, 0x72, 0x20, 0x73, 0x6e, 0x6b, 0x5f, 0x65, - 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x70, 0x75, 0x6d, 0x70, - 0x2e, 0x61, 0x6c, 0x6c, 0x28, 0x73, 0x72, 0x63, 0x2c, 0x20, 0x73, 0x6e, - 0x6b, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x72, 0x74, - 0x28, 0x73, 0x72, 0x63, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x6e, 0x6b, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, 0x3d, - 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x70, 0x75, 0x6d, - 0x70, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, - 0x68, 0x69, 0x6c, 0x65, 0x20, 0x74, 0x72, 0x75, 0x65, 0x20, 0x64, 0x6f, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x72, 0x65, 0x74, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, - 0x3d, 0x20, 0x73, 0x74, 0x65, 0x70, 0x28, 0x73, 0x72, 0x63, 0x2c, 0x20, - 0x73, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x74, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d, - 0x0a,0x0}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c b/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c deleted file mode 100644 index 838871c1d66..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/lua_preload.c +++ /dev/null @@ -1,49 +0,0 @@ - -#include <stdlib.h> -#include "lua.h" -#include "lauxlib.h" - -int luatex_mbox_lua_open(lua_State*); -int luatex_headers_lua_open(lua_State*); -int luatex_socket_lua_open(lua_State*); -int luatex_ltn12_lua_open(lua_State*); -int luatex_mime_lua_open(lua_State*); -int luatex_url_lua_open(lua_State*); -int luatex_tp_lua_open(lua_State*); -int luatex_smtp_lua_open(lua_State*); -int luatex_http_lua_open(lua_State*); -int luatex_ftp_lua_open(lua_State*); - - -extern void luatex_socketlua_open (lua_State *) ; -#include "ftp_lua.c" -#include "headers_lua.c" -#include "http_lua.c" -#include "ltn12_lua.c" -#include "mbox_lua.c" -#include "mime_lua.c" -#include "smtp_lua.c" -#include "socket_lua.c" -#include "tp_lua.c" -#include "url_lua.c" - - -#define TEST(A) do { if (A) { \ - fprintf(stderr,"FATAL error while preloading lua module " #A); \ - exit(1); \ - } \ -} while (0) - -void -luatex_socketlua_open (lua_State *L) { - TEST(luatex_mbox_lua_open(L)); - TEST(luatex_headers_lua_open(L)); - TEST(luatex_socket_lua_open(L)); - TEST(luatex_ltn12_lua_open(L)); - TEST(luatex_mime_lua_open(L)); - TEST(luatex_url_lua_open(L)); - TEST(luatex_tp_lua_open(L)); - TEST(luatex_smtp_lua_open(L)); - TEST(luatex_http_lua_open(L)); - TEST(luatex_ftp_lua_open(L)); -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.c b/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.c deleted file mode 100644 index e0f3d7dc629..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.c +++ /dev/null @@ -1,115 +0,0 @@ -/*=========================================================================*\ -* LuaSocket toolkit -* Networking support for the Lua language -* Diego Nehab -* 26/11/1999 -* -* This library is part of an effort to progressively increase the network -* connectivity of the Lua language. The Lua interface to networking -* functions follows the Sockets API closely, trying to simplify all tasks -* involved in setting up both client and server connections. The provided -* IO routines, however, follow the Lua style, being very similar to the -* standard Lua read and write functions. -\*=========================================================================*/ - -/*=========================================================================*\ -* Standard include files -\*=========================================================================*/ -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" /* Luajittex is managed in compat.h */ - -/*=========================================================================*\ -* LuaSocket includes -\*=========================================================================*/ -#include "luasocket.h" -#include "auxiliar.h" -#include "except.h" -#include "timeout.h" -#include "buffer.h" -#include "inet.h" -#include "tcp.h" -#include "udp.h" -#include "select.h" - -/*-------------------------------------------------------------------------*\ -* Internal function prototypes -\*-------------------------------------------------------------------------*/ -static int global_skip(lua_State *L); -static int global_unload(lua_State *L); -static int base_open(lua_State *L); - -/*-------------------------------------------------------------------------*\ -* Modules and functions -\*-------------------------------------------------------------------------*/ -static const luaL_Reg mod[] = { - {"auxiliar", auxiliar_open}, - {"except", except_open}, - {"timeout", timeout_open}, - {"buffer", buffer_open}, - {"inet", inet_open}, - {"tcp", tcp_open}, - {"udp", udp_open}, - {"select", select_open}, - {NULL, NULL} -}; - -static luaL_Reg func[] = { - {"skip", global_skip}, - {"__unload", global_unload}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Skip a few arguments -\*-------------------------------------------------------------------------*/ -static int global_skip(lua_State *L) { - int amount = luaL_checkinteger(L, 1); - int ret = lua_gettop(L) - amount - 1; - return ret >= 0 ? ret : 0; -} - -/*-------------------------------------------------------------------------*\ -* Unloads the library -\*-------------------------------------------------------------------------*/ -static int global_unload(lua_State *L) { - (void) L; - socket_close(); - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Setup basic stuff. -\*-------------------------------------------------------------------------*/ -static int base_open(lua_State *L) { - if (socket_open()) { - /* export functions (and leave namespace table on top of stack) */ - /*lua_newtable(L);*/ - /*luaL_setfuncs(L, func, 0);*/ - luaL_openlib(L, "socket", func, 0); -#ifdef LUASOCKET_DEBUG - lua_pushstring(L, "_DEBUG"); - lua_pushboolean(L, 1); - lua_rawset(L, -3); -#endif - /* make version string available to scripts */ - lua_pushstring(L, "_VERSION"); - lua_pushstring(L, LUASOCKET_VERSION); - lua_rawset(L, -3); - return 1; - } else { - lua_pushstring(L, "unable to initialize library"); - lua_error(L); - return 0; - } -} - -/*-------------------------------------------------------------------------*\ -* Initializes all library modules. -\*-------------------------------------------------------------------------*/ -LUASOCKET_API int luaopen_socket_core(lua_State *L) { - int i; - base_open(L); - for (i = 0; mod[i].name; i++) mod[i].func(L); - return 1; -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.c.orig b/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.c.orig deleted file mode 100644 index 7d9c80239c8..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.c.orig +++ /dev/null @@ -1,114 +0,0 @@ -/*=========================================================================*\ -* LuaSocket toolkit -* Networking support for the Lua language -* Diego Nehab -* 26/11/1999 -* -* This library is part of an effort to progressively increase the network -* connectivity of the Lua language. The Lua interface to networking -* functions follows the Sockets API closely, trying to simplify all tasks -* involved in setting up both client and server connections. The provided -* IO routines, however, follow the Lua style, being very similar to the -* standard Lua read and write functions. -\*=========================================================================*/ - -/*=========================================================================*\ -* Standard include files -\*=========================================================================*/ -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -/*=========================================================================*\ -* LuaSocket includes -\*=========================================================================*/ -#include "luasocket.h" -#include "auxiliar.h" -#include "except.h" -#include "timeout.h" -#include "buffer.h" -#include "inet.h" -#include "tcp.h" -#include "udp.h" -#include "select.h" - -/*-------------------------------------------------------------------------*\ -* Internal function prototypes -\*-------------------------------------------------------------------------*/ -static int global_skip(lua_State *L); -static int global_unload(lua_State *L); -static int base_open(lua_State *L); - -/*-------------------------------------------------------------------------*\ -* Modules and functions -\*-------------------------------------------------------------------------*/ -static const luaL_Reg mod[] = { - {"auxiliar", auxiliar_open}, - {"except", except_open}, - {"timeout", timeout_open}, - {"buffer", buffer_open}, - {"inet", inet_open}, - {"tcp", tcp_open}, - {"udp", udp_open}, - {"select", select_open}, - {NULL, NULL} -}; - -static luaL_Reg func[] = { - {"skip", global_skip}, - {"__unload", global_unload}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Skip a few arguments -\*-------------------------------------------------------------------------*/ -static int global_skip(lua_State *L) { - int amount = luaL_checkinteger(L, 1); - int ret = lua_gettop(L) - amount - 1; - return ret >= 0 ? ret : 0; -} - -/*-------------------------------------------------------------------------*\ -* Unloads the library -\*-------------------------------------------------------------------------*/ -static int global_unload(lua_State *L) { - (void) L; - socket_close(); - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Setup basic stuff. -\*-------------------------------------------------------------------------*/ -static int base_open(lua_State *L) { - if (socket_open()) { - /* export functions (and leave namespace table on top of stack) */ - lua_newtable(L); - luaL_setfuncs(L, func, 0); -#ifdef LUASOCKET_DEBUG - lua_pushstring(L, "_DEBUG"); - lua_pushboolean(L, 1); - lua_rawset(L, -3); -#endif - /* make version string available to scripts */ - lua_pushstring(L, "_VERSION"); - lua_pushstring(L, LUASOCKET_VERSION); - lua_rawset(L, -3); - return 1; - } else { - lua_pushstring(L, "unable to initialize library"); - lua_error(L); - return 0; - } -} - -/*-------------------------------------------------------------------------*\ -* Initializes all library modules. -\*-------------------------------------------------------------------------*/ -LUASOCKET_API int luaopen_socket_core(lua_State *L) { - int i; - base_open(L); - for (i = 0; mod[i].name; i++) mod[i].func(L); - return 1; -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.h b/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.h deleted file mode 100644 index f75d21f2262..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/luasocket.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef LUASOCKET_H -#define LUASOCKET_H -/*=========================================================================*\ -* LuaSocket toolkit -* Networking support for the Lua language -* Diego Nehab -* 9/11/1999 -\*=========================================================================*/ -#include "lua.h" - -/*-------------------------------------------------------------------------*\ -* Current socket library version -\*-------------------------------------------------------------------------*/ -#define LUASOCKET_VERSION "LuaSocket 3.0-rc1" -#define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" - -/*-------------------------------------------------------------------------*\ -* This macro prefixes all exported API functions -\*-------------------------------------------------------------------------*/ -#ifndef LUASOCKET_API -#define LUASOCKET_API extern -#endif - -/*-------------------------------------------------------------------------*\ -* Initializes the library. -\*-------------------------------------------------------------------------*/ -LUASOCKET_API int luaopen_socket_core(lua_State *L); - -#endif /* LUASOCKET_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/makefile b/Build/source/texk/web2c/luatexdir/luasocket/src/makefile deleted file mode 100644 index 494baab005c..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/makefile +++ /dev/null @@ -1,438 +0,0 @@ -# luasocket src/makefile -# -# Definitions in this section can be overriden on the command line or in the -# environment. -# -# These are equivalent: -# -# export PLAT=linux DEBUG=DEBUG LUAV=5.2 prefix=/sw -# make -# -# and -# -# make PLAT=linux DEBUG=DEBUG LUAV=5.2 prefix=/sw - -# PLAT: linux macosx win32 mingw -# platform to build for -PLAT?=linux - -# LUAV: 5.1 5.2 -# lua version to build against -LUAV?=5.1 - -# MYCFLAGS: to be set by user if needed -MYCFLAGS?= - -# MYLDFLAGS: to be set by user if needed -MYLDFLAGS?= - -# DEBUG: NODEBUG DEBUG -# debug mode causes luasocket to collect and returns timing information useful -# for testing and debugging luasocket itself -DEBUG?=NODEBUG - -# where lua headers are found for macosx builds -# LUAINC_macosx: -# /opt/local/include -LUAINC_macosx_base?=/opt/local/include -LUAINC_macosx?=$(LUAINC_macosx_base)/lua/$(LUAV) -# FIXME default should this default to fink or to macports? -# What happens when more than one Lua version is installed? -LUAPREFIX_macosx?=/opt/local -CDIR_macosx?=lib/lua/$(LUAV) -LDIR_macosx?=share/lua/$(LUAV) - -# LUAINC_linux: -# /usr/include/lua$(LUAV) -# /usr/local/include -# /usr/local/include/lua$(LUAV) -# where lua headers are found for linux builds -LUAINC_linux_base?=/usr/include -LUAINC_linux?=$(LUAINC_linux_base)/lua/$(LUAV) -LUAPREFIX_linux?=/usr/local -CDIR_linux?=lib/lua/$(LUAV) -LDIR_linux?=share/lua/$(LUAV) - -# LUAINC_freebsd: -# /usr/local/include/lua$(LUAV) -# where lua headers are found for freebsd builds -LUAINC_freebsd_base?=/usr/local/include/ -LUAINC_freebsd?=$(LUAINC_freebsd_base)/lua$(LUAV) -LUAPREFIX_freebsd?=/usr/local/ -CDIR_freebsd?=lib/lua/$(LUAV) -LDIR_freebsd?=share/lua/$(LUAV) - -# where lua headers are found for mingw builds -# LUAINC_mingw: -# /opt/local/include -LUAINC_mingw_base?=/usr/include -LUAINC_mingw?=$(LUAINC_mingw_base)/lua/$(LUAV) -LUALIB_mingw_base?=/usr/bin -LUALIB_mingw?=$(LUALIB_mingw_base)/lua/$(LUAV)/lua$(subst .,,$(LUAV)).dll -LUAPREFIX_mingw?=/usr -CDIR_mingw?=lua/$(LUAV) -LDIR_mingw?=lua/$(LUAV)/lua - - -# LUAINC_win32: -# LUALIB_win32: -# where lua headers and libraries are found for win32 builds -LUAPREFIX_win32?= -LUAINC_win32?=$(LUAPREFIX_win32)/include/lua/$(LUAV) -PLATFORM_win32?=Release -CDIR_win32?=bin/lua/$(LUAV)/$(PLATFORM_win32) -LDIR_win32?=bin/lua/$(LUAV)/$(PLATFORM_win32)/lua -LUALIB_win32?=$(LUAPREFIX_win32)/lib/lua/$(LUAV)/$(PLATFORM_win32) -LUALIBNAME_win32?=lua$(subst .,,$(LUAV)).lib - - -# LUAINC_solaris: -LUAINC_solaris_base?=/usr/include -LUAINC_solaris?=$(LUAINC_solaris_base)/lua/$(LUAV) -LUAPREFIX_solaris?=/usr/local -CDIR_solaris?=lib/lua/$(LUAV) -LDIR_solaris?=share/lua/$(LUAV) - -# prefix: /usr/local /usr /opt/local /sw -# the top of the default install tree -prefix?=$(LUAPREFIX_$(PLAT)) - -CDIR?=$(CDIR_$(PLAT)) -LDIR?=$(LDIR_$(PLAT)) - -# DESTDIR: (no default) -# used by package managers to install into a temporary destination -DESTDIR?= - -#------ -# Definitions below can be overridden on the make command line, but -# shouldn't have to be. - - -#------ -# Install directories -# - -INSTALL_DIR=install -d -INSTALL_DATA=install -m644 -INSTALL_EXEC=install -INSTALL_TOP=$(DESTDIR)$(prefix) - -INSTALL_TOP_LDIR=$(INSTALL_TOP)/$(LDIR) -INSTALL_TOP_CDIR=$(INSTALL_TOP)/$(CDIR) - -INSTALL_SOCKET_LDIR=$(INSTALL_TOP_LDIR)/socket -INSTALL_SOCKET_CDIR=$(INSTALL_TOP_CDIR)/socket -INSTALL_MIME_LDIR=$(INSTALL_TOP_LDIR)/mime -INSTALL_MIME_CDIR=$(INSTALL_TOP_CDIR)/mime - -print: - @echo PLAT=$(PLAT) - @echo LUAV=$(LUAV) - @echo DEBUG=$(DEBUG) - @echo prefix=$(prefix) - @echo LUAINC_$(PLAT)=$(LUAINC_$(PLAT)) - @echo LUALIB_$(PLAT)=$(LUALIB_$(PLAT)) - @echo INSTALL_TOP_CDIR=$(INSTALL_TOP_CDIR) - @echo INSTALL_TOP_LDIR=$(INSTALL_TOP_LDIR) - @echo CFLAGS=$(CFLAGS) - @echo LDFLAGS=$(LDFLAGS) - -#------ -# Supported platforms -# -PLATS= macosx linux win32 mingw solaris - -#------ -# Compiler and linker settings -# for Mac OS X -SO_macosx=so -O_macosx=o -CC_macosx=gcc -DEF_macosx= -DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN \ - -DLUASOCKET_API='__attribute__((visibility("default")))' \ - -DUNIX_API='__attribute__((visibility("default")))' \ - -DMIME_API='__attribute__((visibility("default")))' -CFLAGS_macosx= -I$(LUAINC) $(DEF) -Wall -O2 -fno-common \ - -fvisibility=hidden -LDFLAGS_macosx= -bundle -undefined dynamic_lookup -o -LD_macosx= export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -SOCKET_macosx=usocket.o - -#------ -# Compiler and linker settings -# for Linux -SO_linux=so -O_linux=o -CC_linux=gcc -DEF_linux=-DLUASOCKET_$(DEBUG) \ - -DLUASOCKET_API='__attribute__((visibility("default")))' \ - -DUNIX_API='__attribute__((visibility("default")))' \ - -DMIME_API='__attribute__((visibility("default")))' -CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \ - -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden -LDFLAGS_linux=-O -shared -fpic -o -LD_linux=gcc -SOCKET_linux=usocket.o - -#------ -# Compiler and linker settings -# for FreeBSD -SO_freebsd=so -O_freebsd=o -CC_freebsd=gcc -DEF_freebsd=-DLUASOCKET_$(DEBUG) \ - -DLUASOCKET_API='__attribute__((visibility("default")))' \ - -DUNIX_API='__attribute__((visibility("default")))' \ - -DMIME_API='__attribute__((visibility("default")))' -CFLAGS_freebsd= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \ - -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden -LDFLAGS_freebsd=-O -shared -fpic -o -LD_freebsd=gcc -SOCKET_freebsd=usocket.o - -#------ -# Compiler and linker settings -# for Solaris -SO_solaris=so -O_solaris=o -CC_solaris=gcc -DEF_solaris=-DLUASOCKET_$(DEBUG) \ - -DLUASOCKET_API='__attribute__((visibility("default")))' \ - -DUNIX_API='__attribute__((visibility("default")))' \ - -DMIME_API='__attribute__((visibility("default")))' -CFLAGS_solaris=-I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \ - -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden -LDFLAGS_solaris=-lnsl -lsocket -lresolv -O -shared -fpic -o -LD_solaris=gcc -SOCKET_solaris=usocket.o - -#------ -# Compiler and linker settings -# for MingW -SO_mingw=dll -O_mingw=o -CC_mingw=gcc -DEF_mingw= -DLUASOCKET_INET_PTON -DLUASOCKET_$(DEBUG) \ - -DWINVER=0x0501 -DLUASOCKET_API='__declspec(dllexport)' \ - -DMIME_API='__declspec(dllexport)' -CFLAGS_mingw= -I$(LUAINC) $(DEF) -Wall -O2 -fno-common \ - -fvisibility=hidden -LDFLAGS_mingw= $(LUALIB) -shared -Wl,-s -lws2_32 -o -LD_mingw=gcc -SOCKET_mingw=wsocket.o - - -#------ -# Compiler and linker settings -# for Win32 -SO_win32=dll -O_win32=obj -CC_win32=cl -DEF_win32= //D "WIN32" //D "NDEBUG" //D "_WINDOWS" //D "_USRDLL" \ - //D "LUASOCKET_API=__declspec(dllexport)" //D "_CRT_SECURE_NO_WARNINGS" \ - //D "_WINDLL" //D "MIME_API=__declspec(dllexport)" \ - //D "LUASOCKET_$(DEBUG)" -CFLAGS_win32=//I "$(LUAINC)" $(DEF) //O2 //Ot //MD //W3 //nologo -LDFLAGS_win32= //nologo //link //NOLOGO //DLL //INCREMENTAL:NO \ - //MANIFEST //MANIFESTFILE:"intermediate.manifest" \ - //MANIFESTUAC:"level='asInvoker' uiAccess='false'" \ - //SUBSYSTEM:WINDOWS //OPT:REF //OPT:ICF //DYNAMICBASE:NO \ - //MACHINE:X86 /LIBPATH:"$(shell cmd //c echo $(LUALIB))" \ - $(LUALIBNAME_win32) ws2_32.lib //OUT: -LD_win32=cl -SOCKET_win32=wsocket.obj - -.SUFFIXES: .obj - -.c.obj: - $(CC) $(CFLAGS) //Fo"$@" //c $< - -#------ -# Output file names -# -SO=$(SO_$(PLAT)) -O=$(O_$(PLAT)) -SOCKET_V=3.0-rc1 -MIME_V=1.0.3 -SOCKET_SO=socket-$(SOCKET_V).$(SO) -MIME_SO=mime-$(MIME_V).$(SO) -UNIX_SO=unix.$(SO) -SERIAL_SO=serial.$(SO) -SOCKET=$(SOCKET_$(PLAT)) - -#------ -# Settings selected for platform -# -CC=$(CC_$(PLAT)) -DEF=$(DEF_$(PLAT)) -CFLAGS=$(MYCFLAGS) $(CFLAGS_$(PLAT)) -LDFLAGS=$(MYLDFLAGS) $(LDFLAGS_$(PLAT)) -LD=$(LD_$(PLAT)) -LUAINC= $(LUAINC_$(PLAT)) -LUALIB= $(LUALIB_$(PLAT)) - -#------ -# Modules belonging to socket-core -# -SOCKET_OBJS= \ - luasocket.$(O) \ - timeout.$(O) \ - buffer.$(O) \ - io.$(O) \ - auxiliar.$(O) \ - compat.$(O) \ - options.$(O) \ - inet.$(O) \ - $(SOCKET) \ - except.$(O) \ - select.$(O) \ - tcp.$(O) \ - udp.$(O) - -#------ -# Modules belonging mime-core -# -MIME_OBJS= \ - mime.$(O) \ - compat.$(O) - -#------ -# Modules belonging unix (local domain sockets) -# -UNIX_OBJS=\ - buffer.$(O) \ - auxiliar.$(O) \ - options.$(O) \ - timeout.$(O) \ - io.$(O) \ - usocket.$(O) \ - unixstream.$(O) \ - unixdgram.$(O) \ - compat.$(O) \ - unix.$(O) - -#------ -# Modules belonging to serial (device streams) -# -SERIAL_OBJS=\ - buffer.$(O) \ - auxiliar.$(O) \ - options.$(O) \ - timeout.$(O) \ - io.$(O) \ - usocket.$(O) \ - serial.$(O) - -#------ -# Files to install -# -TO_SOCKET_LDIR= \ - http.lua \ - url.lua \ - tp.lua \ - ftp.lua \ - headers.lua \ - smtp.lua - -TO_TOP_LDIR= \ - ltn12.lua \ - socket.lua \ - mime.lua - -#------ -# Targets -# -default: $(PLAT) - - -freebsd: - $(MAKE) all-unix PLAT=freebsd - -macosx: - $(MAKE) all-unix PLAT=macosx - -win32: - $(MAKE) all PLAT=win32 - -linux: - $(MAKE) all-unix PLAT=linux - -mingw: - $(MAKE) all PLAT=mingw - -solaris: - $(MAKE) all-unix PLAT=solaris - -none: - @echo "Please run" - @echo " make PLATFORM" - @echo "where PLATFORM is one of these:" - @echo " $(PLATS)" - -all: $(SOCKET_SO) $(MIME_SO) - -$(SOCKET_SO): $(SOCKET_OBJS) - $(LD) $(SOCKET_OBJS) $(LDFLAGS)$@ - -$(MIME_SO): $(MIME_OBJS) - $(LD) $(MIME_OBJS) $(LDFLAGS)$@ - -all-unix: all $(UNIX_SO) $(SERIAL_SO) - -$(UNIX_SO): $(UNIX_OBJS) - $(LD) $(UNIX_OBJS) $(LDFLAGS)$@ - -$(SERIAL_SO): $(SERIAL_OBJS) - $(LD) $(SERIAL_OBJS) $(LDFLAGS)$@ - -install: - $(INSTALL_DIR) $(INSTALL_TOP_LDIR) - $(INSTALL_DATA) $(TO_TOP_LDIR) $(INSTALL_TOP_LDIR) - $(INSTALL_DIR) $(INSTALL_SOCKET_LDIR) - $(INSTALL_DATA) $(TO_SOCKET_LDIR) $(INSTALL_SOCKET_LDIR) - $(INSTALL_DIR) $(INSTALL_SOCKET_CDIR) - $(INSTALL_EXEC) $(SOCKET_SO) $(INSTALL_SOCKET_CDIR)/core.$(SO) - $(INSTALL_DIR) $(INSTALL_MIME_CDIR) - $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_CDIR)/core.$(SO) - -install-unix: install - $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_SOCKET_CDIR)/$(UNIX_SO) - $(INSTALL_EXEC) $(SERIAL_SO) $(INSTALL_SOCKET_CDIR)/$(SERIAL_SO) - -local: - $(MAKE) install INSTALL_TOP_CDIR=.. INSTALL_TOP_LDIR=.. - -clean: - rm -f $(SOCKET_SO) $(SOCKET_OBJS) $(SERIAL_OBJS) - rm -f $(MIME_SO) $(UNIX_SO) $(SERIAL_SO) $(MIME_OBJS) $(UNIX_OBJS) - -.PHONY: all $(PLATS) default clean echo none - -#------ -# List of dependencies -# -compat.$(O): compat.c compat.h -auxiliar.$(O): auxiliar.c auxiliar.h -buffer.$(O): buffer.c buffer.h io.h timeout.h -except.$(O): except.c except.h -inet.$(O): inet.c inet.h socket.h io.h timeout.h usocket.h -io.$(O): io.c io.h timeout.h -luasocket.$(O): luasocket.c luasocket.h auxiliar.h except.h \ - timeout.h buffer.h io.h inet.h socket.h usocket.h tcp.h \ - udp.h select.h -mime.$(O): mime.c mime.h -options.$(O): options.c auxiliar.h options.h socket.h io.h \ - timeout.h usocket.h inet.h -select.$(O): select.c socket.h io.h timeout.h usocket.h select.h -serial.$(O): serial.c auxiliar.h socket.h io.h timeout.h usocket.h \ - options.h unix.h buffer.h -tcp.$(O): tcp.c auxiliar.h socket.h io.h timeout.h usocket.h \ - inet.h options.h tcp.h buffer.h -timeout.$(O): timeout.c auxiliar.h timeout.h -udp.$(O): udp.c auxiliar.h socket.h io.h timeout.h usocket.h \ - inet.h options.h udp.h -unix.$(O): unix.c auxiliar.h socket.h io.h timeout.h usocket.h \ - options.h unix.h buffer.h -usocket.$(O): usocket.c socket.h io.h timeout.h usocket.h -wsocket.$(O): wsocket.c socket.h io.h timeout.h usocket.h diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mbox.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/mbox.lua deleted file mode 100644 index ed9e7814e60..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mbox.lua +++ /dev/null @@ -1,92 +0,0 @@ -local _M = {} - -if module then - mbox = _M -end - -function _M.split_message(message_s) - local message = {} - message_s = string.gsub(message_s, "\r\n", "\n") - string.gsub(message_s, "^(.-\n)\n", function (h) message.headers = h end) - string.gsub(message_s, "^.-\n\n(.*)", function (b) message.body = b end) - if not message.body then - string.gsub(message_s, "^\n(.*)", function (b) message.body = b end) - end - if not message.headers and not message.body then - message.headers = message_s - end - return message.headers or "", message.body or "" -end - -function _M.split_headers(headers_s) - local headers = {} - headers_s = string.gsub(headers_s, "\r\n", "\n") - headers_s = string.gsub(headers_s, "\n[ ]+", " ") - string.gsub("\n" .. headers_s, "\n([^\n]+)", function (h) table.insert(headers, h) end) - return headers -end - -function _M.parse_header(header_s) - header_s = string.gsub(header_s, "\n[ ]+", " ") - header_s = string.gsub(header_s, "\n+", "") - local _, __, name, value = string.find(header_s, "([^%s:]-):%s*(.*)") - return name, value -end - -function _M.parse_headers(headers_s) - local headers_t = _M.split_headers(headers_s) - local headers = {} - for i = 1, #headers_t do - local name, value = _M.parse_header(headers_t[i]) - if name then - name = string.lower(name) - if headers[name] then - headers[name] = headers[name] .. ", " .. value - else headers[name] = value end - end - end - return headers -end - -function _M.parse_from(from) - local _, __, name, address = string.find(from, "^%s*(.-)%s*%<(.-)%>") - if not address then - _, __, address = string.find(from, "%s*(.+)%s*") - end - name = name or "" - address = address or "" - if name == "" then name = address end - name = string.gsub(name, '"', "") - return name, address -end - -function _M.split_mbox(mbox_s) - local mbox = {} - mbox_s = string.gsub(mbox_s, "\r\n", "\n") .."\n\nFrom \n" - local nj, i, j = 1, 1, 1 - while 1 do - i, nj = string.find(mbox_s, "\n\nFrom .-\n", j) - if not i then break end - local message = string.sub(mbox_s, j, i-1) - table.insert(mbox, message) - j = nj+1 - end - return mbox -end - -function _M.parse(mbox_s) - local mbox = _M.split_mbox(mbox_s) - for i = 1, #mbox do - mbox[i] = _M.parse_message(mbox[i]) - end - return mbox -end - -function _M.parse_message(message_s) - local message = {} - message.headers, message.body = _M.split_message(message_s) - message.headers = _M.parse_headers(message.headers) - return message -end - -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mbox.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/mbox.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mbox.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mbox_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/mbox_lua.c deleted file mode 100644 index 22f14793743..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mbox_lua.c +++ /dev/null @@ -1,231 +0,0 @@ -/* - * This file is generated with xxd -i and bit of bash script. -*/ -#include "lua.h" -#include "lauxlib.h" - -int luatex_mbox_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x7b, - 0x7d, 0x0a, 0x69, 0x66, 0x20, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6d, 0x62, 0x6f, - 0x78, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x0a, 0x65, 0x6e, 0x64, 0x20, 0x0a, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, - 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x28, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, - 0x73, 0x75, 0x62, 0x28, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x2c, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x2c, 0x20, 0x22, - 0x5c, 0x6e, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5e, 0x28, 0x2e, - 0x2d, 0x5c, 0x6e, 0x29, 0x5c, 0x6e, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x68, 0x29, 0x20, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x20, 0x3d, 0x20, 0x68, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, - 0x75, 0x62, 0x28, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, - 0x2c, 0x20, 0x22, 0x5e, 0x2e, 0x2d, 0x5c, 0x6e, 0x5c, 0x6e, 0x28, 0x2e, - 0x2a, 0x29, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x28, 0x62, 0x29, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x3d, 0x20, 0x62, 0x20, 0x65, - 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x62, - 0x6f, 0x64, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x67, 0x73, 0x75, 0x62, 0x28, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5e, 0x5c, 0x6e, 0x28, 0x2e, 0x2a, 0x29, - 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x28, 0x62, 0x29, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, - 0x62, 0x6f, 0x64, 0x79, 0x20, 0x3d, 0x20, 0x62, 0x20, 0x65, 0x6e, 0x64, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x20, 0x3d, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x73, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x22, 0x2c, 0x20, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x20, 0x6f, 0x72, - 0x20, 0x22, 0x22, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x73, 0x70, 0x6c, 0x69, - 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x2c, 0x20, 0x22, - 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x2c, 0x20, 0x22, 0x5c, 0x6e, 0x22, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x5f, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x67, 0x73, 0x75, 0x62, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5c, 0x6e, 0x5b, 0x20, 0x5d, 0x2b, 0x22, - 0x2c, 0x20, 0x22, 0x20, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x22, - 0x5c, 0x6e, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5c, 0x6e, 0x28, 0x5b, 0x5e, - 0x5c, 0x6e, 0x5d, 0x2b, 0x29, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x68, 0x29, 0x20, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x2e, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x28, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x2c, 0x20, 0x68, 0x29, 0x20, 0x65, 0x6e, - 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, - 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, - 0x73, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, - 0x73, 0x75, 0x62, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, - 0x2c, 0x20, 0x22, 0x5c, 0x6e, 0x5b, 0x20, 0x5d, 0x2b, 0x22, 0x2c, 0x20, - 0x22, 0x20, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x5f, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5c, 0x6e, 0x2b, 0x22, 0x2c, - 0x20, 0x22, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x5f, 0x2c, 0x20, 0x5f, 0x5f, 0x2c, 0x20, 0x6e, 0x61, - 0x6d, 0x65, 0x2c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x28, - 0x5b, 0x5e, 0x25, 0x73, 0x3a, 0x5d, 0x2d, 0x29, 0x3a, 0x25, 0x73, 0x2a, - 0x28, 0x2e, 0x2a, 0x29, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, - 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x20, 0x3d, 0x20, - 0x31, 0x2c, 0x20, 0x23, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, - 0x74, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, - 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x5b, 0x69, - 0x5d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x28, 0x6e, 0x61, 0x6d, 0x65, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x5b, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, - 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x5b, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x2e, 0x2e, - 0x20, 0x22, 0x2c, 0x20, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x5b, 0x6e, 0x61, 0x6d, 0x65, 0x5d, 0x20, 0x3d, 0x20, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x66, - 0x72, 0x6f, 0x6d, 0x28, 0x66, 0x72, 0x6f, 0x6d, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x2c, 0x20, 0x5f, - 0x5f, 0x2c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x66, 0x72, 0x6f, 0x6d, 0x2c, - 0x20, 0x22, 0x5e, 0x25, 0x73, 0x2a, 0x28, 0x2e, 0x2d, 0x29, 0x25, 0x73, - 0x2a, 0x25, 0x3c, 0x28, 0x2e, 0x2d, 0x29, 0x25, 0x3e, 0x22, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x2c, 0x20, 0x5f, - 0x5f, 0x2c, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x3d, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, - 0x28, 0x66, 0x72, 0x6f, 0x6d, 0x2c, 0x20, 0x22, 0x25, 0x73, 0x2a, 0x28, - 0x2e, 0x2b, 0x29, 0x25, 0x73, 0x2a, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x6d, - 0x65, 0x20, 0x3d, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x72, 0x20, - 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x20, 0x3d, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x20, 0x6f, 0x72, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x3d, - 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, - 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x27, 0x22, 0x27, 0x2c, 0x20, 0x22, - 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x73, 0x70, 0x6c, 0x69, - 0x74, 0x5f, 0x6d, 0x62, 0x6f, 0x78, 0x28, 0x6d, 0x62, 0x6f, 0x78, 0x5f, - 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x6d, 0x62, 0x6f, 0x78, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6d, 0x62, 0x6f, 0x78, 0x5f, 0x73, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, - 0x6d, 0x62, 0x6f, 0x78, 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5c, 0x72, 0x5c, - 0x6e, 0x22, 0x2c, 0x20, 0x22, 0x5c, 0x6e, 0x22, 0x29, 0x20, 0x2e, 0x2e, - 0x22, 0x5c, 0x6e, 0x5c, 0x6e, 0x46, 0x72, 0x6f, 0x6d, 0x20, 0x5c, 0x6e, - 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x6e, 0x6a, 0x2c, 0x20, 0x69, 0x2c, 0x20, 0x6a, 0x20, 0x3d, 0x20, 0x31, - 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, - 0x68, 0x69, 0x6c, 0x65, 0x20, 0x31, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x2c, 0x20, 0x6e, 0x6a, 0x20, - 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, - 0x64, 0x28, 0x6d, 0x62, 0x6f, 0x78, 0x5f, 0x73, 0x2c, 0x20, 0x22, 0x5c, - 0x6e, 0x5c, 0x6e, 0x46, 0x72, 0x6f, 0x6d, 0x20, 0x2e, 0x2d, 0x5c, 0x6e, - 0x22, 0x2c, 0x20, 0x6a, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x69, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x20, - 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x73, 0x75, 0x62, - 0x28, 0x6d, 0x62, 0x6f, 0x78, 0x5f, 0x73, 0x2c, 0x20, 0x6a, 0x2c, 0x20, - 0x69, 0x2d, 0x31, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x69, 0x6e, 0x73, 0x65, 0x72, - 0x74, 0x28, 0x6d, 0x62, 0x6f, 0x78, 0x2c, 0x20, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x6a, 0x20, 0x3d, 0x20, 0x6e, 0x6a, 0x2b, 0x31, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x62, 0x6f, 0x78, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, - 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, 0x6d, 0x62, 0x6f, 0x78, - 0x5f, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x6d, 0x62, 0x6f, 0x78, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, - 0x73, 0x70, 0x6c, 0x69, 0x74, 0x5f, 0x6d, 0x62, 0x6f, 0x78, 0x28, 0x6d, - 0x62, 0x6f, 0x78, 0x5f, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, - 0x6f, 0x72, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x31, 0x2c, 0x20, 0x23, 0x6d, - 0x62, 0x6f, 0x78, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x6d, 0x62, 0x6f, 0x78, 0x5b, 0x69, 0x5d, 0x20, 0x3d, - 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x6d, 0x62, 0x6f, 0x78, 0x5b, 0x69, - 0x5d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x62, - 0x6f, 0x78, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x2c, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, - 0x62, 0x6f, 0x64, 0x79, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x73, 0x70, - 0x6c, 0x69, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x28, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x5f, 0x4d, 0x0a,0x0}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.c b/Build/source/texk/web2c/luatexdir/luasocket/src/mime.c deleted file mode 100644 index ed441046f0f..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.c +++ /dev/null @@ -1,721 +0,0 @@ -/*=========================================================================*\ -* MIME support functions -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "mime.h" - -/*=========================================================================*\ -* Don't want to trust escape character constants -\*=========================================================================*/ -typedef unsigned char UC; -static const char CRLF[] = "\r\n"; -static const char EQCRLF[] = "=\r\n"; - -/*=========================================================================*\ -* Internal function prototypes. -\*=========================================================================*/ -static int mime_global_wrp(lua_State *L); -static int mime_global_b64(lua_State *L); -static int mime_global_unb64(lua_State *L); -static int mime_global_qp(lua_State *L); -static int mime_global_unqp(lua_State *L); -static int mime_global_qpwrp(lua_State *L); -static int mime_global_eol(lua_State *L); -static int mime_global_dot(lua_State *L); - -static size_t dot(int c, size_t state, luaL_Buffer *buffer); -static void b64setup(UC *base); -static size_t b64encode(UC c, UC *input, size_t size, luaL_Buffer *buffer); -static size_t b64pad(const UC *input, size_t size, luaL_Buffer *buffer); -static size_t b64decode(UC c, UC *input, size_t size, luaL_Buffer *buffer); - -static void qpsetup(UC *class, UC *unbase); -static void qpquote(UC c, luaL_Buffer *buffer); -static size_t qpdecode(UC c, UC *input, size_t size, luaL_Buffer *buffer); -static size_t qpencode(UC c, UC *input, size_t size, - const char *marker, luaL_Buffer *buffer); -static size_t qppad(UC *input, size_t size, luaL_Buffer *buffer); - -/* code support functions */ -static luaL_Reg func[] = { - { "dot", mime_global_dot }, - { "b64", mime_global_b64 }, - { "eol", mime_global_eol }, - { "qp", mime_global_qp }, - { "qpwrp", mime_global_qpwrp }, - { "unb64", mime_global_unb64 }, - { "unqp", mime_global_unqp }, - { "wrp", mime_global_wrp }, - { NULL, NULL } -}; - -/*-------------------------------------------------------------------------*\ -* Quoted-printable globals -\*-------------------------------------------------------------------------*/ -static UC qpclass[256]; -static UC qpbase[] = "0123456789ABCDEF"; -static UC qpunbase[256]; -enum {QP_PLAIN, QP_QUOTED, QP_CR, QP_IF_LAST}; - -/*-------------------------------------------------------------------------*\ -* Base64 globals -\*-------------------------------------------------------------------------*/ -static const UC b64base[] = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -static UC b64unbase[256]; - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -MIME_API int luaopen_mime_core(lua_State *L) -{ - lua_newtable(L); - luaL_setfuncs(L, func, 0); - /* make version string available to scripts */ - lua_pushstring(L, "_VERSION"); - lua_pushstring(L, MIME_VERSION); - lua_rawset(L, -3); - /* initialize lookup tables */ - qpsetup(qpclass, qpunbase); - b64setup(b64unbase); - return 1; -} - -/*=========================================================================*\ -* Global Lua functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Incrementaly breaks a string into lines. The string can have CRLF breaks. -* A, n = wrp(l, B, length) -* A is a copy of B, broken into lines of at most 'length' bytes. -* 'l' is how many bytes are left for the first line of B. -* 'n' is the number of bytes left in the last line of A. -\*-------------------------------------------------------------------------*/ -static int mime_global_wrp(lua_State *L) -{ - size_t size = 0; - int left = (int) luaL_checknumber(L, 1); - const UC *input = (const UC *) luaL_optlstring(L, 2, NULL, &size); - const UC *last = input + size; - int length = (int) luaL_optnumber(L, 3, 76); - luaL_Buffer buffer; - /* end of input black-hole */ - if (!input) { - /* if last line has not been terminated, add a line break */ - if (left < length) lua_pushstring(L, CRLF); - /* otherwise, we are done */ - else lua_pushnil(L); - lua_pushnumber(L, length); - return 2; - } - luaL_buffinit(L, &buffer); - while (input < last) { - switch (*input) { - case '\r': - break; - case '\n': - luaL_addstring(&buffer, CRLF); - left = length; - break; - default: - if (left <= 0) { - left = length; - luaL_addstring(&buffer, CRLF); - } - luaL_addchar(&buffer, *input); - left--; - break; - } - input++; - } - luaL_pushresult(&buffer); - lua_pushnumber(L, left); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Fill base64 decode map. -\*-------------------------------------------------------------------------*/ -static void b64setup(UC *unbase) -{ - int i; - for (i = 0; i <= 255; i++) unbase[i] = (UC) 255; - for (i = 0; i < 64; i++) unbase[b64base[i]] = (UC) i; - unbase['='] = 0; -} - -/*-------------------------------------------------------------------------*\ -* Acumulates bytes in input buffer until 3 bytes are available. -* Translate the 3 bytes into Base64 form and append to buffer. -* Returns new number of bytes in buffer. -\*-------------------------------------------------------------------------*/ -static size_t b64encode(UC c, UC *input, size_t size, - luaL_Buffer *buffer) -{ - input[size++] = c; - if (size == 3) { - UC code[4]; - unsigned long value = 0; - value += input[0]; value <<= 8; - value += input[1]; value <<= 8; - value += input[2]; - code[3] = b64base[value & 0x3f]; value >>= 6; - code[2] = b64base[value & 0x3f]; value >>= 6; - code[1] = b64base[value & 0x3f]; value >>= 6; - code[0] = b64base[value]; - luaL_addlstring(buffer, (char *) code, 4); - size = 0; - } - return size; -} - -/*-------------------------------------------------------------------------*\ -* Encodes the Base64 last 1 or 2 bytes and adds padding '=' -* Result, if any, is appended to buffer. -* Returns 0. -\*-------------------------------------------------------------------------*/ -static size_t b64pad(const UC *input, size_t size, - luaL_Buffer *buffer) -{ - unsigned long value = 0; - UC code[4] = {'=', '=', '=', '='}; - switch (size) { - case 1: - value = input[0] << 4; - code[1] = b64base[value & 0x3f]; value >>= 6; - code[0] = b64base[value]; - luaL_addlstring(buffer, (char *) code, 4); - break; - case 2: - value = input[0]; value <<= 8; - value |= input[1]; value <<= 2; - code[2] = b64base[value & 0x3f]; value >>= 6; - code[1] = b64base[value & 0x3f]; value >>= 6; - code[0] = b64base[value]; - luaL_addlstring(buffer, (char *) code, 4); - break; - default: - break; - } - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Acumulates bytes in input buffer until 4 bytes are available. -* Translate the 4 bytes from Base64 form and append to buffer. -* Returns new number of bytes in buffer. -\*-------------------------------------------------------------------------*/ -static size_t b64decode(UC c, UC *input, size_t size, - luaL_Buffer *buffer) -{ - /* ignore invalid characters */ - if (b64unbase[c] > 64) return size; - input[size++] = c; - /* decode atom */ - if (size == 4) { - UC decoded[3]; - int valid, value = 0; - value = b64unbase[input[0]]; value <<= 6; - value |= b64unbase[input[1]]; value <<= 6; - value |= b64unbase[input[2]]; value <<= 6; - value |= b64unbase[input[3]]; - decoded[2] = (UC) (value & 0xff); value >>= 8; - decoded[1] = (UC) (value & 0xff); value >>= 8; - decoded[0] = (UC) value; - /* take care of paddding */ - valid = (input[2] == '=') ? 1 : (input[3] == '=') ? 2 : 3; - luaL_addlstring(buffer, (char *) decoded, valid); - return 0; - /* need more data */ - } else return size; -} - -/*-------------------------------------------------------------------------*\ -* Incrementally applies the Base64 transfer content encoding to a string -* A, B = b64(C, D) -* A is the encoded version of the largest prefix of C .. D that is -* divisible by 3. B has the remaining bytes of C .. D, *without* encoding. -* The easiest thing would be to concatenate the two strings and -* encode the result, but we can't afford that or Lua would dupplicate -* every chunk we received. -\*-------------------------------------------------------------------------*/ -static int mime_global_b64(lua_State *L) -{ - UC atom[3]; - size_t isize = 0, asize = 0; - const UC *input = (const UC *) luaL_optlstring(L, 1, NULL, &isize); - const UC *last = input + isize; - luaL_Buffer buffer; - /* end-of-input blackhole */ - if (!input) { - lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* make sure we don't confuse buffer stuff with arguments */ - lua_settop(L, 2); - /* process first part of the input */ - luaL_buffinit(L, &buffer); - while (input < last) - asize = b64encode(*input++, atom, asize, &buffer); - input = (const UC *) luaL_optlstring(L, 2, NULL, &isize); - /* if second part is nil, we are done */ - if (!input) { - size_t osize = 0; - asize = b64pad(atom, asize, &buffer); - luaL_pushresult(&buffer); - /* if the output is empty and the input is nil, return nil */ - lua_tolstring(L, -1, &osize); - if (osize == 0) lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* otherwise process the second part */ - last = input + isize; - while (input < last) - asize = b64encode(*input++, atom, asize, &buffer); - luaL_pushresult(&buffer); - lua_pushlstring(L, (char *) atom, asize); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Incrementally removes the Base64 transfer content encoding from a string -* A, B = b64(C, D) -* A is the encoded version of the largest prefix of C .. D that is -* divisible by 4. B has the remaining bytes of C .. D, *without* encoding. -\*-------------------------------------------------------------------------*/ -static int mime_global_unb64(lua_State *L) -{ - UC atom[4]; - size_t isize = 0, asize = 0; - const UC *input = (const UC *) luaL_optlstring(L, 1, NULL, &isize); - const UC *last = input + isize; - luaL_Buffer buffer; - /* end-of-input blackhole */ - if (!input) { - lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* make sure we don't confuse buffer stuff with arguments */ - lua_settop(L, 2); - /* process first part of the input */ - luaL_buffinit(L, &buffer); - while (input < last) - asize = b64decode(*input++, atom, asize, &buffer); - input = (const UC *) luaL_optlstring(L, 2, NULL, &isize); - /* if second is nil, we are done */ - if (!input) { - size_t osize = 0; - luaL_pushresult(&buffer); - /* if the output is empty and the input is nil, return nil */ - lua_tolstring(L, -1, &osize); - if (osize == 0) lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* otherwise, process the rest of the input */ - last = input + isize; - while (input < last) - asize = b64decode(*input++, atom, asize, &buffer); - luaL_pushresult(&buffer); - lua_pushlstring(L, (char *) atom, asize); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Quoted-printable encoding scheme -* all (except CRLF in text) can be =XX -* CLRL in not text must be =XX=XX -* 33 through 60 inclusive can be plain -* 62 through 126 inclusive can be plain -* 9 and 32 can be plain, unless in the end of a line, where must be =XX -* encoded lines must be no longer than 76 not counting CRLF -* soft line-break are =CRLF -* To encode one byte, we need to see the next two. -* Worst case is when we see a space, and wonder if a CRLF is comming -\*-------------------------------------------------------------------------*/ -/*-------------------------------------------------------------------------*\ -* Split quoted-printable characters into classes -* Precompute reverse map for encoding -\*-------------------------------------------------------------------------*/ -static void qpsetup(UC *cl, UC *unbase) -{ - int i; - for (i = 0; i < 256; i++) cl[i] = QP_QUOTED; - for (i = 33; i <= 60; i++) cl[i] = QP_PLAIN; - for (i = 62; i <= 126; i++) cl[i] = QP_PLAIN; - cl['\t'] = QP_IF_LAST; - cl[' '] = QP_IF_LAST; - cl['\r'] = QP_CR; - for (i = 0; i < 256; i++) unbase[i] = 255; - unbase['0'] = 0; unbase['1'] = 1; unbase['2'] = 2; - unbase['3'] = 3; unbase['4'] = 4; unbase['5'] = 5; - unbase['6'] = 6; unbase['7'] = 7; unbase['8'] = 8; - unbase['9'] = 9; unbase['A'] = 10; unbase['a'] = 10; - unbase['B'] = 11; unbase['b'] = 11; unbase['C'] = 12; - unbase['c'] = 12; unbase['D'] = 13; unbase['d'] = 13; - unbase['E'] = 14; unbase['e'] = 14; unbase['F'] = 15; - unbase['f'] = 15; -} - -/*-------------------------------------------------------------------------*\ -* Output one character in form =XX -\*-------------------------------------------------------------------------*/ -static void qpquote(UC c, luaL_Buffer *buffer) -{ - luaL_addchar(buffer, '='); - luaL_addchar(buffer, qpbase[c >> 4]); - luaL_addchar(buffer, qpbase[c & 0x0F]); -} - -/*-------------------------------------------------------------------------*\ -* Accumulate characters until we are sure about how to deal with them. -* Once we are sure, output to the buffer, in the correct form. -\*-------------------------------------------------------------------------*/ -static size_t qpencode(UC c, UC *input, size_t size, - const char *marker, luaL_Buffer *buffer) -{ - input[size++] = c; - /* deal with all characters we can have */ - while (size > 0) { - switch (qpclass[input[0]]) { - /* might be the CR of a CRLF sequence */ - case QP_CR: - if (size < 2) return size; - if (input[1] == '\n') { - luaL_addstring(buffer, marker); - return 0; - } else qpquote(input[0], buffer); - break; - /* might be a space and that has to be quoted if last in line */ - case QP_IF_LAST: - if (size < 3) return size; - /* if it is the last, quote it and we are done */ - if (input[1] == '\r' && input[2] == '\n') { - qpquote(input[0], buffer); - luaL_addstring(buffer, marker); - return 0; - } else luaL_addchar(buffer, input[0]); - break; - /* might have to be quoted always */ - case QP_QUOTED: - qpquote(input[0], buffer); - break; - /* might never have to be quoted */ - default: - luaL_addchar(buffer, input[0]); - break; - } - input[0] = input[1]; input[1] = input[2]; - size--; - } - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Deal with the final characters -\*-------------------------------------------------------------------------*/ -static size_t qppad(UC *input, size_t size, luaL_Buffer *buffer) -{ - size_t i; - for (i = 0; i < size; i++) { - if (qpclass[input[i]] == QP_PLAIN) luaL_addchar(buffer, input[i]); - else qpquote(input[i], buffer); - } - if (size > 0) luaL_addstring(buffer, EQCRLF); - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Incrementally converts a string to quoted-printable -* A, B = qp(C, D, marker) -* Marker is the text to be used to replace CRLF sequences found in A. -* A is the encoded version of the largest prefix of C .. D that -* can be encoded without doubts. -* B has the remaining bytes of C .. D, *without* encoding. -\*-------------------------------------------------------------------------*/ -static int mime_global_qp(lua_State *L) -{ - - size_t asize = 0, isize = 0; - UC atom[3]; - const UC *input = (const UC *) luaL_optlstring(L, 1, NULL, &isize); - const UC *last = input + isize; - const char *marker = luaL_optstring(L, 3, CRLF); - luaL_Buffer buffer; - /* end-of-input blackhole */ - if (!input) { - lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* make sure we don't confuse buffer stuff with arguments */ - lua_settop(L, 3); - /* process first part of input */ - luaL_buffinit(L, &buffer); - while (input < last) - asize = qpencode(*input++, atom, asize, marker, &buffer); - input = (const UC *) luaL_optlstring(L, 2, NULL, &isize); - /* if second part is nil, we are done */ - if (!input) { - asize = qppad(atom, asize, &buffer); - luaL_pushresult(&buffer); - if (!(*lua_tostring(L, -1))) lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* otherwise process rest of input */ - last = input + isize; - while (input < last) - asize = qpencode(*input++, atom, asize, marker, &buffer); - luaL_pushresult(&buffer); - lua_pushlstring(L, (char *) atom, asize); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Accumulate characters until we are sure about how to deal with them. -* Once we are sure, output the to the buffer, in the correct form. -\*-------------------------------------------------------------------------*/ -static size_t qpdecode(UC c, UC *input, size_t size, luaL_Buffer *buffer) { - int d; - input[size++] = c; - /* deal with all characters we can deal */ - switch (input[0]) { - /* if we have an escape character */ - case '=': - if (size < 3) return size; - /* eliminate soft line break */ - if (input[1] == '\r' && input[2] == '\n') return 0; - /* decode quoted representation */ - c = qpunbase[input[1]]; d = qpunbase[input[2]]; - /* if it is an invalid, do not decode */ - if (c > 15 || d > 15) luaL_addlstring(buffer, (char *)input, 3); - else luaL_addchar(buffer, (char) ((c << 4) + d)); - return 0; - case '\r': - if (size < 2) return size; - if (input[1] == '\n') luaL_addlstring(buffer, (char *)input, 2); - return 0; - default: - if (input[0] == '\t' || (input[0] > 31 && input[0] < 127)) - luaL_addchar(buffer, input[0]); - return 0; - } -} - -/*-------------------------------------------------------------------------*\ -* Incrementally decodes a string in quoted-printable -* A, B = qp(C, D) -* A is the decoded version of the largest prefix of C .. D that -* can be decoded without doubts. -* B has the remaining bytes of C .. D, *without* decoding. -\*-------------------------------------------------------------------------*/ -static int mime_global_unqp(lua_State *L) -{ - size_t asize = 0, isize = 0; - UC atom[3]; - const UC *input = (const UC *) luaL_optlstring(L, 1, NULL, &isize); - const UC *last = input + isize; - luaL_Buffer buffer; - /* end-of-input blackhole */ - if (!input) { - lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* make sure we don't confuse buffer stuff with arguments */ - lua_settop(L, 2); - /* process first part of input */ - luaL_buffinit(L, &buffer); - while (input < last) - asize = qpdecode(*input++, atom, asize, &buffer); - input = (const UC *) luaL_optlstring(L, 2, NULL, &isize); - /* if second part is nil, we are done */ - if (!input) { - luaL_pushresult(&buffer); - if (!(*lua_tostring(L, -1))) lua_pushnil(L); - lua_pushnil(L); - return 2; - } - /* otherwise process rest of input */ - last = input + isize; - while (input < last) - asize = qpdecode(*input++, atom, asize, &buffer); - luaL_pushresult(&buffer); - lua_pushlstring(L, (char *) atom, asize); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Incrementally breaks a quoted-printed string into lines -* A, n = qpwrp(l, B, length) -* A is a copy of B, broken into lines of at most 'length' bytes. -* 'l' is how many bytes are left for the first line of B. -* 'n' is the number of bytes left in the last line of A. -* There are two complications: lines can't be broken in the middle -* of an encoded =XX, and there might be line breaks already -\*-------------------------------------------------------------------------*/ -static int mime_global_qpwrp(lua_State *L) -{ - size_t size = 0; - int left = (int) luaL_checknumber(L, 1); - const UC *input = (const UC *) luaL_optlstring(L, 2, NULL, &size); - const UC *last = input + size; - int length = (int) luaL_optnumber(L, 3, 76); - luaL_Buffer buffer; - /* end-of-input blackhole */ - if (!input) { - if (left < length) lua_pushstring(L, EQCRLF); - else lua_pushnil(L); - lua_pushnumber(L, length); - return 2; - } - /* process all input */ - luaL_buffinit(L, &buffer); - while (input < last) { - switch (*input) { - case '\r': - break; - case '\n': - left = length; - luaL_addstring(&buffer, CRLF); - break; - case '=': - if (left <= 3) { - left = length; - luaL_addstring(&buffer, EQCRLF); - } - luaL_addchar(&buffer, *input); - left--; - break; - default: - if (left <= 1) { - left = length; - luaL_addstring(&buffer, EQCRLF); - } - luaL_addchar(&buffer, *input); - left--; - break; - } - input++; - } - luaL_pushresult(&buffer); - lua_pushnumber(L, left); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Here is what we do: \n, and \r are considered candidates for line -* break. We issue *one* new line marker if any of them is seen alone, or -* followed by a different one. That is, \n\n and \r\r will issue two -* end of line markers each, but \r\n, \n\r etc will only issue *one* -* marker. This covers Mac OS, Mac OS X, VMS, Unix and DOS, as well as -* probably other more obscure conventions. -* -* c is the current character being processed -* last is the previous character -\*-------------------------------------------------------------------------*/ -#define eolcandidate(c) (c == '\r' || c == '\n') -static int eolprocess(int c, int last, const char *marker, - luaL_Buffer *buffer) -{ - if (eolcandidate(c)) { - if (eolcandidate(last)) { - if (c == last) luaL_addstring(buffer, marker); - return 0; - } else { - luaL_addstring(buffer, marker); - return c; - } - } else { - luaL_addchar(buffer, (char) c); - return 0; - } -} - -/*-------------------------------------------------------------------------*\ -* Converts a string to uniform EOL convention. -* A, n = eol(o, B, marker) -* A is the converted version of the largest prefix of B that can be -* converted unambiguously. 'o' is the context returned by the previous -* call. 'n' is the new context. -\*-------------------------------------------------------------------------*/ -static int mime_global_eol(lua_State *L) -{ - int ctx = luaL_checkinteger(L, 1); - size_t isize = 0; - const char *input = luaL_optlstring(L, 2, NULL, &isize); - const char *last = input + isize; - const char *marker = luaL_optstring(L, 3, CRLF); - luaL_Buffer buffer; - luaL_buffinit(L, &buffer); - /* end of input blackhole */ - if (!input) { - lua_pushnil(L); - lua_pushnumber(L, 0); - return 2; - } - /* process all input */ - while (input < last) - ctx = eolprocess(*input++, ctx, marker, &buffer); - luaL_pushresult(&buffer); - lua_pushnumber(L, ctx); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Takes one byte and stuff it if needed. -\*-------------------------------------------------------------------------*/ -static size_t dot(int c, size_t state, luaL_Buffer *buffer) -{ - luaL_addchar(buffer, (char) c); - switch (c) { - case '\r': - return 1; - case '\n': - return (state == 1)? 2: 0; - case '.': - if (state == 2) - luaL_addchar(buffer, '.'); - default: - return 0; - } -} - -/*-------------------------------------------------------------------------*\ -* Incrementally applies smtp stuffing to a string -* A, n = dot(l, D) -\*-------------------------------------------------------------------------*/ -static int mime_global_dot(lua_State *L) -{ - size_t isize = 0, state = (size_t) luaL_checknumber(L, 1); - const char *input = luaL_optlstring(L, 2, NULL, &isize); - const char *last = input + isize; - luaL_Buffer buffer; - /* end-of-input blackhole */ - if (!input) { - lua_pushnil(L); - lua_pushnumber(L, 2); - return 2; - } - /* process all input */ - luaL_buffinit(L, &buffer); - while (input < last) - state = dot(*input++, state, &buffer); - luaL_pushresult(&buffer); - lua_pushnumber(L, (lua_Number) state); - return 2; -} - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.h b/Build/source/texk/web2c/luatexdir/luasocket/src/mime.h deleted file mode 100644 index 99968a55d17..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef MIME_H -#define MIME_H -/*=========================================================================*\ -* Core MIME support -* LuaSocket toolkit -* -* This module provides functions to implement transfer content encodings -* and formatting conforming to RFC 2045. It is used by mime.lua, which -* provide a higher level interface to this functionality. -\*=========================================================================*/ -#include "lua.h" - -/*-------------------------------------------------------------------------*\ -* Current MIME library version -\*-------------------------------------------------------------------------*/ -#define MIME_VERSION "MIME 1.0.3" -#define MIME_COPYRIGHT "Copyright (C) 2004-2013 Diego Nehab" -#define MIME_AUTHORS "Diego Nehab" - -/*-------------------------------------------------------------------------*\ -* This macro prefixes all exported API functions -\*-------------------------------------------------------------------------*/ -#ifndef MIME_API -#define MIME_API extern -#endif - -MIME_API int luaopen_mime_core(lua_State *L); - -#endif /* MIME_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/mime.lua deleted file mode 100644 index d6400965333..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.lua +++ /dev/null @@ -1,90 +0,0 @@ ------------------------------------------------------------------------------ --- MIME support for the Lua language. --- Author: Diego Nehab --- Conforming to RFCs 2045-2049 ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ --- Declare module and import dependencies ------------------------------------------------------------------------------ -local base = _G -local ltn12 = ltn12 or require("ltn12") -local mime = require("mime.core") -local io = require("io") -local string = require("string") -local _M = mime - --- encode, decode and wrap algorithm tables -local encodet, decodet, wrapt = {},{},{} - -_M.encodet = encodet -_M.decodet = decodet -_M.wrapt = wrapt - --- creates a function that chooses a filter by name from a given table -local function choose(table) - return function(name, opt1, opt2) - if base.type(name) ~= "string" then - name, opt1, opt2 = "default", name, opt1 - end - local f = table[name or "nil"] - if not f then - base.error("unknown key (" .. base.tostring(name) .. ")", 3) - else return f(opt1, opt2) end - end -end - --- define the encoding filters -encodet['base64'] = function() - return ltn12.filter.cycle(_M.b64, "") -end - -encodet['quoted-printable'] = function(mode) - return ltn12.filter.cycle(_M.qp, "", - (mode == "binary") and "=0D=0A" or "\r\n") -end - --- define the decoding filters -decodet['base64'] = function() - return ltn12.filter.cycle(_M.unb64, "") -end - -decodet['quoted-printable'] = function() - return ltn12.filter.cycle(_M.unqp, "") -end - -local function format(chunk) - if chunk then - if chunk == "" then return "''" - else return string.len(chunk) end - else return "nil" end -end - --- define the line-wrap filters -wrapt['text'] = function(length) - length = length or 76 - return ltn12.filter.cycle(_M.wrp, length, length) -end -wrapt['base64'] = wrapt['text'] -wrapt['default'] = wrapt['text'] - -wrapt['quoted-printable'] = function() - return ltn12.filter.cycle(_M.qpwrp, 76, 76) -end - --- function that choose the encoding, decoding or wrap algorithm -_M.encode = choose(encodet) -_M.decode = choose(decodet) -_M.wrap = choose(wrapt) - --- define the end-of-line normalization filter -function _M.normalize(marker) - return ltn12.filter.cycle(_M.eol, 0, marker) -end - --- high level stuffing filter -function _M.stuff() - return ltn12.filter.cycle(_M.dot, 2) -end -_G['mime'] = mime -return _M
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/mime.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mime.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/mime_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/mime_lua.c deleted file mode 100644 index ae407a961ce..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/mime_lua.c +++ /dev/null @@ -1,152 +0,0 @@ -/* - * This file is generated with xxd -i and bit of bash script. -*/ -#include "lua.h" -#include "lauxlib.h" - -int luatex_mime_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x74, - 0x6e, 0x31, 0x32, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x20, - 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, - 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x6d, 0x69, 0x6d, 0x65, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x69, 0x6f, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, - 0x28, 0x22, 0x69, 0x6f, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x3d, 0x20, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, - 0x20, 0x3d, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x2c, 0x20, 0x64, - 0x65, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x2c, 0x20, 0x77, 0x72, 0x61, 0x70, - 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x2c, 0x7b, 0x7d, 0x2c, 0x7b, 0x7d, - 0x0a, 0x5f, 0x4d, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x20, - 0x3d, 0x20, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x0a, 0x5f, 0x4d, - 0x2e, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x64, - 0x65, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x0a, 0x5f, 0x4d, 0x2e, 0x77, 0x72, - 0x61, 0x70, 0x74, 0x20, 0x20, 0x20, 0x3d, 0x20, 0x77, 0x72, 0x61, 0x70, - 0x74, 0x20, 0x20, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x63, 0x68, 0x6f, 0x6f, 0x73, - 0x65, 0x28, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, - 0x70, 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x6e, 0x61, 0x6d, 0x65, - 0x29, 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, - 0x20, 0x6f, 0x70, 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x20, - 0x3d, 0x20, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x2c, - 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x31, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x66, 0x20, 0x3d, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5b, - 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x6e, 0x69, 0x6c, - 0x22, 0x5d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x66, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x28, 0x22, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x20, 0x6b, 0x65, - 0x79, 0x20, 0x28, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x74, 0x6f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x6e, 0x61, - 0x6d, 0x65, 0x29, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x29, 0x22, 0x2c, 0x20, - 0x33, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, - 0x28, 0x6f, 0x70, 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x29, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x74, - 0x5b, 0x27, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x27, 0x5d, 0x20, 0x3d, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, - 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, - 0x63, 0x79, 0x63, 0x6c, 0x65, 0x28, 0x5f, 0x4d, 0x2e, 0x62, 0x36, 0x34, - 0x2c, 0x20, 0x22, 0x22, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, - 0x63, 0x6f, 0x64, 0x65, 0x74, 0x5b, 0x27, 0x71, 0x75, 0x6f, 0x74, 0x65, - 0x64, 0x2d, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x27, - 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, 0x65, - 0x28, 0x5f, 0x4d, 0x2e, 0x71, 0x70, 0x2c, 0x20, 0x22, 0x22, 0x2c, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x28, 0x6d, 0x6f, 0x64, - 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, - 0x22, 0x29, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x3d, 0x30, 0x44, 0x3d, - 0x30, 0x41, 0x22, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, - 0x22, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x64, 0x65, 0x63, 0x6f, 0x64, - 0x65, 0x74, 0x5b, 0x27, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x27, 0x5d, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x28, 0x5f, 0x4d, 0x2e, 0x75, - 0x6e, 0x62, 0x36, 0x34, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x5b, 0x27, 0x71, - 0x75, 0x6f, 0x74, 0x65, 0x64, 0x2d, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x27, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, 0x65, - 0x28, 0x5f, 0x4d, 0x2e, 0x75, 0x6e, 0x71, 0x70, 0x2c, 0x20, 0x22, 0x22, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x3d, 0x3d, - 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x22, 0x27, 0x27, 0x22, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6c, 0x65, 0x6e, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, 0x6e, 0x69, 0x6c, 0x22, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x77, 0x72, 0x61, - 0x70, 0x74, 0x5b, 0x27, 0x74, 0x65, 0x78, 0x74, 0x27, 0x5d, 0x20, 0x3d, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x20, 0x6f, 0x72, 0x20, 0x37, 0x36, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, - 0x65, 0x28, 0x5f, 0x4d, 0x2e, 0x77, 0x72, 0x70, 0x2c, 0x20, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x2c, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x77, 0x72, 0x61, 0x70, 0x74, 0x5b, - 0x27, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x27, 0x5d, 0x20, 0x3d, 0x20, - 0x77, 0x72, 0x61, 0x70, 0x74, 0x5b, 0x27, 0x74, 0x65, 0x78, 0x74, 0x27, - 0x5d, 0x0a, 0x77, 0x72, 0x61, 0x70, 0x74, 0x5b, 0x27, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x27, 0x5d, 0x20, 0x3d, 0x20, 0x77, 0x72, 0x61, - 0x70, 0x74, 0x5b, 0x27, 0x74, 0x65, 0x78, 0x74, 0x27, 0x5d, 0x0a, 0x77, - 0x72, 0x61, 0x70, 0x74, 0x5b, 0x27, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x64, - 0x2d, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x27, 0x5d, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x28, 0x5f, 0x4d, 0x2e, 0x71, - 0x70, 0x77, 0x72, 0x70, 0x2c, 0x20, 0x37, 0x36, 0x2c, 0x20, 0x37, 0x36, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x4d, 0x2e, 0x65, 0x6e, 0x63, - 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x68, 0x6f, 0x6f, 0x73, 0x65, - 0x28, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x74, 0x29, 0x0a, 0x5f, 0x4d, - 0x2e, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x20, 0x63, 0x68, - 0x6f, 0x6f, 0x73, 0x65, 0x28, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x74, - 0x29, 0x0a, 0x5f, 0x4d, 0x2e, 0x77, 0x72, 0x61, 0x70, 0x20, 0x3d, 0x20, - 0x63, 0x68, 0x6f, 0x6f, 0x73, 0x65, 0x28, 0x77, 0x72, 0x61, 0x70, 0x74, - 0x29, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, - 0x4d, 0x2e, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x28, - 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, - 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x79, 0x63, 0x6c, - 0x65, 0x28, 0x5f, 0x4d, 0x2e, 0x65, 0x6f, 0x6c, 0x2c, 0x20, 0x30, 0x2c, - 0x20, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x29, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, - 0x2e, 0x73, 0x74, 0x75, 0x66, 0x66, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x74, 0x6e, 0x31, - 0x32, 0x2e, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x79, 0x63, - 0x6c, 0x65, 0x28, 0x5f, 0x4d, 0x2e, 0x64, 0x6f, 0x74, 0x2c, 0x20, 0x32, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x47, 0x5b, 0x27, 0x6d, 0x69, - 0x6d, 0x65, 0x27, 0x5d, 0x20, 0x3d, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x0a, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d,0x0}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/options.c b/Build/source/texk/web2c/luatexdir/luasocket/src/options.c deleted file mode 100644 index fabfe8ce3e6..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/options.c +++ /dev/null @@ -1,374 +0,0 @@ -/*=========================================================================*\ -* Common option interface -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> - -#include "lauxlib.h" - -#include "auxiliar.h" -#include "options.h" -#include "inet.h" - - -/*=========================================================================*\ -* Internal functions prototypes -\*=========================================================================*/ -static int opt_setmembership(lua_State *L, p_socket ps, int level, int name); -static int opt_ip6_setmembership(lua_State *L, p_socket ps, int level, int name); -static int opt_setboolean(lua_State *L, p_socket ps, int level, int name); -static int opt_getboolean(lua_State *L, p_socket ps, int level, int name); -static int opt_setint(lua_State *L, p_socket ps, int level, int name); -static int opt_getint(lua_State *L, p_socket ps, int level, int name); -static int opt_set(lua_State *L, p_socket ps, int level, int name, - void *val, int len); -static int opt_get(lua_State *L, p_socket ps, int level, int name, - void *val, int* len); - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Calls appropriate option handler -\*-------------------------------------------------------------------------*/ -int opt_meth_setoption(lua_State *L, p_opt opt, p_socket ps) -{ - const char *name = luaL_checkstring(L, 2); /* obj, name, ... */ - while (opt->name && strcmp(name, opt->name)) - opt++; - if (!opt->func) { - char msg[57]; - sprintf(msg, "unsupported option `%.35s'", name); - luaL_argerror(L, 2, msg); - } - return opt->func(L, ps); -} - -int opt_meth_getoption(lua_State *L, p_opt opt, p_socket ps) -{ - const char *name = luaL_checkstring(L, 2); /* obj, name, ... */ - while (opt->name && strcmp(name, opt->name)) - opt++; - if (!opt->func) { - char msg[57]; - sprintf(msg, "unsupported option `%.35s'", name); - luaL_argerror(L, 2, msg); - } - return opt->func(L, ps); -} - -/* enables reuse of local address */ -int opt_set_reuseaddr(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, SOL_SOCKET, SO_REUSEADDR); -} - -int opt_get_reuseaddr(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, SOL_SOCKET, SO_REUSEADDR); -} - -/* enables reuse of local port */ -int opt_set_reuseport(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, SOL_SOCKET, SO_REUSEPORT); -} - -int opt_get_reuseport(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, SOL_SOCKET, SO_REUSEPORT); -} - -/* disables the Naggle algorithm */ -int opt_set_tcp_nodelay(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, IPPROTO_TCP, TCP_NODELAY); -} - -int opt_get_tcp_nodelay(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, IPPROTO_TCP, TCP_NODELAY); -} - -int opt_set_keepalive(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, SOL_SOCKET, SO_KEEPALIVE); -} - -int opt_get_keepalive(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, SOL_SOCKET, SO_KEEPALIVE); -} - -int opt_set_dontroute(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, SOL_SOCKET, SO_DONTROUTE); -} - -int opt_get_dontroute(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, SOL_SOCKET, SO_DONTROUTE); -} - -int opt_set_broadcast(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, SOL_SOCKET, SO_BROADCAST); -} - -int opt_get_broadcast(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, SOL_SOCKET, SO_BROADCAST); -} - -int opt_set_ip6_unicast_hops(lua_State *L, p_socket ps) -{ - return opt_setint(L, ps, IPPROTO_IPV6, IPV6_UNICAST_HOPS); -} - -int opt_get_ip6_unicast_hops(lua_State *L, p_socket ps) -{ - return opt_getint(L, ps, IPPROTO_IPV6, IPV6_UNICAST_HOPS); -} - -int opt_set_ip6_multicast_hops(lua_State *L, p_socket ps) -{ - return opt_setint(L, ps, IPPROTO_IPV6, IPV6_MULTICAST_HOPS); -} - -int opt_get_ip6_multicast_hops(lua_State *L, p_socket ps) -{ - return opt_getint(L, ps, IPPROTO_IPV6, IPV6_MULTICAST_HOPS); -} - -int opt_set_ip_multicast_loop(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, IPPROTO_IP, IP_MULTICAST_LOOP); -} - -int opt_get_ip_multicast_loop(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, IPPROTO_IP, IP_MULTICAST_LOOP); -} - -int opt_set_ip6_multicast_loop(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, IPPROTO_IPV6, IPV6_MULTICAST_LOOP); -} - -int opt_get_ip6_multicast_loop(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, IPPROTO_IPV6, IPV6_MULTICAST_LOOP); -} - -int opt_set_linger(lua_State *L, p_socket ps) -{ - struct linger li; /* obj, name, table */ - if (!lua_istable(L, 3)) auxiliar_typeerror(L,3,lua_typename(L, LUA_TTABLE)); - lua_pushstring(L, "on"); - lua_gettable(L, 3); - if (!lua_isboolean(L, -1)) - luaL_argerror(L, 3, "boolean 'on' field expected"); - li.l_onoff = (u_short) lua_toboolean(L, -1); - lua_pushstring(L, "timeout"); - lua_gettable(L, 3); - if (!lua_isnumber(L, -1)) - luaL_argerror(L, 3, "number 'timeout' field expected"); - li.l_linger = (u_short) lua_tonumber(L, -1); - return opt_set(L, ps, SOL_SOCKET, SO_LINGER, (char *) &li, sizeof(li)); -} - -int opt_get_linger(lua_State *L, p_socket ps) -{ - struct linger li; /* obj, name */ - int len = sizeof(li); - int err = opt_get(L, ps, SOL_SOCKET, SO_LINGER, (char *) &li, &len); - if (err) - return err; - lua_newtable(L); - lua_pushboolean(L, li.l_onoff); - lua_setfield(L, -2, "on"); - lua_pushinteger(L, li.l_linger); - lua_setfield(L, -2, "timeout"); - return 1; -} - -int opt_set_ip_multicast_ttl(lua_State *L, p_socket ps) -{ - return opt_setint(L, ps, IPPROTO_IP, IP_MULTICAST_TTL); -} - -int opt_set_ip_multicast_if(lua_State *L, p_socket ps) -{ - const char *address = luaL_checkstring(L, 3); /* obj, name, ip */ - struct in_addr val; - val.s_addr = htonl(INADDR_ANY); - if (strcmp(address, "*") && !inet_aton(address, &val)) - luaL_argerror(L, 3, "ip expected"); - return opt_set(L, ps, IPPROTO_IP, IP_MULTICAST_IF, - (char *) &val, sizeof(val)); -} - -int opt_get_ip_multicast_if(lua_State *L, p_socket ps) -{ - struct in_addr val; - socklen_t len = sizeof(val); - if (getsockopt(*ps, IPPROTO_IP, IP_MULTICAST_IF, (char *) &val, &len) < 0) { - lua_pushnil(L); - lua_pushstring(L, "getsockopt failed"); - return 2; - } - lua_pushstring(L, inet_ntoa(val)); - return 1; -} - -int opt_set_ip_add_membership(lua_State *L, p_socket ps) -{ - return opt_setmembership(L, ps, IPPROTO_IP, IP_ADD_MEMBERSHIP); -} - -int opt_set_ip_drop_membersip(lua_State *L, p_socket ps) -{ - return opt_setmembership(L, ps, IPPROTO_IP, IP_DROP_MEMBERSHIP); -} - -int opt_set_ip6_add_membership(lua_State *L, p_socket ps) -{ - return opt_ip6_setmembership(L, ps, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP); -} - -int opt_set_ip6_drop_membersip(lua_State *L, p_socket ps) -{ - return opt_ip6_setmembership(L, ps, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP); -} - -int opt_get_ip6_v6only(lua_State *L, p_socket ps) -{ - return opt_getboolean(L, ps, IPPROTO_IPV6, IPV6_V6ONLY); -} - -int opt_set_ip6_v6only(lua_State *L, p_socket ps) -{ - return opt_setboolean(L, ps, IPPROTO_IPV6, IPV6_V6ONLY); -} - -/*=========================================================================*\ -* Auxiliar functions -\*=========================================================================*/ -static int opt_setmembership(lua_State *L, p_socket ps, int level, int name) -{ - struct ip_mreq val; /* obj, name, table */ - if (!lua_istable(L, 3)) auxiliar_typeerror(L,3,lua_typename(L, LUA_TTABLE)); - lua_pushstring(L, "multiaddr"); - lua_gettable(L, 3); - if (!lua_isstring(L, -1)) - luaL_argerror(L, 3, "string 'multiaddr' field expected"); - if (!inet_aton(lua_tostring(L, -1), &val.imr_multiaddr)) - luaL_argerror(L, 3, "invalid 'multiaddr' ip address"); - lua_pushstring(L, "interface"); - lua_gettable(L, 3); - if (!lua_isstring(L, -1)) - luaL_argerror(L, 3, "string 'interface' field expected"); - val.imr_interface.s_addr = htonl(INADDR_ANY); - if (strcmp(lua_tostring(L, -1), "*") && - !inet_aton(lua_tostring(L, -1), &val.imr_interface)) - luaL_argerror(L, 3, "invalid 'interface' ip address"); - return opt_set(L, ps, level, name, (char *) &val, sizeof(val)); -} - -static int opt_ip6_setmembership(lua_State *L, p_socket ps, int level, int name) -{ - struct ipv6_mreq val; /* obj, opt-name, table */ - memset(&val, 0, sizeof(val)); - if (!lua_istable(L, 3)) auxiliar_typeerror(L,3,lua_typename(L, LUA_TTABLE)); - lua_pushstring(L, "multiaddr"); - lua_gettable(L, 3); - if (!lua_isstring(L, -1)) - luaL_argerror(L, 3, "string 'multiaddr' field expected"); - if (!inet_pton(AF_INET6, lua_tostring(L, -1), &val.ipv6mr_multiaddr)) - luaL_argerror(L, 3, "invalid 'multiaddr' ip address"); - lua_pushstring(L, "interface"); - lua_gettable(L, 3); - /* By default we listen to interface on default route - * (sigh). However, interface= can override it. We should - * support either number, or name for it. Waiting for - * windows port of if_nametoindex */ - if (!lua_isnil(L, -1)) { - if (lua_isnumber(L, -1)) { - val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1); - } else - luaL_argerror(L, -1, "number 'interface' field expected"); - } - return opt_set(L, ps, level, name, (char *) &val, sizeof(val)); -} - -static -int opt_get(lua_State *L, p_socket ps, int level, int name, void *val, int* len) -{ - socklen_t socklen = *len; - if (getsockopt(*ps, level, name, (char *) val, &socklen) < 0) { - lua_pushnil(L); - lua_pushstring(L, "getsockopt failed"); - return 2; - } - *len = socklen; - return 0; -} - -static -int opt_set(lua_State *L, p_socket ps, int level, int name, void *val, int len) -{ - if (setsockopt(*ps, level, name, (char *) val, len) < 0) { - lua_pushnil(L); - lua_pushstring(L, "setsockopt failed"); - return 2; - } - lua_pushnumber(L, 1); - return 1; -} - -static int opt_getboolean(lua_State *L, p_socket ps, int level, int name) -{ - int val = 0; - int len = sizeof(val); - int err = opt_get(L, ps, level, name, (char *) &val, &len); - if (err) - return err; - lua_pushboolean(L, val); - return 1; -} - -int opt_get_error(lua_State *L, p_socket ps) -{ - int val = 0; - socklen_t len = sizeof(val); - if (getsockopt(*ps, SOL_SOCKET, SO_ERROR, (char *) &val, &len) < 0) { - lua_pushnil(L); - lua_pushstring(L, "getsockopt failed"); - return 2; - } - lua_pushstring(L, socket_strerror(val)); - return 1; -} - -static int opt_setboolean(lua_State *L, p_socket ps, int level, int name) -{ - int val = auxiliar_checkboolean(L, 3); /* obj, name, bool */ - return opt_set(L, ps, level, name, (char *) &val, sizeof(val)); -} - -static int opt_getint(lua_State *L, p_socket ps, int level, int name) -{ - int val = 0; - int len = sizeof(val); - int err = opt_get(L, ps, level, name, (char *) &val, &len); - if (err) - return err; - lua_pushnumber(L, val); - return 1; -} - -static int opt_setint(lua_State *L, p_socket ps, int level, int name) -{ - int val = (int) lua_tonumber(L, 3); /* obj, name, int */ - return opt_set(L, ps, level, name, (char *) &val, sizeof(val)); -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/options.h b/Build/source/texk/web2c/luatexdir/luasocket/src/options.h deleted file mode 100644 index 19ba0dfc2c3..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/options.h +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef OPTIONS_H -#define OPTIONS_H -/*=========================================================================*\ -* Common option interface -* LuaSocket toolkit -* -* This module provides a common interface to socket options, used mainly by -* modules UDP and TCP. -\*=========================================================================*/ - -#include "lua.h" -#include "socket.h" - -/* option registry */ -typedef struct t_opt { - const char *name; - int (*func)(lua_State *L, p_socket ps); -} t_opt; -typedef t_opt *p_opt; - -/* supported options for setoption */ -int opt_set_dontroute(lua_State *L, p_socket ps); -int opt_set_broadcast(lua_State *L, p_socket ps); -int opt_set_tcp_nodelay(lua_State *L, p_socket ps); -int opt_set_keepalive(lua_State *L, p_socket ps); -int opt_set_linger(lua_State *L, p_socket ps); -int opt_set_reuseaddr(lua_State *L, p_socket ps); -int opt_set_reuseport(lua_State *L, p_socket ps); -int opt_set_ip_multicast_if(lua_State *L, p_socket ps); -int opt_set_ip_multicast_ttl(lua_State *L, p_socket ps); -int opt_set_ip_multicast_loop(lua_State *L, p_socket ps); -int opt_set_ip_add_membership(lua_State *L, p_socket ps); -int opt_set_ip_drop_membersip(lua_State *L, p_socket ps); -int opt_set_ip6_unicast_hops(lua_State *L, p_socket ps); -int opt_set_ip6_multicast_hops(lua_State *L, p_socket ps); -int opt_set_ip6_multicast_loop(lua_State *L, p_socket ps); -int opt_set_ip6_add_membership(lua_State *L, p_socket ps); -int opt_set_ip6_drop_membersip(lua_State *L, p_socket ps); -int opt_set_ip6_v6only(lua_State *L, p_socket ps); - -/* supported options for getoption */ -int opt_get_dontroute(lua_State *L, p_socket ps); -int opt_get_broadcast(lua_State *L, p_socket ps); -int opt_get_reuseaddr(lua_State *L, p_socket ps); -int opt_get_reuseport(lua_State *L, p_socket ps); -int opt_get_tcp_nodelay(lua_State *L, p_socket ps); -int opt_get_keepalive(lua_State *L, p_socket ps); -int opt_get_linger(lua_State *L, p_socket ps); -int opt_get_ip_multicast_loop(lua_State *L, p_socket ps); -int opt_get_ip_multicast_if(lua_State *L, p_socket ps); -int opt_get_error(lua_State *L, p_socket ps); -int opt_get_ip6_multicast_loop(lua_State *L, p_socket ps); -int opt_get_ip6_multicast_hops(lua_State *L, p_socket ps); -int opt_get_ip6_unicast_hops(lua_State *L, p_socket ps); -int opt_get_ip6_v6only(lua_State *L, p_socket ps); -int opt_get_reuseport(lua_State *L, p_socket ps); - -/* invokes the appropriate option handler */ -int opt_meth_setoption(lua_State *L, p_opt opt, p_socket ps); -int opt_meth_getoption(lua_State *L, p_opt opt, p_socket ps); - -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/pierror.h b/Build/source/texk/web2c/luatexdir/luasocket/src/pierror.h deleted file mode 100644 index cb773ab7f40..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/pierror.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef PIERROR_H -#define PIERROR_H -/*=========================================================================*\ -* Error messages -* Defines platform independent error messages -\*=========================================================================*/ - -#define PIE_HOST_NOT_FOUND "host not found" -#define PIE_ADDRINUSE "address already in use" -#define PIE_ISCONN "already connected" -#define PIE_ACCESS "permission denied" -#define PIE_CONNREFUSED "connection refused" -#define PIE_CONNABORTED "closed" -#define PIE_CONNRESET "closed" -#define PIE_TIMEDOUT "timeout" -#define PIE_AGAIN "temporary failure in name resolution" -#define PIE_BADFLAGS "invalid value for ai_flags" -#define PIE_BADHINTS "invalid value for hints" -#define PIE_FAIL "non-recoverable failure in name resolution" -#define PIE_FAMILY "ai_family not supported" -#define PIE_MEMORY "memory allocation failure" -#define PIE_NONAME "host or service not provided, or not known" -#define PIE_OVERFLOW "argument buffer overflow" -#define PIE_PROTOCOL "resolved protocol is unknown" -#define PIE_SERVICE "service not supported for socket type" -#define PIE_SOCKTYPE "ai_socktype not supported" - -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/select.c b/Build/source/texk/web2c/luatexdir/luasocket/src/select.c deleted file mode 100644 index 9d133b7ab46..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/select.c +++ /dev/null @@ -1,220 +0,0 @@ -/*=========================================================================*\ -* Select implementation -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "socket.h" -#include "timeout.h" -#include "select.h" - -/*=========================================================================*\ -* Internal function prototypes. -\*=========================================================================*/ -static t_socket getfd(lua_State *L); -static int dirty(lua_State *L); -static void collect_fd(lua_State *L, int tab, int itab, - fd_set *set, t_socket *max_fd); -static int check_dirty(lua_State *L, int tab, int dtab, fd_set *set); -static void return_fd(lua_State *L, fd_set *set, t_socket max_fd, - int itab, int tab, int start); -static void make_assoc(lua_State *L, int tab); -static int global_select(lua_State *L); - -/* functions in library namespace */ -static luaL_Reg func[] = { - {"select", global_select}, - {NULL, NULL} -}; - -/*=========================================================================*\ -* Exported functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int select_open(lua_State *L) { - lua_pushstring(L, "_SETSIZE"); - lua_pushinteger(L, FD_SETSIZE); - lua_rawset(L, -3); - lua_pushstring(L, "_SOCKETINVALID"); - lua_pushinteger(L, SOCKET_INVALID); - lua_rawset(L, -3); - luaL_setfuncs(L, func, 0); - return 0; -} - -/*=========================================================================*\ -* Global Lua functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Waits for a set of sockets until a condition is met or timeout. -\*-------------------------------------------------------------------------*/ -static int global_select(lua_State *L) { - int rtab, wtab, itab, ret, ndirty; - t_socket max_fd = SOCKET_INVALID; - fd_set rset, wset; - t_timeout tm; - double t = luaL_optnumber(L, 3, -1); - FD_ZERO(&rset); FD_ZERO(&wset); - lua_settop(L, 3); - lua_newtable(L); itab = lua_gettop(L); - lua_newtable(L); rtab = lua_gettop(L); - lua_newtable(L); wtab = lua_gettop(L); - collect_fd(L, 1, itab, &rset, &max_fd); - collect_fd(L, 2, itab, &wset, &max_fd); - ndirty = check_dirty(L, 1, rtab, &rset); - t = ndirty > 0? 0.0: t; - timeout_init(&tm, t, -1); - timeout_markstart(&tm); - ret = socket_select(max_fd+1, &rset, &wset, NULL, &tm); - if (ret > 0 || ndirty > 0) { - return_fd(L, &rset, max_fd+1, itab, rtab, ndirty); - return_fd(L, &wset, max_fd+1, itab, wtab, 0); - make_assoc(L, rtab); - make_assoc(L, wtab); - return 2; - } else if (ret == 0) { - lua_pushstring(L, "timeout"); - return 3; - } else { - luaL_error(L, "select failed"); - return 3; - } -} - -/*=========================================================================*\ -* Internal functions -\*=========================================================================*/ -static t_socket getfd(lua_State *L) { - t_socket fd = SOCKET_INVALID; - lua_pushstring(L, "getfd"); - lua_gettable(L, -2); - if (!lua_isnil(L, -1)) { - lua_pushvalue(L, -2); - lua_call(L, 1, 1); - if (lua_isnumber(L, -1)) { - double numfd = lua_tonumber(L, -1); - fd = (numfd >= 0.0)? (t_socket) numfd: SOCKET_INVALID; - } - } - lua_pop(L, 1); - return fd; -} - -static int dirty(lua_State *L) { - int is = 0; - lua_pushstring(L, "dirty"); - lua_gettable(L, -2); - if (!lua_isnil(L, -1)) { - lua_pushvalue(L, -2); - lua_call(L, 1, 1); - is = lua_toboolean(L, -1); - } - lua_pop(L, 1); - return is; -} - -static void collect_fd(lua_State *L, int tab, int itab, - fd_set *set, t_socket *max_fd) { - int i = 1, n = 0; - /* nil is the same as an empty table */ - if (lua_isnil(L, tab)) return; - /* otherwise we need it to be a table */ - luaL_checktype(L, tab, LUA_TTABLE); - for ( ;; ) { - t_socket fd; - lua_pushnumber(L, i); - lua_gettable(L, tab); - if (lua_isnil(L, -1)) { - lua_pop(L, 1); - break; - } - /* getfd figures out if this is a socket */ - fd = getfd(L); - if (fd != SOCKET_INVALID) { - /* make sure we don't overflow the fd_set */ -#ifdef _WIN32 - if (n >= FD_SETSIZE) - luaL_argerror(L, tab, "too many sockets"); -#else - if (fd >= FD_SETSIZE) - luaL_argerror(L, tab, "descriptor too large for set size"); -#endif - FD_SET(fd, set); - n++; - /* keep track of the largest descriptor so far */ - if (*max_fd == SOCKET_INVALID || *max_fd < fd) - *max_fd = fd; - /* make sure we can map back from descriptor to the object */ - lua_pushnumber(L, (lua_Number) fd); - lua_pushvalue(L, -2); - lua_settable(L, itab); - } - lua_pop(L, 1); - i = i + 1; - } -} - -static int check_dirty(lua_State *L, int tab, int dtab, fd_set *set) { - int ndirty = 0, i = 1; - if (lua_isnil(L, tab)) - return 0; - for ( ;; ) { - t_socket fd; - lua_pushnumber(L, i); - lua_gettable(L, tab); - if (lua_isnil(L, -1)) { - lua_pop(L, 1); - break; - } - fd = getfd(L); - if (fd != SOCKET_INVALID && dirty(L)) { - lua_pushnumber(L, ++ndirty); - lua_pushvalue(L, -2); - lua_settable(L, dtab); - FD_CLR(fd, set); - } - lua_pop(L, 1); - i = i + 1; - } - return ndirty; -} - -static void return_fd(lua_State *L, fd_set *set, t_socket max_fd, - int itab, int tab, int start) { - t_socket fd; - for (fd = 0; fd < max_fd; fd++) { - if (FD_ISSET(fd, set)) { - lua_pushnumber(L, ++start); - lua_pushnumber(L, (lua_Number) fd); - lua_gettable(L, itab); - lua_settable(L, tab); - } - } -} - -static void make_assoc(lua_State *L, int tab) { - int i = 1, atab; - lua_newtable(L); atab = lua_gettop(L); - for ( ;; ) { - lua_pushnumber(L, i); - lua_gettable(L, tab); - if (!lua_isnil(L, -1)) { - lua_pushnumber(L, i); - lua_pushvalue(L, -2); - lua_settable(L, atab); - lua_pushnumber(L, i); - lua_settable(L, atab); - } else { - lua_pop(L, 1); - break; - } - i = i+1; - } -} - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/select.h b/Build/source/texk/web2c/luatexdir/luasocket/src/select.h deleted file mode 100644 index 8750200395a..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/select.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef SELECT_H -#define SELECT_H -/*=========================================================================*\ -* Select implementation -* LuaSocket toolkit -* -* Each object that can be passed to the select function has to export -* method getfd() which returns the descriptor to be passed to the -* underlying select function. Another method, dirty(), should return -* true if there is data ready for reading (required for buffered input). -\*=========================================================================*/ - -int select_open(lua_State *L); - -#endif /* SELECT_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/serial.c b/Build/source/texk/web2c/luatexdir/luasocket/src/serial.c deleted file mode 100644 index b666e61f939..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/serial.c +++ /dev/null @@ -1,180 +0,0 @@ -/*=========================================================================*\ -* Serial stream -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> - -#include "lua.h" -#include "lauxlib.h" - -#include "auxiliar.h" -#include "socket.h" -#include "options.h" -#include "unix.h" -#ifndef _WIN32 -#include <sys/un.h> -#endif -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> -/* -Reuses userdata definition from unix.h, since it is useful for all -stream-like objects. - -If we stored the serial path for use in error messages or userdata -printing, we might need our own userdata definition. - -Group usage is semi-inherited from unix.c, but unnecessary since we -have only one object type. -*/ - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -/*static int global_create(lua_State *L);*/ -/* static int meth_send(lua_State *L); */ -/* static int meth_receive(lua_State *L); */ -/* static int meth_close(lua_State *L); */ -/* static int meth_settimeout(lua_State *L); */ -/* static int meth_getfd(lua_State *L); */ -/* static int meth_setfd(lua_State *L); */ -/* static int meth_dirty(lua_State *L); */ -/* static int meth_getstats(lua_State *L); */ -/* static int meth_setstats(lua_State *L); */ - -/* serial object methods */ -/* static luaL_Reg serial_methods[] = { */ -/* {"__gc", meth_close}, */ -/* {"__tostring", auxiliar_tostring}, */ -/* {"close", meth_close}, */ -/* {"dirty", meth_dirty}, */ -/* {"getfd", meth_getfd}, */ -/* {"getstats", meth_getstats}, */ -/* {"setstats", meth_setstats}, */ -/* {"receive", meth_receive}, */ -/* {"send", meth_send}, */ -/* {"setfd", meth_setfd}, */ -/* {"settimeout", meth_settimeout}, */ -/* {NULL, NULL} */ -/* }; */ - -/*-------------------------------------------------------------------------*\ -* Initializes module (luatex extension, unused ) -\*-------------------------------------------------------------------------*/ -/* LUASOCKET_API int luaopen_socket_serial(lua_State *L) { */ -/* /\* create classes *\/ */ -/* auxiliar_newclass(L, "serial{client}", serial_methods); */ -/* /\* create class groups *\/ */ -/* auxiliar_add2group(L, "serial{client}", "serial{any}"); */ -/* lua_pushcfunction(L, global_create); */ -/* return 1; */ -/* } */ - -/*=========================================================================*\ -* Lua methods -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Just call buffered IO methods -\*-------------------------------------------------------------------------*/ -/* static int meth_send(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); */ -/* return buffer_meth_send(L, &un->buf); */ -/* } */ - -/* static int meth_receive(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); */ -/* return buffer_meth_receive(L, &un->buf); */ -/* } */ - -/* static int meth_getstats(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); */ -/* return buffer_meth_getstats(L, &un->buf); */ -/* } */ - -/* static int meth_setstats(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkclass(L, "serial{client}", 1); */ -/* return buffer_meth_setstats(L, &un->buf); */ -/* } */ - -/*-------------------------------------------------------------------------*\ -* Select support methods -\*-------------------------------------------------------------------------*/ -/* static int meth_getfd(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); */ -/* lua_pushnumber(L, (int) un->sock); */ -/* return 1; */ -/* } */ - -/* /\* this is very dangerous, but can be handy for those that are brave enough *\/ */ -/* static int meth_setfd(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); */ -/* un->sock = (t_socket) luaL_checknumber(L, 2); */ -/* return 0; */ -/* } */ - -/* static int meth_dirty(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); */ -/* lua_pushboolean(L, !buffer_isempty(&un->buf)); */ -/* return 1; */ -/* } */ - -/*-------------------------------------------------------------------------*\ -* Closes socket used by object -\*-------------------------------------------------------------------------*/ -/* static int meth_close(lua_State *L) */ -/* { */ -/* p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); */ -/* socket_destroy(&un->sock); */ -/* lua_pushnumber(L, 1); */ -/* return 1; */ -/* } */ - - -/*-------------------------------------------------------------------------*\ -* Just call tm methods -\*-------------------------------------------------------------------------*/ -/* static int meth_settimeout(lua_State *L) { */ -/* p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); */ -/* return timeout_meth_settimeout(L, &un->tm); */ -/* } */ - -/*=========================================================================*\ -* Library functions -\*=========================================================================*/ - - -/*-------------------------------------------------------------------------*\ -* Creates a serial object -\*-------------------------------------------------------------------------*/ -/* static int global_create(lua_State *L) { */ -/* const char* path = luaL_checkstring(L, 1); */ - -/* /\* allocate unix object *\/ */ -/* p_unix un = (p_unix) lua_newuserdata(L, sizeof(t_unix)); */ - -/* /\* open serial device *\/ */ -/* #if defined(_WIN32) */ -/* t_socket sock = open(path, O_RDWR); */ -/* #else */ -/* t_socket sock = open(path, O_NOCTTY|O_RDWR); */ -/* #endif */ - -/* /\*printf("open %s on %d\n", path, sock);*\/ */ - -/* if (sock < 0) { */ -/* lua_pushnil(L); */ -/* lua_pushstring(L, socket_strerror(errno)); */ -/* lua_pushnumber(L, errno); */ -/* return 3; */ -/* } */ -/* /\* set its type as client object *\/ */ -/* auxiliar_setclass(L, "serial{client}", -1); */ -/* /\* initialize remaining structure fields *\/ */ -/* socket_setnonblocking(&sock); */ -/* un->sock = sock; */ -/* io_init(&un->io, (p_send) socket_write, (p_recv) socket_read, */ -/* (p_error) socket_ioerror, &un->sock); */ -/* timeout_init(&un->tm, -1, -1); */ -/* buffer_init(&un->buf, &un->io, &un->tm); */ -/* return 1; */ -/* } */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/smtp.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/smtp.lua deleted file mode 100644 index 17616ff2308..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/smtp.lua +++ /dev/null @@ -1,183 +0,0 @@ -local base = _G -local coroutine = require("coroutine") -local string = require("string") -local math = require("math") -local os = require("os") -local socket = socket or require("socket") ; -local tp = socket.tp or require("socket.tp"); -local ltn12 = ltn12 or require("ltn12"); -local headers = socket.headers or require("socket.headers"); -local mime = mime or require("mime"); -socket.smtp = {} -local _M = socket.smtp -module("socket.smtp") -_M.TIMEOUT = 60 -_M.SERVER = "localhost" -_M.PORT = 25 -_M.DOMAIN = os.getenv("SERVER_NAME") or "localhost" -_M.ZONE = "-0000" -local metat = { __index = {} } -function metat.__index:greet(domain) - self.try(self.tp:check("2..")) - self.try(self.tp:command("EHLO", domain or _M.DOMAIN)) - return socket.skip(1, self.try(self.tp:check("2.."))) -end -function metat.__index:mail(from) - self.try(self.tp:command("MAIL", "FROM:" .. from)) - return self.try(self.tp:check("2..")) -end -function metat.__index:rcpt(to) - self.try(self.tp:command("RCPT", "TO:" .. to)) - return self.try(self.tp:check("2..")) -end -function metat.__index:data(src, step) - self.try(self.tp:command("DATA")) - self.try(self.tp:check("3..")) - self.try(self.tp:source(src, step)) - self.try(self.tp:send("\r\n.\r\n")) - return self.try(self.tp:check("2..")) -end -function metat.__index:quit() - self.try(self.tp:command("QUIT")) - return self.try(self.tp:check("2..")) -end -function metat.__index:close() - return self.tp:close() -end -function metat.__index:login(user, password) - self.try(self.tp:command("AUTH", "LOGIN")) - self.try(self.tp:check("3..")) - self.try(self.tp:send(mime.b64(user) .. "\r\n")) - self.try(self.tp:check("3..")) - self.try(self.tp:send(mime.b64(password) .. "\r\n")) - return self.try(self.tp:check("2..")) -end -function metat.__index:plain(user, password) - local auth = "PLAIN " .. mime.b64("\0" .. user .. "\0" .. password) - self.try(self.tp:command("AUTH", auth)) - return self.try(self.tp:check("2..")) -end -function metat.__index:auth(user, password, ext) - if not user or not password then return 1 end - if string.find(ext, "AUTH[^\n]+LOGIN") then - return self:login(user, password) - elseif string.find(ext, "AUTH[^\n]+PLAIN") then - return self:plain(user, password) - else - self.try(nil, "authentication not supported") - end -end -function metat.__index:send(mailt) - self:mail(mailt.from) - if base.type(mailt.rcpt) == "table" then - for i,v in base.ipairs(mailt.rcpt) do - self:rcpt(v) - end - else - self:rcpt(mailt.rcpt) - end - self:data(ltn12.source.chain(mailt.source, mime.stuff()), mailt.step) -end -function _M.open(server, port, create) - local tp = socket.try(tp.connect(server or _M.SERVER, port or _M.PORT, - _M.TIMEOUT, create)) - local s = base.setmetatable({tp = tp}, metat) - s.try = socket.newtry(function() - s:close() - end) - return s -end -local function lower_headers(headers) - local lower = {} - for i,v in base.pairs(headers or lower) do - lower[string.lower(i)] = v - end - return lower -end -local seqno = 0 -local function newboundary() - seqno = seqno + 1 - return string.format('%s%05d==%05u', os.date('%d%m%Y%H%M%S'), - math.random(0, 99999), seqno) -end -local send_message -local function send_headers(tosend) - local canonic = headers.canonic - local h = "\r\n" - for f,v in base.pairs(tosend) do - h = (canonic[f] or f) .. ': ' .. v .. "\r\n" .. h - end - coroutine.yield(h) -end -local function send_multipart(mesgt) - local bd = newboundary() - local headers = lower_headers(mesgt.headers or {}) - headers['content-type'] = headers['content-type'] or 'multipart/mixed' - headers['content-type'] = headers['content-type'] .. - '; boundary="' .. bd .. '"' - send_headers(headers) - if mesgt.body.preamble then - coroutine.yield(mesgt.body.preamble) - coroutine.yield("\r\n") - end - for i, m in base.ipairs(mesgt.body) do - coroutine.yield("\r\n--" .. bd .. "\r\n") - send_message(m) - end - coroutine.yield("\r\n--" .. bd .. "--\r\n\r\n") - if mesgt.body.epilogue then - coroutine.yield(mesgt.body.epilogue) - coroutine.yield("\r\n") - end -end -local function send_source(mesgt) - local headers = lower_headers(mesgt.headers or {}) - headers['content-type'] = headers['content-type'] or - 'text/plain; charset="iso-8859-1"' - send_headers(headers) - while true do - local chunk, err = mesgt.body() - if err then coroutine.yield(nil, err) - elseif chunk then coroutine.yield(chunk) - else break end - end -end -local function send_string(mesgt) - local headers = lower_headers(mesgt.headers or {}) - headers['content-type'] = headers['content-type'] or - 'text/plain; charset="iso-8859-1"' - send_headers(headers) - coroutine.yield(mesgt.body) -end -function send_message(mesgt) - if base.type(mesgt.body) == "table" then send_multipart(mesgt) - elseif base.type(mesgt.body) == "function" then send_source(mesgt) - else send_string(mesgt) end -end -local function adjust_headers(mesgt) - local lower = lower_headers(mesgt.headers) - lower["date"] = lower["date"] or - os.date("!%a, %d %b %Y %H:%M:%S ") .. (mesgt.zone or _M.ZONE) - lower["x-mailer"] = lower["x-mailer"] or socket._VERSION - lower["mime-version"] = "1.0" - return lower -end -function _M.message(mesgt) - mesgt.headers = adjust_headers(mesgt) - local co = coroutine.create(function() send_message(mesgt) end) - return function() - local ret, a, b = coroutine.resume(co) - if ret then return a, b - else return nil, a end - end -end -_M.send = socket.protect(function(mailt) - local s = _M.open(mailt.server, mailt.port, mailt.create) - local ext = s:greet(mailt.domain) - s:auth(mailt.user, mailt.password, ext) - s:send(mailt) - s:quit() - return s:close() -end) -socket.smtp = _M -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/smtp.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/smtp.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/smtp.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/smtp_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/smtp_lua.c deleted file mode 100644 index 4d265e930d1..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/smtp_lua.c +++ /dev/null @@ -1,505 +0,0 @@ -#include "lua.h" -#include "lauxlib.h" - -int luatex_smtp_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, - 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x63, 0x6f, 0x72, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x65, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x3d, 0x20, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x61, - 0x74, 0x68, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, - 0x28, 0x22, 0x6d, 0x61, 0x74, 0x68, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x6f, 0x73, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x28, 0x22, 0x6f, 0x73, 0x22, 0x29, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x3d, - 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x22, 0x29, 0x20, 0x3b, 0x20, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x74, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x74, 0x70, 0x22, 0x29, 0x3b, 0x20, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, - 0x31, 0x32, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x28, 0x22, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x22, 0x29, 0x3b, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x29, 0x3b, - 0x20, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x69, 0x6d, 0x65, - 0x20, 0x3d, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x6d, 0x69, 0x6d, 0x65, - 0x22, 0x29, 0x3b, 0x20, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x73, 0x6d, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6d, 0x74, 0x70, 0x0a, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x73, 0x6d, 0x74, 0x70, 0x22, 0x29, 0x0a, 0x5f, 0x4d, 0x2e, 0x54, 0x49, - 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x20, 0x3d, 0x20, 0x36, 0x30, 0x0a, 0x5f, - 0x4d, 0x2e, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x20, 0x3d, 0x20, 0x22, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x22, 0x0a, 0x5f, - 0x4d, 0x2e, 0x50, 0x4f, 0x52, 0x54, 0x20, 0x3d, 0x20, 0x32, 0x35, 0x0a, - 0x5f, 0x4d, 0x2e, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x20, 0x3d, 0x20, - 0x6f, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x65, 0x6e, 0x76, 0x28, 0x22, 0x53, - 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x22, 0x29, - 0x20, 0x6f, 0x72, 0x20, 0x22, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, - 0x73, 0x74, 0x22, 0x0a, 0x5f, 0x4d, 0x2e, 0x5a, 0x4f, 0x4e, 0x45, 0x20, - 0x3d, 0x20, 0x22, 0x2d, 0x30, 0x30, 0x30, 0x30, 0x22, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x20, 0x3d, 0x20, - 0x7b, 0x20, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, - 0x7b, 0x7d, 0x20, 0x7d, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x3a, 0x67, 0x72, 0x65, 0x65, 0x74, 0x28, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, - 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x45, - 0x48, 0x4c, 0x4f, 0x22, 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x44, 0x4f, 0x4d, 0x41, 0x49, - 0x4e, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6b, - 0x69, 0x70, 0x28, 0x31, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x6d, 0x61, 0x69, 0x6c, 0x28, 0x66, 0x72, - 0x6f, 0x6d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, - 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x4d, 0x41, - 0x49, 0x4c, 0x22, 0x2c, 0x20, 0x22, 0x46, 0x52, 0x4f, 0x4d, 0x3a, 0x22, - 0x20, 0x2e, 0x2e, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, - 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, - 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x72, 0x63, 0x70, 0x74, - 0x28, 0x74, 0x6f, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x52, - 0x43, 0x50, 0x54, 0x22, 0x2c, 0x20, 0x22, 0x54, 0x4f, 0x3a, 0x22, 0x20, - 0x2e, 0x2e, 0x20, 0x74, 0x6f, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, - 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x64, 0x61, 0x74, 0x61, 0x28, 0x73, 0x72, - 0x63, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x28, 0x22, 0x44, 0x41, 0x54, 0x41, 0x22, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, - 0x6b, 0x28, 0x22, 0x33, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x28, 0x73, 0x72, 0x63, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, - 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x2e, 0x5c, 0x72, - 0x5c, 0x6e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, - 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x3a, 0x71, 0x75, 0x69, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, - 0x6e, 0x64, 0x28, 0x22, 0x51, 0x55, 0x49, 0x54, 0x22, 0x29, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, - 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, - 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x6c, - 0x6f, 0x67, 0x69, 0x6e, 0x28, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, - 0x64, 0x28, 0x22, 0x41, 0x55, 0x54, 0x48, 0x22, 0x2c, 0x20, 0x22, 0x4c, - 0x4f, 0x47, 0x49, 0x4e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, - 0x33, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x74, 0x70, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, 0x6d, 0x69, 0x6d, - 0x65, 0x2e, 0x62, 0x36, 0x34, 0x28, 0x75, 0x73, 0x65, 0x72, 0x29, 0x20, - 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x29, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, - 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x28, 0x22, 0x33, 0x2e, 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, 0x73, 0x65, 0x6e, 0x64, - 0x28, 0x6d, 0x69, 0x6d, 0x65, 0x2e, 0x62, 0x36, 0x34, 0x28, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x29, 0x20, 0x2e, 0x2e, 0x20, 0x22, - 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, - 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, 0x2e, 0x22, 0x29, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x28, 0x75, - 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x61, 0x75, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x22, 0x50, 0x4c, 0x41, - 0x49, 0x4e, 0x20, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x6d, 0x69, 0x6d, 0x65, - 0x2e, 0x62, 0x36, 0x34, 0x28, 0x22, 0x5c, 0x30, 0x22, 0x20, 0x2e, 0x2e, - 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x30, - 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x74, 0x70, 0x3a, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x22, 0x41, 0x55, 0x54, - 0x48, 0x22, 0x2c, 0x20, 0x61, 0x75, 0x74, 0x68, 0x29, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x74, 0x70, 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x22, 0x32, 0x2e, - 0x2e, 0x22, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, - 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x61, 0x75, 0x74, 0x68, - 0x28, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x2c, 0x20, 0x65, 0x78, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x75, 0x73, 0x65, - 0x72, 0x20, 0x6f, 0x72, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x65, 0x78, 0x74, 0x2c, 0x20, - 0x22, 0x41, 0x55, 0x54, 0x48, 0x5b, 0x5e, 0x5c, 0x6e, 0x5d, 0x2b, 0x4c, - 0x4f, 0x47, 0x49, 0x4e, 0x22, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x28, 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x66, 0x69, 0x6e, 0x64, 0x28, 0x65, 0x78, 0x74, 0x2c, 0x20, 0x22, 0x41, - 0x55, 0x54, 0x48, 0x5b, 0x5e, 0x5c, 0x6e, 0x5d, 0x2b, 0x50, 0x4c, 0x41, - 0x49, 0x4e, 0x22, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x28, - 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x74, 0x72, 0x79, 0x28, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x22, - 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x64, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, 0x6d, - 0x61, 0x69, 0x6c, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, - 0x6c, 0x66, 0x3a, 0x6d, 0x61, 0x69, 0x6c, 0x28, 0x6d, 0x61, 0x69, 0x6c, - 0x74, 0x2e, 0x66, 0x72, 0x6f, 0x6d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x28, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x72, 0x63, 0x70, 0x74, 0x29, - 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x2c, 0x76, 0x20, 0x69, 0x6e, 0x20, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, - 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x72, 0x63, 0x70, 0x74, 0x29, 0x20, - 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, 0x72, 0x63, 0x70, 0x74, - 0x28, 0x76, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, - 0x66, 0x3a, 0x72, 0x63, 0x70, 0x74, 0x28, 0x6d, 0x61, 0x69, 0x6c, 0x74, - 0x2e, 0x72, 0x63, 0x70, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x3a, - 0x64, 0x61, 0x74, 0x61, 0x28, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x2e, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x28, - 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2c, 0x20, 0x6d, 0x69, 0x6d, 0x65, 0x2e, 0x73, 0x74, 0x75, 0x66, 0x66, - 0x28, 0x29, 0x29, 0x2c, 0x20, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x73, - 0x74, 0x65, 0x70, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x6f, 0x70, 0x65, - 0x6e, 0x28, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2c, 0x20, 0x70, 0x6f, - 0x72, 0x74, 0x2c, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x70, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x72, - 0x79, 0x28, 0x74, 0x70, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x28, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x6f, 0x72, 0x20, 0x5f, - 0x4d, 0x2e, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x2c, 0x20, 0x70, 0x6f, - 0x72, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x50, 0x4f, 0x52, - 0x54, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, - 0x4d, 0x2e, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x2c, 0x20, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x20, 0x3d, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x74, 0x70, - 0x7d, 0x2c, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x73, 0x2e, 0x74, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x6e, 0x65, 0x77, 0x74, 0x72, 0x79, 0x28, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x3a, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6c, 0x6f, - 0x77, 0x65, 0x72, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, - 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, - 0x72, 0x20, 0x69, 0x2c, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, - 0x29, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x28, 0x69, 0x29, 0x5d, 0x20, - 0x3d, 0x20, 0x76, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, - 0x6f, 0x77, 0x65, 0x72, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x73, 0x65, 0x71, 0x6e, 0x6f, 0x20, 0x3d, 0x20, 0x30, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x6e, 0x65, 0x77, 0x62, 0x6f, 0x75, 0x6e, 0x64, - 0x61, 0x72, 0x79, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, - 0x71, 0x6e, 0x6f, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x71, 0x6e, 0x6f, 0x20, - 0x2b, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x28, 0x27, 0x25, 0x73, 0x25, 0x30, 0x35, 0x64, - 0x3d, 0x3d, 0x25, 0x30, 0x35, 0x75, 0x27, 0x2c, 0x20, 0x6f, 0x73, 0x2e, - 0x64, 0x61, 0x74, 0x65, 0x28, 0x27, 0x25, 0x64, 0x25, 0x6d, 0x25, 0x59, - 0x25, 0x48, 0x25, 0x4d, 0x25, 0x53, 0x27, 0x29, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x72, - 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x28, 0x30, 0x2c, 0x20, 0x39, 0x39, 0x39, - 0x39, 0x39, 0x29, 0x2c, 0x20, 0x73, 0x65, 0x71, 0x6e, 0x6f, 0x29, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x65, - 0x6e, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x28, 0x74, 0x6f, 0x73, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x61, 0x6e, - 0x6f, 0x6e, 0x69, 0x63, 0x20, 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x2e, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x20, 0x3d, - 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x66, 0x6f, 0x72, 0x20, 0x66, 0x2c, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x74, 0x6f, - 0x73, 0x65, 0x6e, 0x64, 0x29, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x68, 0x20, 0x3d, 0x20, 0x28, 0x63, 0x61, - 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x5b, 0x66, 0x5d, 0x20, 0x6f, 0x72, 0x20, - 0x66, 0x29, 0x20, 0x2e, 0x2e, 0x20, 0x27, 0x3a, 0x20, 0x27, 0x20, 0x2e, - 0x2e, 0x20, 0x76, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, - 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x68, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x65, 0x2e, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, 0x68, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x65, 0x6e, - 0x64, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x28, - 0x6d, 0x65, 0x73, 0x67, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x64, 0x20, 0x3d, 0x20, 0x6e, 0x65, - 0x77, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x77, 0x65, - 0x72, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x6d, 0x65, - 0x73, 0x67, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, - 0x6f, 0x72, 0x20, 0x7b, 0x7d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x27, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x27, 0x5d, 0x20, 0x3d, - 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x27, 0x63, 0x6f, - 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x27, 0x5d, - 0x20, 0x6f, 0x72, 0x20, 0x27, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, - 0x72, 0x74, 0x2f, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x27, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x27, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x27, - 0x5d, 0x20, 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, - 0x27, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, - 0x65, 0x27, 0x5d, 0x20, 0x2e, 0x2e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x27, 0x3b, 0x20, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, - 0x72, 0x79, 0x3d, 0x22, 0x27, 0x20, 0x2e, 0x2e, 0x20, 0x20, 0x62, 0x64, - 0x20, 0x2e, 0x2e, 0x20, 0x27, 0x22, 0x27, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x2e, 0x62, - 0x6f, 0x64, 0x79, 0x2e, 0x70, 0x72, 0x65, 0x61, 0x6d, 0x62, 0x6c, 0x65, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, - 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x2e, - 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x70, 0x72, 0x65, 0x61, 0x6d, 0x62, 0x6c, - 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, - 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, 0x79, 0x69, 0x65, - 0x6c, 0x64, 0x28, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, - 0x6f, 0x72, 0x20, 0x69, 0x2c, 0x20, 0x6d, 0x20, 0x69, 0x6e, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x6d, - 0x65, 0x73, 0x67, 0x74, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x20, 0x64, - 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f, - 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, 0x79, 0x69, 0x65, 0x6c, - 0x64, 0x28, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x2d, 0x2d, 0x22, 0x20, 0x2e, - 0x2e, 0x20, 0x62, 0x64, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, - 0x6e, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x28, 0x6d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, - 0x65, 0x2e, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, 0x22, 0x5c, 0x72, 0x5c, - 0x6e, 0x2d, 0x2d, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x62, 0x64, 0x20, 0x2e, - 0x2e, 0x20, 0x22, 0x2d, 0x2d, 0x5c, 0x72, 0x5c, 0x6e, 0x5c, 0x72, 0x5c, - 0x6e, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6d, - 0x65, 0x73, 0x67, 0x74, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x65, 0x70, - 0x69, 0x6c, 0x6f, 0x67, 0x75, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f, 0x72, 0x6f, - 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, - 0x6d, 0x65, 0x73, 0x67, 0x74, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x65, - 0x70, 0x69, 0x6c, 0x6f, 0x67, 0x75, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, - 0x6e, 0x65, 0x2e, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, 0x22, 0x5c, 0x72, - 0x5c, 0x6e, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x65, 0x6e, 0x64, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x28, 0x6d, 0x65, 0x73, 0x67, - 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x6c, - 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x7b, 0x7d, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x27, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x27, - 0x5d, 0x20, 0x3d, 0x20, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, - 0x27, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, - 0x65, 0x27, 0x5d, 0x20, 0x6f, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x27, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x70, 0x6c, 0x61, - 0x69, 0x6e, 0x3b, 0x20, 0x63, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, 0x3d, - 0x22, 0x69, 0x73, 0x6f, 0x2d, 0x38, 0x38, 0x35, 0x39, 0x2d, 0x31, 0x22, - 0x27, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, - 0x65, 0x20, 0x74, 0x72, 0x75, 0x65, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, - 0x20, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x63, 0x6f, - 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, 0x79, 0x69, 0x65, 0x6c, - 0x64, 0x28, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x69, 0x66, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, - 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x20, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x6d, 0x65, 0x73, 0x67, - 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, - 0x20, 0x7b, 0x7d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x68, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x73, 0x5b, 0x27, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x27, 0x5d, 0x20, 0x3d, 0x20, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5b, 0x27, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x27, 0x5d, 0x20, 0x6f, - 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x27, 0x74, - 0x65, 0x78, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x3b, 0x20, 0x63, - 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, 0x3d, 0x22, 0x69, 0x73, 0x6f, 0x2d, - 0x38, 0x38, 0x35, 0x39, 0x2d, 0x31, 0x22, 0x27, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x28, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, - 0x2e, 0x79, 0x69, 0x65, 0x6c, 0x64, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, - 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x65, 0x6e, 0x64, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x6d, 0x65, 0x73, - 0x67, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x6d, 0x65, 0x73, - 0x67, 0x74, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x20, 0x3d, 0x3d, 0x20, - 0x22, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, - 0x61, 0x72, 0x74, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x6d, 0x65, 0x73, 0x67, - 0x74, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x29, 0x20, 0x3d, 0x3d, 0x20, 0x22, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x73, 0x65, 0x6e, 0x64, 0x5f, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, - 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x6f, 0x77, - 0x65, 0x72, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, - 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, 0x22, 0x64, 0x61, 0x74, - 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, - 0x22, 0x64, 0x61, 0x74, 0x65, 0x22, 0x5d, 0x20, 0x6f, 0x72, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6f, 0x73, 0x2e, 0x64, 0x61, - 0x74, 0x65, 0x28, 0x22, 0x21, 0x25, 0x61, 0x2c, 0x20, 0x25, 0x64, 0x20, - 0x25, 0x62, 0x20, 0x25, 0x59, 0x20, 0x25, 0x48, 0x3a, 0x25, 0x4d, 0x3a, - 0x25, 0x53, 0x20, 0x22, 0x29, 0x20, 0x2e, 0x2e, 0x20, 0x28, 0x6d, 0x65, - 0x73, 0x67, 0x74, 0x2e, 0x7a, 0x6f, 0x6e, 0x65, 0x20, 0x6f, 0x72, 0x20, - 0x5f, 0x4d, 0x2e, 0x5a, 0x4f, 0x4e, 0x45, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, 0x22, 0x78, 0x2d, 0x6d, 0x61, - 0x69, 0x6c, 0x65, 0x72, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x6c, 0x6f, 0x77, - 0x65, 0x72, 0x5b, 0x22, 0x78, 0x2d, 0x6d, 0x61, 0x69, 0x6c, 0x65, 0x72, - 0x22, 0x5d, 0x20, 0x6f, 0x72, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5b, 0x22, 0x6d, 0x69, 0x6d, - 0x65, 0x2d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x20, - 0x3d, 0x20, 0x22, 0x31, 0x2e, 0x30, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6c, 0x6f, 0x77, 0x65, 0x72, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6d, 0x65, 0x73, 0x67, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x20, 0x3d, 0x20, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x28, 0x6d, 0x65, 0x73, 0x67, 0x74, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x63, 0x6f, 0x20, 0x3d, 0x20, 0x63, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, - 0x6e, 0x65, 0x2e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x28, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x73, 0x65, 0x6e, - 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x6d, 0x65, - 0x73, 0x67, 0x74, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, - 0x74, 0x2c, 0x20, 0x61, 0x2c, 0x20, 0x62, 0x20, 0x3d, 0x20, 0x63, 0x6f, - 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x2e, 0x72, 0x65, 0x73, 0x75, - 0x6d, 0x65, 0x28, 0x63, 0x6f, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x72, 0x65, 0x74, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x61, 0x2c, - 0x20, 0x62, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, - 0x69, 0x6c, 0x2c, 0x20, 0x61, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x4d, - 0x2e, 0x73, 0x65, 0x6e, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x28, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x6d, 0x61, 0x69, 0x6c, - 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x73, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x6f, 0x70, 0x65, 0x6e, - 0x28, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2c, 0x20, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x70, 0x6f, 0x72, - 0x74, 0x2c, 0x20, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x65, 0x78, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x3a, 0x67, - 0x72, 0x65, 0x65, 0x74, 0x28, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x3a, 0x61, 0x75, 0x74, 0x68, 0x28, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x2c, 0x20, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x2e, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2c, 0x20, 0x65, 0x78, - 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x3a, 0x73, 0x65, 0x6e, - 0x64, 0x28, 0x6d, 0x61, 0x69, 0x6c, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x3a, 0x71, 0x75, 0x69, 0x74, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x3a, 0x63, - 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x29, 0x0a, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6d, 0x74, 0x70, 0x20, - 0x3d, 0x20, 0x5f, 0x4d, 0x0a, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x5f, 0x4d, 0x0a, 0x00}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/socket.c b/Build/source/texk/web2c/luatexdir/luasocket/src/socket.c deleted file mode 100644 index 84165c70e5e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/socket.c +++ /dev/null @@ -1,5 +0,0 @@ -#ifdef _WIN32 -#include "wsocket.c" -#else -#include "usocket.c" -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/socket.h b/Build/source/texk/web2c/luatexdir/luasocket/src/socket.h deleted file mode 100644 index 63573de5da1..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/socket.h +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef SOCKET_H -#define SOCKET_H -/*=========================================================================*\ -* Socket compatibilization module -* LuaSocket toolkit -* -* BSD Sockets and WinSock are similar, but there are a few irritating -* differences. Also, not all *nix platforms behave the same. This module -* (and the associated usocket.h and wsocket.h) factor these differences and -* creates a interface compatible with the io.h module. -\*=========================================================================*/ -#include "io.h" - -/*=========================================================================*\ -* Platform specific compatibilization -\*=========================================================================*/ -#ifdef _WIN32 -#include "wsocket.h" -#else -#include "usocket.h" -#endif - -/*=========================================================================*\ -* The connect and accept functions accept a timeout and their -* implementations are somewhat complicated. We chose to move -* the timeout control into this module for these functions in -* order to simplify the modules that use them. -\*=========================================================================*/ -#include "timeout.h" - -/* we are lazy... */ -typedef struct sockaddr SA; - -/*=========================================================================*\ -* Functions bellow implement a comfortable platform independent -* interface to sockets -\*=========================================================================*/ -int socket_open(void); -int socket_close(void); -void socket_destroy(p_socket ps); -void socket_shutdown(p_socket ps, int how); -int socket_sendto(p_socket ps, const char *data, size_t count, - size_t *sent, SA *addr, socklen_t addr_len, p_timeout tm); -int socket_recvfrom(p_socket ps, char *data, size_t count, - size_t *got, SA *addr, socklen_t *addr_len, p_timeout tm); - -void socket_setnonblocking(p_socket ps); -void socket_setblocking(p_socket ps); - -int socket_waitfd(p_socket ps, int sw, p_timeout tm); -int socket_select(t_socket n, fd_set *rfds, fd_set *wfds, fd_set *efds, - p_timeout tm); - -int socket_connect(p_socket ps, SA *addr, socklen_t addr_len, p_timeout tm); -int socket_create(p_socket ps, int domain, int type, int protocol); -int socket_bind(p_socket ps, SA *addr, socklen_t addr_len); -int socket_listen(p_socket ps, int backlog); -int socket_accept(p_socket ps, p_socket pa, SA *addr, - socklen_t *addr_len, p_timeout tm); - -const char *socket_hoststrerror(int err); -const char *socket_gaistrerror(int err); -const char *socket_strerror(int err); - -/* these are perfect to use with the io abstraction module - and the buffered input module */ -int socket_send(p_socket ps, const char *data, size_t count, - size_t *sent, p_timeout tm); -int socket_recv(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); -int socket_write(p_socket ps, const char *data, size_t count, - size_t *sent, p_timeout tm); -int socket_read(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm); -const char *socket_ioerror(p_socket ps, int err); - -int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp); -int socket_gethostbyname(const char *addr, struct hostent **hp); - -#endif /* SOCKET_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/socket.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/socket.lua deleted file mode 100644 index d1c0b164924..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/socket.lua +++ /dev/null @@ -1,149 +0,0 @@ ------------------------------------------------------------------------------ --- LuaSocket helper module --- Author: Diego Nehab ------------------------------------------------------------------------------ - ------------------------------------------------------------------------------ --- Declare module and import dependencies ------------------------------------------------------------------------------ -local base = _G -local string = require("string") -local math = require("math") -local socket = require("socket.core") - -local _M = socket - ------------------------------------------------------------------------------ --- Exported auxiliar functions ------------------------------------------------------------------------------ -function _M.connect4(address, port, laddress, lport) - return socket.connect(address, port, laddress, lport, "inet") -end - -function _M.connect6(address, port, laddress, lport) - return socket.connect(address, port, laddress, lport, "inet6") -end - -function _M.bind(host, port, backlog) - if host == "*" then host = "0.0.0.0" end - local addrinfo, err = socket.dns.getaddrinfo(host); - if not addrinfo then return nil, err end - local sock, res - err = "no info on address" - for i, alt in base.ipairs(addrinfo) do - if alt.family == "inet" then - sock, err = socket.tcp4() - else - sock, err = socket.tcp6() - end - if not sock then return nil, err end - sock:setoption("reuseaddr", true) - res, err = sock:bind(alt.addr, port) - if not res then - sock:close() - else - res, err = sock:listen(backlog) - if not res then - sock:close() - else - return sock - end - end - end - return nil, err -end - -_M.try = _M.newtry() - -function _M.choose(table) - return function(name, opt1, opt2) - if base.type(name) ~= "string" then - name, opt1, opt2 = "default", name, opt1 - end - local f = table[name or "nil"] - if not f then base.error("unknown key (".. base.tostring(name) ..")", 3) - else return f(opt1, opt2) end - end -end - ------------------------------------------------------------------------------ --- Socket sources and sinks, conforming to LTN12 ------------------------------------------------------------------------------ --- create namespaces inside LuaSocket namespace -local sourcet, sinkt = {}, {} -_M.sourcet = sourcet -_M.sinkt = sinkt - -_M.BLOCKSIZE = 2048 - -sinkt["close-when-done"] = function(sock) - return base.setmetatable({ - getfd = function() return sock:getfd() end, - dirty = function() return sock:dirty() end - }, { - __call = function(self, chunk, err) - if not chunk then - sock:close() - return 1 - else return sock:send(chunk) end - end - }) -end - -sinkt["keep-open"] = function(sock) - return base.setmetatable({ - getfd = function() return sock:getfd() end, - dirty = function() return sock:dirty() end - }, { - __call = function(self, chunk, err) - if chunk then return sock:send(chunk) - else return 1 end - end - }) -end - -sinkt["default"] = sinkt["keep-open"] - -_M.sink = _M.choose(sinkt) - -sourcet["by-length"] = function(sock, length) - return base.setmetatable({ - getfd = function() return sock:getfd() end, - dirty = function() return sock:dirty() end - }, { - __call = function() - if length <= 0 then return nil end - local size = math.min(socket.BLOCKSIZE, length) - local chunk, err = sock:receive(size) - if err then return nil, err end - length = length - string.len(chunk) - return chunk - end - }) -end - -sourcet["until-closed"] = function(sock) - local done - return base.setmetatable({ - getfd = function() return sock:getfd() end, - dirty = function() return sock:dirty() end - }, { - __call = function() - if done then return nil end - local chunk, err, partial = sock:receive(socket.BLOCKSIZE) - if not err then return chunk - elseif err == "closed" then - sock:close() - done = 1 - return partial - else return nil, err end - end - }) -end - - -sourcet["default"] = sourcet["until-closed"] - -_M.source = _M.choose(sourcet) - -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/socket_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/socket_lua.c deleted file mode 100644 index 55ebf35a91d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/socket_lua.c +++ /dev/null @@ -1,309 +0,0 @@ -/* - * This file is generated with xxd -i and bit of bash script. -*/ -#include "lua.h" -#include "lauxlib.h" - -int luatex_socket_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x28, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x61, 0x74, 0x68, 0x20, - 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x6d, - 0x61, 0x74, 0x68, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, - 0x4d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x34, 0x28, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x2c, 0x20, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, - 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x20, - 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x6c, 0x70, - 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x65, 0x74, 0x22, 0x29, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x36, 0x28, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, - 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x2c, 0x20, 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x2c, 0x20, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, - 0x20, 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x65, - 0x74, 0x36, 0x22, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x62, 0x69, 0x6e, - 0x64, 0x28, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x2c, 0x20, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x2a, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x68, - 0x6f, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x22, 0x30, 0x2e, 0x30, 0x2e, 0x30, - 0x2e, 0x30, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x64, 0x64, 0x72, 0x69, 0x6e, - 0x66, 0x6f, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x67, 0x65, 0x74, - 0x61, 0x64, 0x64, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x28, 0x68, 0x6f, 0x73, - 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x61, 0x64, 0x64, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x72, 0x65, 0x73, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x22, 0x6e, 0x6f, 0x20, 0x69, - 0x6e, 0x66, 0x6f, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x69, 0x2c, 0x20, 0x61, 0x6c, 0x74, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x61, 0x64, - 0x64, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x29, 0x20, 0x64, 0x6f, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x61, 0x6c, - 0x74, 0x2e, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x20, 0x3d, 0x3d, 0x20, - 0x22, 0x69, 0x6e, 0x65, 0x74, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x34, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, - 0x70, 0x36, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x3a, 0x73, 0x65, 0x74, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x22, 0x72, 0x65, 0x75, 0x73, 0x65, 0x61, 0x64, 0x64, 0x72, 0x22, - 0x2c, 0x20, 0x74, 0x72, 0x75, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x2c, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x62, 0x69, 0x6e, 0x64, - 0x28, 0x61, 0x6c, 0x74, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x2c, 0x20, 0x70, - 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x73, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x63, 0x6c, - 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x2c, 0x20, - 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x6c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x28, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, - 0x67, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, - 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x4d, 0x2e, - 0x74, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x6e, 0x65, 0x77, - 0x74, 0x72, 0x79, 0x28, 0x29, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x68, 0x6f, 0x6f, 0x73, 0x65, - 0x28, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x70, - 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, - 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, - 0x6f, 0x70, 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x20, 0x3d, - 0x20, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x2c, 0x20, - 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x31, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x66, 0x20, 0x3d, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x6e, - 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x6e, 0x69, 0x6c, 0x22, - 0x5d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x66, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x22, - 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x20, 0x6b, 0x65, 0x79, 0x20, - 0x28, 0x22, 0x2e, 0x2e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, - 0x20, 0x2e, 0x2e, 0x22, 0x29, 0x22, 0x2c, 0x20, 0x33, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x28, 0x6f, 0x70, 0x74, - 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x74, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x20, 0x3d, 0x20, - 0x7b, 0x7d, 0x2c, 0x20, 0x7b, 0x7d, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x74, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x74, - 0x20, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x0a, 0x5f, 0x4d, 0x2e, - 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x20, 0x3d, 0x20, - 0x32, 0x30, 0x34, 0x38, 0x0a, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x2d, 0x77, 0x68, 0x65, 0x6e, 0x2d, 0x64, - 0x6f, 0x6e, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x67, 0x65, 0x74, - 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, 0x72, 0x74, 0x79, 0x20, - 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, 0x7b, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x63, 0x61, 0x6c, 0x6c, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, - 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x6b, 0x65, 0x65, - 0x70, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, 0x3d, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, - 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, 0x72, - 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, 0x7b, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x63, - 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2c, 0x20, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x73, - 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x6b, 0x65, 0x65, 0x70, 0x2d, 0x6f, - 0x70, 0x65, 0x6e, 0x22, 0x5d, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x69, 0x6e, - 0x6b, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x68, 0x6f, 0x6f, 0x73, - 0x65, 0x28, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x29, 0x0a, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x74, 0x5b, 0x22, 0x62, 0x79, 0x2d, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x6c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, - 0x65, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, - 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, - 0x74, 0x66, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, - 0x20, 0x65, 0x6e, 0x64, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x64, 0x69, 0x72, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, - 0x74, 0x79, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x7d, 0x2c, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x5f, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3c, 0x3d, 0x20, 0x30, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x3d, 0x20, 0x6d, 0x61, - 0x74, 0x68, 0x2e, 0x6d, 0x69, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x2c, - 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x28, 0x73, 0x69, 0x7a, 0x65, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, - 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x20, 0x3d, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x2d, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x65, 0x6e, 0x28, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x7d, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x74, 0x5b, 0x22, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x2d, 0x63, 0x6c, - 0x6f, 0x73, 0x65, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x64, 0x6f, - 0x6e, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, - 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, - 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x3a, 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, - 0x72, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, - 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, - 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x64, 0x6f, 0x6e, - 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, - 0x72, 0x72, 0x2c, 0x20, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x20, - 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x42, 0x4c, - 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x64, 0x6f, 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, - 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x7d, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x74, 0x5b, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x74, 0x5b, - 0x22, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x2d, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x64, 0x22, 0x5d, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x68, 0x6f, 0x6f, 0x73, - 0x65, 0x28, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x74, 0x29, 0x0a, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d, 0x0a,0x0}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/socket_lua.c.module b/Build/source/texk/web2c/luatexdir/luasocket/src/socket_lua.c.module deleted file mode 100644 index 6a8b4340575..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/socket_lua.c.module +++ /dev/null @@ -1,317 +0,0 @@ -/* - * This file is generated with xxd -i and bit of bash script. -*/ -#include "lua.h" -#include "lauxlib.h" - -int luatex_socket_lua_open (lua_State *L) { - int res; - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x28, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, 0x61, 0x74, 0x68, 0x20, - 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x6d, - 0x61, 0x74, 0x68, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, - 0x4d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x34, 0x28, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x2c, 0x20, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, - 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x20, - 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x6c, 0x70, - 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x65, 0x74, 0x22, 0x29, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x36, 0x28, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, - 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x2c, 0x20, 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, - 0x6b, 0x65, 0x74, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, 0x20, 0x70, 0x6f, 0x72, - 0x74, 0x2c, 0x20, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2c, - 0x20, 0x6c, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x65, - 0x74, 0x36, 0x22, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x62, 0x69, 0x6e, - 0x64, 0x28, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, - 0x2c, 0x20, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x2a, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x68, - 0x6f, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x22, 0x30, 0x2e, 0x30, 0x2e, 0x30, - 0x2e, 0x30, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x64, 0x64, 0x72, 0x69, 0x6e, - 0x66, 0x6f, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x67, 0x65, 0x74, - 0x61, 0x64, 0x64, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x28, 0x68, 0x6f, 0x73, - 0x74, 0x29, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x61, 0x64, 0x64, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x72, 0x65, 0x73, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x22, 0x6e, 0x6f, 0x20, 0x69, - 0x6e, 0x66, 0x6f, 0x20, 0x6f, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x69, 0x2c, 0x20, 0x61, 0x6c, 0x74, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x61, 0x64, - 0x64, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x29, 0x20, 0x64, 0x6f, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x61, 0x6c, - 0x74, 0x2e, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x20, 0x3d, 0x3d, 0x20, - 0x22, 0x69, 0x6e, 0x65, 0x74, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x34, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, - 0x70, 0x36, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x3a, 0x73, 0x65, 0x74, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x28, 0x22, 0x72, 0x65, 0x75, 0x73, 0x65, 0x61, 0x64, 0x64, 0x72, 0x22, - 0x2c, 0x20, 0x74, 0x72, 0x75, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x2c, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x62, 0x69, 0x6e, 0x64, - 0x28, 0x61, 0x6c, 0x74, 0x2e, 0x61, 0x64, 0x64, 0x72, 0x2c, 0x20, 0x70, - 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x73, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x63, 0x6c, - 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x2c, 0x20, - 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x6c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x28, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, - 0x67, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, - 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x5f, 0x4d, 0x2e, - 0x74, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x6e, 0x65, 0x77, - 0x74, 0x72, 0x79, 0x28, 0x29, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x68, 0x6f, 0x6f, 0x73, 0x65, - 0x28, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x70, - 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, - 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, - 0x6f, 0x70, 0x74, 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x20, 0x3d, - 0x20, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x2c, 0x20, - 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x31, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x66, 0x20, 0x3d, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5b, 0x6e, - 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x6e, 0x69, 0x6c, 0x22, - 0x5d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x66, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x28, 0x22, - 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x20, 0x6b, 0x65, 0x79, 0x20, - 0x28, 0x22, 0x2e, 0x2e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, - 0x20, 0x2e, 0x2e, 0x22, 0x29, 0x22, 0x2c, 0x20, 0x33, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x66, 0x28, 0x6f, 0x70, 0x74, - 0x31, 0x2c, 0x20, 0x6f, 0x70, 0x74, 0x32, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x74, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x20, 0x3d, 0x20, - 0x7b, 0x7d, 0x2c, 0x20, 0x7b, 0x7d, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x74, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x69, 0x6e, 0x6b, 0x74, - 0x20, 0x3d, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x0a, 0x5f, 0x4d, 0x2e, - 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x20, 0x3d, 0x20, - 0x32, 0x30, 0x34, 0x38, 0x0a, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x2d, 0x77, 0x68, 0x65, 0x6e, 0x2d, 0x64, - 0x6f, 0x6e, 0x65, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x67, 0x65, 0x74, - 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x2c, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, 0x72, 0x74, 0x79, 0x20, - 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, 0x7b, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x63, 0x61, 0x6c, 0x6c, - 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x73, 0x65, 0x6c, 0x66, 0x2c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, - 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x6b, 0x65, 0x65, - 0x70, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, 0x3d, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, - 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, 0x72, - 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, 0x7b, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, 0x63, - 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x73, 0x65, 0x6c, 0x66, 0x2c, 0x20, 0x63, 0x68, 0x75, - 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x29, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x73, - 0x69, 0x6e, 0x6b, 0x74, 0x5b, 0x22, 0x6b, 0x65, 0x65, 0x70, 0x2d, 0x6f, - 0x70, 0x65, 0x6e, 0x22, 0x5d, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x69, 0x6e, - 0x6b, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x68, 0x6f, 0x6f, 0x73, - 0x65, 0x28, 0x73, 0x69, 0x6e, 0x6b, 0x74, 0x29, 0x0a, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x74, 0x5b, 0x22, 0x62, 0x79, 0x2d, 0x6c, 0x65, 0x6e, - 0x67, 0x74, 0x68, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x2c, 0x20, 0x6c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, - 0x65, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, - 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, - 0x74, 0x66, 0x64, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, - 0x20, 0x65, 0x6e, 0x64, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x64, 0x69, 0x72, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, - 0x74, 0x79, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x7d, 0x2c, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x5f, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x3c, 0x3d, 0x20, 0x30, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x73, 0x69, 0x7a, 0x65, 0x20, 0x3d, 0x20, 0x6d, 0x61, - 0x74, 0x68, 0x2e, 0x6d, 0x69, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x2e, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x2c, - 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x28, 0x73, 0x69, 0x7a, 0x65, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, - 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x20, 0x3d, 0x20, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x20, 0x2d, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6c, 0x65, 0x6e, 0x28, - 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x7d, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x74, 0x5b, 0x22, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x2d, 0x63, 0x6c, - 0x6f, 0x73, 0x65, 0x64, 0x22, 0x5d, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x64, 0x6f, - 0x6e, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, 0x6d, 0x65, - 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x67, 0x65, 0x74, 0x66, 0x64, 0x20, - 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x29, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x6f, 0x63, 0x6b, - 0x3a, 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x20, 0x65, 0x6e, 0x64, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x64, 0x69, - 0x72, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x29, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x7d, 0x2c, 0x20, - 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x5f, 0x5f, - 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x3d, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x64, 0x6f, 0x6e, - 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, - 0x63, 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, - 0x72, 0x72, 0x2c, 0x20, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x20, - 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x28, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x42, 0x4c, - 0x4f, 0x43, 0x4b, 0x53, 0x49, 0x5a, 0x45, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, 0x65, 0x72, 0x72, - 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x64, 0x6f, 0x6e, 0x65, 0x20, 0x3d, 0x20, 0x31, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, - 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x7d, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x74, 0x5b, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, - 0x5d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x74, 0x5b, - 0x22, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x2d, 0x63, 0x6c, 0x6f, 0x73, 0x65, - 0x64, 0x22, 0x5d, 0x0a, 0x5f, 0x4d, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x68, 0x6f, 0x6f, 0x73, - 0x65, 0x28, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x74, 0x29, 0x0a, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d, 0x0a,0x0}; -/* - lua_getglobal(L, "package"); - lua_getfield(L,-1,"loaded"); - res = luaL_dostring(L, (const char*)B); - lua_setfield(L,-2,"socket"); - lua_settop(L,0); - return res;*/ - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/tcp.c b/Build/source/texk/web2c/luatexdir/luasocket/src/tcp.c deleted file mode 100644 index ef9ee6f9c2f..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/tcp.c +++ /dev/null @@ -1,451 +0,0 @@ -/*=========================================================================*\ -* TCP object -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "auxiliar.h" -#include "socket.h" -#include "inet.h" -#include "options.h" -#include "tcp.h" - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -static int global_create(lua_State *L); -static int global_create4(lua_State *L); -static int global_create6(lua_State *L); -static int global_connect(lua_State *L); -static int meth_connect(lua_State *L); -static int meth_listen(lua_State *L); -static int meth_getfamily(lua_State *L); -static int meth_bind(lua_State *L); -static int meth_send(lua_State *L); -static int meth_getstats(lua_State *L); -static int meth_setstats(lua_State *L); -static int meth_getsockname(lua_State *L); -static int meth_getpeername(lua_State *L); -static int meth_shutdown(lua_State *L); -static int meth_receive(lua_State *L); -static int meth_accept(lua_State *L); -static int meth_close(lua_State *L); -static int meth_getoption(lua_State *L); -static int meth_setoption(lua_State *L); -static int meth_gettimeout(lua_State *L); -static int meth_settimeout(lua_State *L); -static int meth_getfd(lua_State *L); -static int meth_setfd(lua_State *L); -static int meth_dirty(lua_State *L); - -/* tcp object methods */ -static luaL_Reg tcp_methods[] = { - {"__gc", meth_close}, - {"__tostring", auxiliar_tostring}, - {"accept", meth_accept}, - {"bind", meth_bind}, - {"close", meth_close}, - {"connect", meth_connect}, - {"dirty", meth_dirty}, - {"getfamily", meth_getfamily}, - {"getfd", meth_getfd}, - {"getoption", meth_getoption}, - {"getpeername", meth_getpeername}, - {"getsockname", meth_getsockname}, - {"getstats", meth_getstats}, - {"setstats", meth_setstats}, - {"listen", meth_listen}, - {"receive", meth_receive}, - {"send", meth_send}, - {"setfd", meth_setfd}, - {"setoption", meth_setoption}, - {"setpeername", meth_connect}, - {"setsockname", meth_bind}, - {"settimeout", meth_settimeout}, - {"gettimeout", meth_gettimeout}, - {"shutdown", meth_shutdown}, - {NULL, NULL} -}; - -/* socket option handlers */ -static t_opt optget[] = { - {"keepalive", opt_get_keepalive}, - {"reuseaddr", opt_get_reuseaddr}, - {"reuseport", opt_get_reuseport}, - {"tcp-nodelay", opt_get_tcp_nodelay}, - {"linger", opt_get_linger}, - {"error", opt_get_error}, - {NULL, NULL} -}; - -static t_opt optset[] = { - {"keepalive", opt_set_keepalive}, - {"reuseaddr", opt_set_reuseaddr}, - {"reuseport", opt_set_reuseport}, - {"tcp-nodelay", opt_set_tcp_nodelay}, - {"ipv6-v6only", opt_set_ip6_v6only}, - {"linger", opt_set_linger}, - {NULL, NULL} -}; - -/* functions in library namespace */ -static luaL_Reg func[] = { - {"tcp", global_create}, - {"tcp4", global_create4}, - {"tcp6", global_create6}, - {"connect", global_connect}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int tcp_open(lua_State *L) -{ - /* create classes */ - auxiliar_newclass(L, "tcp{master}", tcp_methods); - auxiliar_newclass(L, "tcp{client}", tcp_methods); - auxiliar_newclass(L, "tcp{server}", tcp_methods); - /* create class groups */ - auxiliar_add2group(L, "tcp{master}", "tcp{any}"); - auxiliar_add2group(L, "tcp{client}", "tcp{any}"); - auxiliar_add2group(L, "tcp{server}", "tcp{any}"); - /* define library functions */ - luaL_setfuncs(L, func, 0); - return 0; -} - -/*=========================================================================*\ -* Lua methods -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Just call buffered IO methods -\*-------------------------------------------------------------------------*/ -static int meth_send(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); - return buffer_meth_send(L, &tcp->buf); -} - -static int meth_receive(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); - return buffer_meth_receive(L, &tcp->buf); -} - -static int meth_getstats(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); - return buffer_meth_getstats(L, &tcp->buf); -} - -static int meth_setstats(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); - return buffer_meth_setstats(L, &tcp->buf); -} - -/*-------------------------------------------------------------------------*\ -* Just call option handler -\*-------------------------------------------------------------------------*/ -static int meth_getoption(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - return opt_meth_getoption(L, optget, &tcp->sock); -} - -static int meth_setoption(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - return opt_meth_setoption(L, optset, &tcp->sock); -} - -/*-------------------------------------------------------------------------*\ -* Select support methods -\*-------------------------------------------------------------------------*/ -static int meth_getfd(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - lua_pushnumber(L, (int) tcp->sock); - return 1; -} - -/* this is very dangerous, but can be handy for those that are brave enough */ -static int meth_setfd(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - tcp->sock = (t_socket) luaL_checknumber(L, 2); - return 0; -} - -static int meth_dirty(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - lua_pushboolean(L, !buffer_isempty(&tcp->buf)); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Waits for and returns a client object attempting connection to the -* server object -\*-------------------------------------------------------------------------*/ -static int meth_accept(lua_State *L) -{ - p_tcp server = (p_tcp) auxiliar_checkclass(L, "tcp{server}", 1); - p_timeout tm = timeout_markstart(&server->tm); - t_socket sock; - const char *err = inet_tryaccept(&server->sock, server->family, &sock, tm); - /* if successful, push client socket */ - if (err == NULL) { - p_tcp clnt = (p_tcp) lua_newuserdata(L, sizeof(t_tcp)); - auxiliar_setclass(L, "tcp{client}", -1); - /* initialize structure fields */ - memset(clnt, 0, sizeof(t_tcp)); - socket_setnonblocking(&sock); - clnt->sock = sock; - io_init(&clnt->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &clnt->sock); - timeout_init(&clnt->tm, -1, -1); - buffer_init(&clnt->buf, &clnt->io, &clnt->tm); - clnt->family = server->family; - return 1; - } else { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } -} - -/*-------------------------------------------------------------------------*\ -* Binds an object to an address -\*-------------------------------------------------------------------------*/ -static int meth_bind(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{master}", 1); - const char *address = luaL_checkstring(L, 2); - const char *port = luaL_checkstring(L, 3); - const char *err; - struct addrinfo bindhints; - memset(&bindhints, 0, sizeof(bindhints)); - bindhints.ai_socktype = SOCK_STREAM; - bindhints.ai_family = tcp->family; - bindhints.ai_flags = AI_PASSIVE; - err = inet_trybind(&tcp->sock, &tcp->family, address, port, &bindhints); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Turns a master tcp object into a client object. -\*-------------------------------------------------------------------------*/ -static int meth_connect(lua_State *L) { - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - const char *address = luaL_checkstring(L, 2); - const char *port = luaL_checkstring(L, 3); - struct addrinfo connecthints; - const char *err; - memset(&connecthints, 0, sizeof(connecthints)); - connecthints.ai_socktype = SOCK_STREAM; - /* make sure we try to connect only to the same family */ - connecthints.ai_family = tcp->family; - timeout_markstart(&tcp->tm); - err = inet_tryconnect(&tcp->sock, &tcp->family, address, port, - &tcp->tm, &connecthints); - /* have to set the class even if it failed due to non-blocking connects */ - auxiliar_setclass(L, "tcp{client}", 1); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Closes socket used by object -\*-------------------------------------------------------------------------*/ -static int meth_close(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - socket_destroy(&tcp->sock); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Returns family as string -\*-------------------------------------------------------------------------*/ -static int meth_getfamily(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - if (tcp->family == AF_INET6) { - lua_pushliteral(L, "inet6"); - return 1; - } else if (tcp->family == AF_INET) { - lua_pushliteral(L, "inet4"); - return 1; - } else { - lua_pushliteral(L, "inet4"); - return 1; - } -} - -/*-------------------------------------------------------------------------*\ -* Puts the sockt in listen mode -\*-------------------------------------------------------------------------*/ -static int meth_listen(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{master}", 1); - int backlog = (int) luaL_optnumber(L, 2, 32); - int err = socket_listen(&tcp->sock, backlog); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(err)); - return 2; - } - /* turn master object into a server object */ - auxiliar_setclass(L, "tcp{server}", 1); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Shuts the connection down partially -\*-------------------------------------------------------------------------*/ -static int meth_shutdown(lua_State *L) -{ - /* SHUT_RD, SHUT_WR, SHUT_RDWR have the value 0, 1, 2, so we can use method index directly */ - static const char* methods[] = { "receive", "send", "both", NULL }; - p_tcp tcp = (p_tcp) auxiliar_checkclass(L, "tcp{client}", 1); - int how = luaL_checkoption(L, 2, "both", methods); - socket_shutdown(&tcp->sock, how); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Just call inet methods -\*-------------------------------------------------------------------------*/ -static int meth_getpeername(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - return inet_meth_getpeername(L, &tcp->sock, tcp->family); -} - -static int meth_getsockname(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - return inet_meth_getsockname(L, &tcp->sock, tcp->family); -} - -/*-------------------------------------------------------------------------*\ -* Just call tm methods -\*-------------------------------------------------------------------------*/ -static int meth_settimeout(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - return timeout_meth_settimeout(L, &tcp->tm); -} - -static int meth_gettimeout(lua_State *L) -{ - p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); - return timeout_meth_gettimeout(L, &tcp->tm); -} - -/*=========================================================================*\ -* Library functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Creates a master tcp object -\*-------------------------------------------------------------------------*/ -static int tcp_create(lua_State *L, int family) { - p_tcp tcp = (p_tcp) lua_newuserdata(L, sizeof(t_tcp)); - memset(tcp, 0, sizeof(t_tcp)); - /* set its type as master object */ - auxiliar_setclass(L, "tcp{master}", -1); - /* if family is AF_UNSPEC, we leave the socket invalid and - * store AF_UNSPEC into family. This will allow it to later be - * replaced with an AF_INET6 or AF_INET socket upon first use. */ - tcp->sock = SOCKET_INVALID; - tcp->family = family; - io_init(&tcp->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &tcp->sock); - timeout_init(&tcp->tm, -1, -1); - buffer_init(&tcp->buf, &tcp->io, &tcp->tm); - if (family != AF_UNSPEC) { - const char *err = inet_trycreate(&tcp->sock, family, SOCK_STREAM, 0); - if (err != NULL) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - socket_setnonblocking(&tcp->sock); - } - return 1; -} - -static int global_create(lua_State *L) { - return tcp_create(L, AF_UNSPEC); -} - -static int global_create4(lua_State *L) { - return tcp_create(L, AF_INET); -} - -static int global_create6(lua_State *L) { - return tcp_create(L, AF_INET6); -} - -static int global_connect(lua_State *L) { - const char *remoteaddr = luaL_checkstring(L, 1); - const char *remoteserv = luaL_checkstring(L, 2); - const char *localaddr = luaL_optstring(L, 3, NULL); - const char *localserv = luaL_optstring(L, 4, "0"); - int family = inet_optfamily(L, 5, "unspec"); - p_tcp tcp = (p_tcp) lua_newuserdata(L, sizeof(t_tcp)); - struct addrinfo bindhints, connecthints; - const char *err = NULL; - /* initialize tcp structure */ - memset(tcp, 0, sizeof(t_tcp)); - io_init(&tcp->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &tcp->sock); - timeout_init(&tcp->tm, -1, -1); - buffer_init(&tcp->buf, &tcp->io, &tcp->tm); - tcp->sock = SOCKET_INVALID; - tcp->family = AF_UNSPEC; - /* allow user to pick local address and port */ - memset(&bindhints, 0, sizeof(bindhints)); - bindhints.ai_socktype = SOCK_STREAM; - bindhints.ai_family = family; - bindhints.ai_flags = AI_PASSIVE; - if (localaddr) { - err = inet_trybind(&tcp->sock, &tcp->family, localaddr, - localserv, &bindhints); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - } - /* try to connect to remote address and port */ - memset(&connecthints, 0, sizeof(connecthints)); - connecthints.ai_socktype = SOCK_STREAM; - /* make sure we try to connect only to the same family */ - connecthints.ai_family = tcp->family; - err = inet_tryconnect(&tcp->sock, &tcp->family, remoteaddr, remoteserv, - &tcp->tm, &connecthints); - if (err) { - socket_destroy(&tcp->sock); - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - auxiliar_setclass(L, "tcp{client}", -1); - return 1; -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/tcp.h b/Build/source/texk/web2c/luatexdir/luasocket/src/tcp.h deleted file mode 100644 index eded620324d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/tcp.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef TCP_H -#define TCP_H -/*=========================================================================*\ -* TCP object -* LuaSocket toolkit -* -* The tcp.h module is basicly a glue that puts together modules buffer.h, -* timeout.h socket.h and inet.h to provide the LuaSocket TCP (AF_INET, -* SOCK_STREAM) support. -* -* Three classes are defined: master, client and server. The master class is -* a newly created tcp object, that has not been bound or connected. Server -* objects are tcp objects bound to some local address. Client objects are -* tcp objects either connected to some address or returned by the accept -* method of a server object. -\*=========================================================================*/ -#include "lua.h" - -#include "buffer.h" -#include "timeout.h" -#include "socket.h" - -typedef struct t_tcp_ { - t_socket sock; - t_io io; - t_buffer buf; - t_timeout tm; - int family; -} t_tcp; - -typedef t_tcp *p_tcp; - -int tcp_open(lua_State *L); - -#endif /* TCP_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/timeout.c b/Build/source/texk/web2c/luatexdir/luasocket/src/timeout.c deleted file mode 100644 index 5a601d5410a..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/timeout.c +++ /dev/null @@ -1,228 +0,0 @@ -/*=========================================================================*\ -* Timeout management functions -* LuaSocket toolkit -\*=========================================================================*/ -#include <stdio.h> -#include <limits.h> -#include <float.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "auxiliar.h" -#include "timeout.h" - -#ifdef _WIN32 -#include <windows.h> -#else -#include <time.h> -#include <sys/time.h> -#endif - -/* min and max macros */ -#ifndef MIN -#define MIN(x, y) ((x) < (y) ? x : y) -#endif -#ifndef MAX -#define MAX(x, y) ((x) > (y) ? x : y) -#endif - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -static int timeout_lua_gettime(lua_State *L); -static int timeout_lua_sleep(lua_State *L); - -static luaL_Reg func[] = { - { "gettime", timeout_lua_gettime }, - { "sleep", timeout_lua_sleep }, - { NULL, NULL } -}; - -/*=========================================================================*\ -* Exported functions. -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Initialize structure -\*-------------------------------------------------------------------------*/ -void timeout_init(p_timeout tm, double block, double total) { - tm->block = block; - tm->total = total; -} - -/*-------------------------------------------------------------------------*\ -* Determines how much time we have left for the next system call, -* if the previous call was successful -* Input -* tm: timeout control structure -* Returns -* the number of ms left or -1 if there is no time limit -\*-------------------------------------------------------------------------*/ -double timeout_get(p_timeout tm) { - if (tm->block < 0.0 && tm->total < 0.0) { - return -1; - } else if (tm->block < 0.0) { - double t = tm->total - timeout_gettime() + tm->start; - return MAX(t, 0.0); - } else if (tm->total < 0.0) { - return tm->block; - } else { - double t = tm->total - timeout_gettime() + tm->start; - return MIN(tm->block, MAX(t, 0.0)); - } -} - -/*-------------------------------------------------------------------------*\ -* Returns time since start of operation -* Input -* tm: timeout control structure -* Returns -* start field of structure -\*-------------------------------------------------------------------------*/ -double timeout_getstart(p_timeout tm) { - return tm->start; -} - -/*-------------------------------------------------------------------------*\ -* Determines how much time we have left for the next system call, -* if the previous call was a failure -* Input -* tm: timeout control structure -* Returns -* the number of ms left or -1 if there is no time limit -\*-------------------------------------------------------------------------*/ -double timeout_getretry(p_timeout tm) { - if (tm->block < 0.0 && tm->total < 0.0) { - return -1; - } else if (tm->block < 0.0) { - double t = tm->total - timeout_gettime() + tm->start; - return MAX(t, 0.0); - } else if (tm->total < 0.0) { - double t = tm->block - timeout_gettime() + tm->start; - return MAX(t, 0.0); - } else { - double t = tm->total - timeout_gettime() + tm->start; - return MIN(tm->block, MAX(t, 0.0)); - } -} - -/*-------------------------------------------------------------------------*\ -* Marks the operation start time in structure -* Input -* tm: timeout control structure -\*-------------------------------------------------------------------------*/ -p_timeout timeout_markstart(p_timeout tm) { - tm->start = timeout_gettime(); - return tm; -} - -/*-------------------------------------------------------------------------*\ -* Gets time in s, relative to January 1, 1970 (UTC) -* Returns -* time in s. -\*-------------------------------------------------------------------------*/ -#ifdef _WIN32 -double timeout_gettime(void) { - FILETIME ft; - double t; - GetSystemTimeAsFileTime(&ft); - /* Windows file time (time since January 1, 1601 (UTC)) */ - t = ft.dwLowDateTime/1.0e7 + ft.dwHighDateTime*(4294967296.0/1.0e7); - /* convert to Unix Epoch time (time since January 1, 1970 (UTC)) */ - return (t - 11644473600.0); -} -#else -double timeout_gettime(void) { - struct timeval v; - gettimeofday(&v, (struct timezone *) NULL); - /* Unix Epoch time (time since January 1, 1970 (UTC)) */ - return v.tv_sec + v.tv_usec/1.0e6; -} -#endif - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int timeout_open(lua_State *L) { - luaL_setfuncs(L, func, 0); - return 0; -} - -/*-------------------------------------------------------------------------*\ -* Sets timeout values for IO operations -* Lua Input: base, time [, mode] -* time: time out value in seconds -* mode: "b" for block timeout, "t" for total timeout. (default: b) -\*-------------------------------------------------------------------------*/ -int timeout_meth_settimeout(lua_State *L, p_timeout tm) { - double t = luaL_optnumber(L, 2, -1); - const char *mode = luaL_optstring(L, 3, "b"); - switch (*mode) { - case 'b': - tm->block = t; - break; - case 'r': case 't': - tm->total = t; - break; - default: - luaL_argcheck(L, 0, 3, "invalid timeout mode"); - break; - } - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Gets timeout values for IO operations -* Lua Output: block, total -\*-------------------------------------------------------------------------*/ -int timeout_meth_gettimeout(lua_State *L, p_timeout tm) { - lua_pushnumber(L, tm->block); - lua_pushnumber(L, tm->total); - return 2; -} - -/*=========================================================================*\ -* Test support functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Returns the time the system has been up, in secconds. -\*-------------------------------------------------------------------------*/ -static int timeout_lua_gettime(lua_State *L) -{ - lua_pushnumber(L, timeout_gettime()); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Sleep for n seconds. -\*-------------------------------------------------------------------------*/ -#ifdef _WIN32 -int timeout_lua_sleep(lua_State *L) -{ - double n = luaL_checknumber(L, 1); - if (n < 0.0) n = 0.0; - if (n < DBL_MAX/1000.0) n *= 1000.0; - if (n > INT_MAX) n = INT_MAX; - Sleep((int)n); - return 0; -} -#else -int timeout_lua_sleep(lua_State *L) -{ - double n = luaL_checknumber(L, 1); - struct timespec t, r; - if (n < 0.0) n = 0.0; - if (n > INT_MAX) n = INT_MAX; - t.tv_sec = (int) n; - n -= t.tv_sec; - t.tv_nsec = (int) (n * 1000000000); - if (t.tv_nsec >= 1000000000) t.tv_nsec = 999999999; - while (nanosleep(&t, &r) != 0) { - t.tv_sec = r.tv_sec; - t.tv_nsec = r.tv_nsec; - } - return 0; -} -#endif diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/timeout.h b/Build/source/texk/web2c/luatexdir/luasocket/src/timeout.h deleted file mode 100644 index af902318b0a..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/timeout.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef TIMEOUT_H -#define TIMEOUT_H -/*=========================================================================*\ -* Timeout management functions -* LuaSocket toolkit -\*=========================================================================*/ -#include "lua.h" - -/* timeout control structure */ -typedef struct t_timeout_ { - double block; /* maximum time for blocking calls */ - double total; /* total number of miliseconds for operation */ - double start; /* time of start of operation */ -} t_timeout; -typedef t_timeout *p_timeout; - -int timeout_open(lua_State *L); -void timeout_init(p_timeout tm, double block, double total); -double timeout_get(p_timeout tm); -double timeout_getretry(p_timeout tm); -p_timeout timeout_markstart(p_timeout tm); -double timeout_getstart(p_timeout tm); -double timeout_gettime(void); -int timeout_meth_settimeout(lua_State *L, p_timeout tm); -int timeout_meth_gettimeout(lua_State *L, p_timeout tm); - -#define timeout_iszero(tm) ((tm)->block == 0.0) - -#endif /* TIMEOUT_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/tp.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/tp.lua deleted file mode 100644 index 1c418542f43..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/tp.lua +++ /dev/null @@ -1,98 +0,0 @@ -local base = _G -local string = require("string") -local socket = socket or require("socket") -local ltn12 = ltn12 or require("ltn12") -socket.tp = {} -local _M = socket.tp -module("socket.tp") -_M.TIMEOUT = 60 -local function get_reply(c) - local code, current, sep - local line, err = c:receive() - local reply = line - if err then return nil, err end - code, sep = socket.skip(2, string.find(line, "^(%d%d%d)(.?)")) - if not code then return nil, "invalid server reply" end - if sep == "-" then -- reply is multiline - repeat - line, err = c:receive() - if err then return nil, err end - current, sep = socket.skip(2, string.find(line, "^(%d%d%d)(.?)")) - reply = reply .. "\n" .. line - until code == current and sep == " " - end - return code, reply -end -local metat = { __index = {} } -function metat.__index:getpeername() - return self.c:getpeername() -end -function metat.__index:getsockname() - return self.c:getpeername() -end -function metat.__index:check(ok) - local code, reply = get_reply(self.c) - if not code then return nil, reply end - if base.type(ok) ~= "function" then - if base.type(ok) == "table" then - for i, v in base.ipairs(ok) do - if string.find(code, v) then - return base.tonumber(code), reply - end - end - return nil, reply - else - if string.find(code, ok) then return base.tonumber(code), reply - else return nil, reply end - end - else return ok(base.tonumber(code), reply) end -end -function metat.__index:command(cmd, arg) - cmd = string.upper(cmd) - if arg then - return self.c:send(cmd .. " " .. arg.. "\r\n") - else - return self.c:send(cmd .. "\r\n") - end -end -function metat.__index:sink(snk, pat) - local chunk, err = self.c:receive(pat) - return snk(chunk, err) -end -function metat.__index:send(data) - return self.c:send(data) -end -function metat.__index:receive(pat) - return self.c:receive(pat) -end -function metat.__index:getfd() - return self.c:getfd() -end -function metat.__index:dirty() - return self.c:dirty() -end -function metat.__index:getcontrol() - return self.c -end -function metat.__index:source(source, step) - local sink = socket.sink("keep-open", self.c) - local ret, err = ltn12.pump.all(source, sink, step or ltn12.pump.step) - return ret, err -end -function metat.__index:close() - self.c:close() - return 1 -end -function _M.connect(host, port, timeout, create) - local c, e = (create or socket.tcp)() - if not c then return nil, e end - c:settimeout(timeout or _M.TIMEOUT) - local r, e = c:connect(host, port) - if not r then - c:close() - return nil, e - end - return base.setmetatable({c = c}, metat) -end -socket.tp = _M -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/tp.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/tp.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/tp.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/tp_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/tp_lua.c deleted file mode 100644 index 9ef9dfae51e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/tp_lua.c +++ /dev/null @@ -1,244 +0,0 @@ -#include "lua.h" -#include "lauxlib.h" - -int luatex_tp_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, - 0x20, 0x5f, 0x47, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x28, 0x22, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x6f, - 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, - 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x20, 0x3d, 0x20, 0x6c, 0x74, - 0x6e, 0x31, 0x32, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x28, 0x22, 0x6c, 0x74, 0x6e, 0x31, 0x32, 0x22, 0x29, 0x0a, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x70, 0x20, 0x3d, 0x20, - 0x7b, 0x7d, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x5f, 0x4d, 0x20, - 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x70, 0x0a, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x2e, 0x74, 0x70, 0x22, 0x29, 0x0a, 0x5f, 0x4d, 0x2e, 0x54, - 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x20, 0x3d, 0x20, 0x36, 0x30, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, - 0x28, 0x63, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x74, 0x2c, 0x20, 0x73, 0x65, 0x70, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x63, 0x3a, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x3d, - 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x63, 0x6f, - 0x64, 0x65, 0x2c, 0x20, 0x73, 0x65, 0x70, 0x20, 0x3d, 0x20, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x28, 0x32, 0x2c, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, - 0x28, 0x6c, 0x69, 0x6e, 0x65, 0x2c, 0x20, 0x22, 0x5e, 0x28, 0x25, 0x64, - 0x25, 0x64, 0x25, 0x64, 0x29, 0x28, 0x2e, 0x3f, 0x29, 0x22, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x63, 0x6f, 0x64, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x22, 0x69, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x65, 0x70, 0x20, - 0x3d, 0x3d, 0x20, 0x22, 0x2d, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x2d, 0x2d, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x69, 0x73, 0x20, - 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6c, 0x69, 0x6e, 0x65, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, - 0x20, 0x63, 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x65, 0x72, 0x72, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, - 0x20, 0x65, 0x72, 0x72, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x20, 0x73, 0x65, 0x70, 0x20, 0x3d, 0x20, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x6b, 0x69, 0x70, 0x28, - 0x32, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, - 0x6e, 0x64, 0x28, 0x6c, 0x69, 0x6e, 0x65, 0x2c, 0x20, 0x22, 0x5e, 0x28, - 0x25, 0x64, 0x25, 0x64, 0x25, 0x64, 0x29, 0x28, 0x2e, 0x3f, 0x29, 0x22, - 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x3d, 0x20, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x6e, 0x22, - 0x20, 0x2e, 0x2e, 0x20, 0x6c, 0x69, 0x6e, 0x65, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x20, 0x63, - 0x6f, 0x64, 0x65, 0x20, 0x3d, 0x3d, 0x20, 0x63, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x65, 0x70, 0x20, 0x3d, - 0x3d, 0x20, 0x22, 0x20, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x20, 0x3d, 0x20, 0x7b, 0x20, 0x5f, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x20, 0x7d, 0x0a, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, - 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x67, - 0x65, 0x74, 0x70, 0x65, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x28, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x67, 0x65, 0x74, 0x70, 0x65, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x28, 0x29, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, - 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, - 0x67, 0x65, 0x74, 0x73, 0x6f, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x28, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x67, 0x65, 0x74, 0x70, - 0x65, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x28, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x28, 0x6f, 0x6b, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x3d, 0x20, 0x67, - 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x28, 0x73, 0x65, 0x6c, - 0x66, 0x2e, 0x63, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, - 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x28, 0x6f, 0x6b, 0x29, 0x20, 0x7e, 0x3d, 0x20, - 0x22, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x28, 0x6f, 0x6b, 0x29, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, - 0x20, 0x69, 0x2c, 0x20, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x6f, 0x6b, 0x29, - 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x63, - 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x76, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x29, 0x2c, - 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, - 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x66, 0x69, 0x6e, 0x64, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x6f, - 0x6b, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x29, 0x2c, 0x20, - 0x72, 0x65, 0x70, 0x6c, 0x79, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x6f, 0x6b, 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x29, 0x2c, - 0x20, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x28, 0x63, - 0x6d, 0x64, 0x2c, 0x20, 0x61, 0x72, 0x67, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x63, 0x6d, 0x64, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x75, 0x70, 0x70, 0x65, 0x72, 0x28, 0x63, 0x6d, 0x64, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x61, 0x72, 0x67, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x63, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, 0x63, 0x6d, 0x64, 0x20, - 0x2e, 0x2e, 0x20, 0x22, 0x20, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x61, 0x72, - 0x67, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, 0x22, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, - 0x63, 0x6d, 0x64, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5c, 0x72, 0x5c, 0x6e, - 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x3a, 0x73, 0x69, 0x6e, 0x6b, 0x28, 0x73, 0x6e, 0x6b, 0x2c, 0x20, - 0x70, 0x61, 0x74, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x20, 0x3d, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x70, 0x61, 0x74, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, - 0x6e, 0x6b, 0x28, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2c, 0x20, 0x65, 0x72, - 0x72, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x73, 0x65, 0x6e, 0x64, 0x28, 0x64, - 0x61, 0x74, 0x61, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x73, - 0x65, 0x6e, 0x64, 0x28, 0x64, 0x61, 0x74, 0x61, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x28, 0x70, 0x61, 0x74, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x28, 0x70, 0x61, 0x74, 0x29, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, - 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, - 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, - 0x63, 0x3a, 0x67, 0x65, 0x74, 0x66, 0x64, 0x28, 0x29, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, - 0x2e, 0x63, 0x3a, 0x64, 0x69, 0x72, 0x74, 0x79, 0x28, 0x29, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x3a, 0x67, 0x65, 0x74, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x0a, 0x65, 0x6e, 0x64, - 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x65, - 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x28, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2c, 0x20, 0x73, 0x74, 0x65, 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x20, - 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x73, 0x69, 0x6e, - 0x6b, 0x28, 0x22, 0x6b, 0x65, 0x65, 0x70, 0x2d, 0x6f, 0x70, 0x65, 0x6e, - 0x22, 0x2c, 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x74, - 0x2c, 0x20, 0x65, 0x72, 0x72, 0x20, 0x3d, 0x20, 0x6c, 0x74, 0x6e, 0x31, - 0x32, 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x61, 0x6c, 0x6c, 0x28, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x20, 0x73, 0x69, 0x6e, 0x6b, 0x2c, - 0x20, 0x73, 0x74, 0x65, 0x70, 0x20, 0x6f, 0x72, 0x20, 0x6c, 0x74, 0x6e, - 0x31, 0x32, 0x2e, 0x70, 0x75, 0x6d, 0x70, 0x2e, 0x73, 0x74, 0x65, 0x70, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x0a, 0x65, 0x6e, - 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x6d, - 0x65, 0x74, 0x61, 0x74, 0x2e, 0x5f, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x73, 0x65, 0x6c, 0x66, 0x2e, 0x63, 0x3a, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x31, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x28, 0x68, 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, - 0x6f, 0x72, 0x74, 0x2c, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x2c, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x2c, 0x20, 0x65, - 0x20, 0x3d, 0x20, 0x28, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x6f, - 0x72, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, - 0x29, 0x28, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x63, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x63, 0x3a, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x28, 0x74, 0x69, 0x6d, - 0x65, 0x6f, 0x75, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x5f, 0x4d, 0x2e, 0x54, - 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x2c, 0x20, 0x65, 0x20, 0x3d, - 0x20, 0x63, 0x3a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x28, 0x68, - 0x6f, 0x73, 0x74, 0x2c, 0x20, 0x70, 0x6f, 0x72, 0x74, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x63, 0x3a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x28, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x6e, 0x69, 0x6c, 0x2c, 0x20, 0x65, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x65, 0x74, - 0x6d, 0x65, 0x74, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x28, 0x7b, 0x63, - 0x20, 0x3d, 0x20, 0x63, 0x7d, 0x2c, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x74, - 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x74, 0x70, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x0a, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d, 0x0a, 0x00}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/udp.c b/Build/source/texk/web2c/luatexdir/luasocket/src/udp.c deleted file mode 100644 index 605c1950f2b..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/udp.c +++ /dev/null @@ -1,483 +0,0 @@ -/*=========================================================================*\ -* UDP object -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> -#include <stdlib.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "auxiliar.h" -#include "socket.h" -#include "inet.h" -#include "options.h" -#include "udp.h" - -/* min and max macros */ -#ifndef MIN -#define MIN(x, y) ((x) < (y) ? x : y) -#endif -#ifndef MAX -#define MAX(x, y) ((x) > (y) ? x : y) -#endif - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -static int global_create(lua_State *L); -static int global_create4(lua_State *L); -static int global_create6(lua_State *L); -static int meth_send(lua_State *L); -static int meth_sendto(lua_State *L); -static int meth_receive(lua_State *L); -static int meth_receivefrom(lua_State *L); -static int meth_getfamily(lua_State *L); -static int meth_getsockname(lua_State *L); -static int meth_getpeername(lua_State *L); -static int meth_gettimeout(lua_State *L); -static int meth_setsockname(lua_State *L); -static int meth_setpeername(lua_State *L); -static int meth_close(lua_State *L); -static int meth_setoption(lua_State *L); -static int meth_getoption(lua_State *L); -static int meth_settimeout(lua_State *L); -static int meth_getfd(lua_State *L); -static int meth_setfd(lua_State *L); -static int meth_dirty(lua_State *L); - -/* udp object methods */ -static luaL_Reg udp_methods[] = { - {"__gc", meth_close}, - {"__tostring", auxiliar_tostring}, - {"close", meth_close}, - {"dirty", meth_dirty}, - {"getfamily", meth_getfamily}, - {"getfd", meth_getfd}, - {"getpeername", meth_getpeername}, - {"getsockname", meth_getsockname}, - {"receive", meth_receive}, - {"receivefrom", meth_receivefrom}, - {"send", meth_send}, - {"sendto", meth_sendto}, - {"setfd", meth_setfd}, - {"setoption", meth_setoption}, - {"getoption", meth_getoption}, - {"setpeername", meth_setpeername}, - {"setsockname", meth_setsockname}, - {"settimeout", meth_settimeout}, - {"gettimeout", meth_gettimeout}, - {NULL, NULL} -}; - -/* socket options for setoption */ -static t_opt optset[] = { - {"dontroute", opt_set_dontroute}, - {"broadcast", opt_set_broadcast}, - {"reuseaddr", opt_set_reuseaddr}, - {"reuseport", opt_set_reuseport}, - {"ip-multicast-if", opt_set_ip_multicast_if}, - {"ip-multicast-ttl", opt_set_ip_multicast_ttl}, - {"ip-multicast-loop", opt_set_ip_multicast_loop}, - {"ip-add-membership", opt_set_ip_add_membership}, - {"ip-drop-membership", opt_set_ip_drop_membersip}, - {"ipv6-unicast-hops", opt_set_ip6_unicast_hops}, - {"ipv6-multicast-hops", opt_set_ip6_unicast_hops}, - {"ipv6-multicast-loop", opt_set_ip6_multicast_loop}, - {"ipv6-add-membership", opt_set_ip6_add_membership}, - {"ipv6-drop-membership", opt_set_ip6_drop_membersip}, - {"ipv6-v6only", opt_set_ip6_v6only}, - {NULL, NULL} -}; - -/* socket options for getoption */ -static t_opt optget[] = { - {"dontroute", opt_get_dontroute}, - {"broadcast", opt_get_broadcast}, - {"reuseaddr", opt_get_reuseaddr}, - {"reuseport", opt_get_reuseport}, - {"ip-multicast-if", opt_get_ip_multicast_if}, - {"ip-multicast-loop", opt_get_ip_multicast_loop}, - {"error", opt_get_error}, - {"ipv6-unicast-hops", opt_get_ip6_unicast_hops}, - {"ipv6-multicast-hops", opt_get_ip6_unicast_hops}, - {"ipv6-multicast-loop", opt_get_ip6_multicast_loop}, - {"ipv6-v6only", opt_get_ip6_v6only}, - {NULL, NULL} -}; - -/* functions in library namespace */ -static luaL_Reg func[] = { - {"udp", global_create}, - {"udp4", global_create4}, - {"udp6", global_create6}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int udp_open(lua_State *L) { - /* create classes */ - auxiliar_newclass(L, "udp{connected}", udp_methods); - auxiliar_newclass(L, "udp{unconnected}", udp_methods); - /* create class groups */ - auxiliar_add2group(L, "udp{connected}", "udp{any}"); - auxiliar_add2group(L, "udp{unconnected}", "udp{any}"); - auxiliar_add2group(L, "udp{connected}", "select{able}"); - auxiliar_add2group(L, "udp{unconnected}", "select{able}"); - /* define library functions */ - luaL_setfuncs(L, func, 0); - /* export default UDP size */ - lua_pushliteral(L, "_DATAGRAMSIZE"); - lua_pushinteger(L, UDP_DATAGRAMSIZE); - lua_rawset(L, -3); - return 0; -} - -/*=========================================================================*\ -* Lua methods -\*=========================================================================*/ -static const char *udp_strerror(int err) { - /* a 'closed' error on an unconnected means the target address was not - * accepted by the transport layer */ - if (err == IO_CLOSED) return "refused"; - else return socket_strerror(err); -} - -/*-------------------------------------------------------------------------*\ -* Send data through connected udp socket -\*-------------------------------------------------------------------------*/ -static int meth_send(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{connected}", 1); - p_timeout tm = &udp->tm; - size_t count, sent = 0; - int err; - const char *data = luaL_checklstring(L, 2, &count); - timeout_markstart(tm); - err = socket_send(&udp->sock, data, count, &sent, tm); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, udp_strerror(err)); - return 2; - } - lua_pushnumber(L, (lua_Number) sent); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Send data through unconnected udp socket -\*-------------------------------------------------------------------------*/ -static int meth_sendto(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{unconnected}", 1); - size_t count, sent = 0; - const char *data = luaL_checklstring(L, 2, &count); - const char *ip = luaL_checkstring(L, 3); - const char *port = luaL_checkstring(L, 4); - p_timeout tm = &udp->tm; - int err; - struct addrinfo aihint; - struct addrinfo *ai; - memset(&aihint, 0, sizeof(aihint)); - aihint.ai_family = udp->family; - aihint.ai_socktype = SOCK_DGRAM; - aihint.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV; - err = getaddrinfo(ip, port, &aihint, &ai); - if (err) { - lua_pushnil(L); - lua_pushstring(L, gai_strerror(err)); - return 2; - } - - /* create socket if on first sendto if AF_UNSPEC was set */ - if (udp->family == AF_UNSPEC && udp->sock == SOCKET_INVALID) { - struct addrinfo *ap; - const char *errstr = NULL; - for (ap = ai; ap != NULL; ap = ap->ai_next) { - errstr = inet_trycreate(&udp->sock, ap->ai_family, SOCK_DGRAM, 0); - if (errstr == NULL) { - socket_setnonblocking(&udp->sock); - udp->family = ap->ai_family; - break; - } - } - if (errstr != NULL) { - lua_pushnil(L); - lua_pushstring(L, errstr); - freeaddrinfo(ai); - return 2; - } - } - - timeout_markstart(tm); - err = socket_sendto(&udp->sock, data, count, &sent, ai->ai_addr, - (socklen_t) ai->ai_addrlen, tm); - freeaddrinfo(ai); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, udp_strerror(err)); - return 2; - } - lua_pushnumber(L, (lua_Number) sent); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Receives data from a UDP socket -\*-------------------------------------------------------------------------*/ -static int meth_receive(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - char buf[UDP_DATAGRAMSIZE]; - size_t got, wanted = (size_t) luaL_optnumber(L, 2, sizeof(buf)); - char *dgram = wanted > sizeof(buf)? (char *) malloc(wanted): buf; - int err; - p_timeout tm = &udp->tm; - timeout_markstart(tm); - if (!dgram) { - lua_pushnil(L); - lua_pushliteral(L, "out of memory"); - return 2; - } - err = socket_recv(&udp->sock, dgram, wanted, &got, tm); - /* Unlike TCP, recv() of zero is not closed, but a zero-length packet. */ - if (err != IO_DONE && err != IO_CLOSED) { - lua_pushnil(L); - lua_pushstring(L, udp_strerror(err)); - if (wanted > sizeof(buf)) free(dgram); - return 2; - } - lua_pushlstring(L, dgram, got); - if (wanted > sizeof(buf)) free(dgram); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Receives data and sender from a UDP socket -\*-------------------------------------------------------------------------*/ -static int meth_receivefrom(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{unconnected}", 1); - char buf[UDP_DATAGRAMSIZE]; - size_t got, wanted = (size_t) luaL_optnumber(L, 2, sizeof(buf)); - char *dgram = wanted > sizeof(buf)? (char *) malloc(wanted): buf; - struct sockaddr_storage addr; - socklen_t addr_len = sizeof(addr); - char addrstr[INET6_ADDRSTRLEN]; - char portstr[6]; - int err; - p_timeout tm = &udp->tm; - timeout_markstart(tm); - if (!dgram) { - lua_pushnil(L); - lua_pushliteral(L, "out of memory"); - return 2; - } - err = socket_recvfrom(&udp->sock, dgram, wanted, &got, (SA *) &addr, - &addr_len, tm); - /* Unlike TCP, recv() of zero is not closed, but a zero-length packet. */ - if (err != IO_DONE && err != IO_CLOSED) { - lua_pushnil(L); - lua_pushstring(L, udp_strerror(err)); - if (wanted > sizeof(buf)) free(dgram); - return 2; - } - err = getnameinfo((struct sockaddr *)&addr, addr_len, addrstr, - INET6_ADDRSTRLEN, portstr, 6, NI_NUMERICHOST | NI_NUMERICSERV); - if (err) { - lua_pushnil(L); - lua_pushstring(L, gai_strerror(err)); - if (wanted > sizeof(buf)) free(dgram); - return 2; - } - lua_pushlstring(L, dgram, got); - lua_pushstring(L, addrstr); - lua_pushinteger(L, (int) strtol(portstr, (char **) NULL, 10)); - if (wanted > sizeof(buf)) free(dgram); - return 3; -} - -/*-------------------------------------------------------------------------*\ -* Returns family as string -\*-------------------------------------------------------------------------*/ -static int meth_getfamily(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - if (udp->family == AF_INET6) { - lua_pushliteral(L, "inet6"); - return 1; - } else { - lua_pushliteral(L, "inet4"); - return 1; - } -} - -/*-------------------------------------------------------------------------*\ -* Select support methods -\*-------------------------------------------------------------------------*/ -static int meth_getfd(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - lua_pushnumber(L, (int) udp->sock); - return 1; -} - -/* this is very dangerous, but can be handy for those that are brave enough */ -static int meth_setfd(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - udp->sock = (t_socket) luaL_checknumber(L, 2); - return 0; -} - -static int meth_dirty(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - (void) udp; - lua_pushboolean(L, 0); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Just call inet methods -\*-------------------------------------------------------------------------*/ -static int meth_getpeername(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{connected}", 1); - return inet_meth_getpeername(L, &udp->sock, udp->family); -} - -static int meth_getsockname(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - return inet_meth_getsockname(L, &udp->sock, udp->family); -} - -/*-------------------------------------------------------------------------*\ -* Just call option handler -\*-------------------------------------------------------------------------*/ -static int meth_setoption(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - return opt_meth_setoption(L, optset, &udp->sock); -} - -/*-------------------------------------------------------------------------*\ -* Just call option handler -\*-------------------------------------------------------------------------*/ -static int meth_getoption(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - return opt_meth_getoption(L, optget, &udp->sock); -} - -/*-------------------------------------------------------------------------*\ -* Just call tm methods -\*-------------------------------------------------------------------------*/ -static int meth_settimeout(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - return timeout_meth_settimeout(L, &udp->tm); -} - -static int meth_gettimeout(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - return timeout_meth_gettimeout(L, &udp->tm); -} - -/*-------------------------------------------------------------------------*\ -* Turns a master udp object into a client object. -\*-------------------------------------------------------------------------*/ -static int meth_setpeername(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - p_timeout tm = &udp->tm; - const char *address = luaL_checkstring(L, 2); - int connecting = strcmp(address, "*"); - const char *port = connecting? luaL_checkstring(L, 3): "0"; - struct addrinfo connecthints; - const char *err; - memset(&connecthints, 0, sizeof(connecthints)); - connecthints.ai_socktype = SOCK_DGRAM; - /* make sure we try to connect only to the same family */ - connecthints.ai_family = udp->family; - if (connecting) { - err = inet_tryconnect(&udp->sock, &udp->family, address, - port, tm, &connecthints); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - auxiliar_setclass(L, "udp{connected}", 1); - } else { - /* we ignore possible errors because Mac OS X always - * returns EAFNOSUPPORT */ - inet_trydisconnect(&udp->sock, udp->family, tm); - auxiliar_setclass(L, "udp{unconnected}", 1); - } - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Closes socket used by object -\*-------------------------------------------------------------------------*/ -static int meth_close(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1); - socket_destroy(&udp->sock); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Turns a master object into a server object -\*-------------------------------------------------------------------------*/ -static int meth_setsockname(lua_State *L) { - p_udp udp = (p_udp) auxiliar_checkclass(L, "udp{unconnected}", 1); - const char *address = luaL_checkstring(L, 2); - const char *port = luaL_checkstring(L, 3); - const char *err; - struct addrinfo bindhints; - memset(&bindhints, 0, sizeof(bindhints)); - bindhints.ai_socktype = SOCK_DGRAM; - bindhints.ai_family = udp->family; - bindhints.ai_flags = AI_PASSIVE; - err = inet_trybind(&udp->sock, &udp->family, address, port, &bindhints); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - lua_pushnumber(L, 1); - return 1; -} - -/*=========================================================================*\ -* Library functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Creates a master udp object -\*-------------------------------------------------------------------------*/ -static int udp_create(lua_State *L, int family) { - /* allocate udp object */ - p_udp udp = (p_udp) lua_newuserdata(L, sizeof(t_udp)); - auxiliar_setclass(L, "udp{unconnected}", -1); - /* if family is AF_UNSPEC, we leave the socket invalid and - * store AF_UNSPEC into family. This will allow it to later be - * replaced with an AF_INET6 or AF_INET socket upon first use. */ - udp->sock = SOCKET_INVALID; - timeout_init(&udp->tm, -1, -1); - udp->family = family; - if (family != AF_UNSPEC) { - const char *err = inet_trycreate(&udp->sock, family, SOCK_DGRAM, 0); - if (err != NULL) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - socket_setnonblocking(&udp->sock); - } - return 1; -} - -static int global_create(lua_State *L) { - return udp_create(L, AF_UNSPEC); -} - -static int global_create4(lua_State *L) { - return udp_create(L, AF_INET); -} - -static int global_create6(lua_State *L) { - return udp_create(L, AF_INET6); -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/udp.h b/Build/source/texk/web2c/luatexdir/luasocket/src/udp.h deleted file mode 100644 index be9b6a5530f..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/udp.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef UDP_H -#define UDP_H -/*=========================================================================*\ -* UDP object -* LuaSocket toolkit -* -* The udp.h module provides LuaSocket with support for UDP protocol -* (AF_INET, SOCK_DGRAM). -* -* Two classes are defined: connected and unconnected. UDP objects are -* originally unconnected. They can be "connected" to a given address -* with a call to the setpeername function. The same function can be used to -* break the connection. -\*=========================================================================*/ -#include "lua.h" - -#include "timeout.h" -#include "socket.h" - -#define UDP_DATAGRAMSIZE 8192 - -typedef struct t_udp_ { - t_socket sock; - t_timeout tm; - int family; -} t_udp; -typedef t_udp *p_udp; - -int udp_open(lua_State *L); - -#endif /* UDP_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/unix.c b/Build/source/texk/web2c/luatexdir/luasocket/src/unix.c deleted file mode 100644 index dbc87100da3..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/unix.c +++ /dev/null @@ -1,70 +0,0 @@ -/*=========================================================================*\ -* Unix domain socket -* LuaSocket toolkit -\*=========================================================================*/ -#include "lua.h" -#include "lauxlib.h" - -#include "unixstream.h" -#include "unixdgram.h" - -/*-------------------------------------------------------------------------*\ -* Modules and functions -\*-------------------------------------------------------------------------*/ -static const luaL_Reg mod[] = { - {"stream", unixstream_open}, - {"dgram", unixdgram_open}, - {NULL, NULL} -}; - -static void add_alias(lua_State *L, int index, const char *name, const char *target) -{ - lua_getfield(L, index, target); - lua_setfield(L, index, name); -} - -static int compat_socket_unix_call(lua_State *L) -{ - /* Look up socket.unix.stream in the socket.unix table (which is the first - * argument). */ - lua_getfield(L, 1, "stream"); - - /* Replace the stack entry for the socket.unix table with the - * socket.unix.stream function. */ - lua_replace(L, 1); - - /* Call socket.unix.stream, passing along any arguments. */ - int n = lua_gettop(L); - lua_call(L, n-1, LUA_MULTRET); - - /* Pass along the return values from socket.unix.stream. */ - n = lua_gettop(L); - return n; -} - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int luaopen_socket_unix(lua_State *L) -{ - int i; - lua_newtable(L); - int socket_unix_table = lua_gettop(L); - - for (i = 0; mod[i].name; i++) - mod[i].func(L); - - /* Add backwards compatibility aliases "tcp" and "udp" for the "stream" and - * "dgram" functions. */ - add_alias(L, socket_unix_table, "tcp", "stream"); - add_alias(L, socket_unix_table, "udp", "dgram"); - - /* Add a backwards compatibility function and a metatable setup to call it - * for the old socket.unix() interface. */ - lua_pushcfunction(L, compat_socket_unix_call); - lua_setfield(L, socket_unix_table, "__call"); - lua_pushvalue(L, socket_unix_table); - lua_setmetatable(L, socket_unix_table); - - return 1; -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/unix.h b/Build/source/texk/web2c/luatexdir/luasocket/src/unix.h deleted file mode 100644 index d55444fe575..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/unix.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef UNIX_H -#define UNIX_H -/*=========================================================================*\ -* Unix domain object -* LuaSocket toolkit -* -* This module is just an example of how to extend LuaSocket with a new -* domain. -\*=========================================================================*/ -#include "lua.h" - -#include "buffer.h" -#include "timeout.h" -#include "socket.h" -#include "luasocket.h" - -#ifndef UNIX_API -#define UNIX_API extern -#endif - -typedef struct t_unix_ { - t_socket sock; - t_io io; - t_buffer buf; - t_timeout tm; -} t_unix; -typedef t_unix *p_unix; - -UNIX_API int luaopen_socket_unix(lua_State *L); - -#endif /* UNIX_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/unixdgram.c b/Build/source/texk/web2c/luatexdir/luasocket/src/unixdgram.c deleted file mode 100644 index 4645892fbe9..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/unixdgram.c +++ /dev/null @@ -1,408 +0,0 @@ -/*=========================================================================*\ -* Unix domain socket dgram submodule -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> -#include <stdlib.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "auxiliar.h" -#include "socket.h" -#include "options.h" -#include "unix.h" -#include <sys/un.h> - -#define UNIXDGRAM_DATAGRAMSIZE 8192 - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -static int global_create(lua_State *L); -static int meth_connect(lua_State *L); -static int meth_bind(lua_State *L); -static int meth_send(lua_State *L); -static int meth_receive(lua_State *L); -static int meth_close(lua_State *L); -static int meth_setoption(lua_State *L); -static int meth_settimeout(lua_State *L); -static int meth_gettimeout(lua_State *L); -static int meth_getfd(lua_State *L); -static int meth_setfd(lua_State *L); -static int meth_dirty(lua_State *L); -static int meth_receivefrom(lua_State *L); -static int meth_sendto(lua_State *L); -static int meth_getsockname(lua_State *L); - -static const char *unixdgram_tryconnect(p_unix un, const char *path); -static const char *unixdgram_trybind(p_unix un, const char *path); - -/* unixdgram object methods */ -static luaL_Reg unixdgram_methods[] = { - {"__gc", meth_close}, - {"__tostring", auxiliar_tostring}, - {"bind", meth_bind}, - {"close", meth_close}, - {"connect", meth_connect}, - {"dirty", meth_dirty}, - {"getfd", meth_getfd}, - {"send", meth_send}, - {"sendto", meth_sendto}, - {"receive", meth_receive}, - {"receivefrom", meth_receivefrom}, - {"setfd", meth_setfd}, - {"setoption", meth_setoption}, - {"setpeername", meth_connect}, - {"setsockname", meth_bind}, - {"getsockname", meth_getsockname}, - {"settimeout", meth_settimeout}, - {"gettimeout", meth_gettimeout}, - {NULL, NULL} -}; - -/* socket option handlers */ -static t_opt optset[] = { - {"reuseaddr", opt_set_reuseaddr}, - {NULL, NULL} -}; - -/* functions in library namespace */ -static luaL_Reg func[] = { - {"dgram", global_create}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int unixdgram_open(lua_State *L) -{ - /* create classes */ - auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); - auxiliar_newclass(L, "unixdgram{unconnected}", unixdgram_methods); - /* create class groups */ - auxiliar_add2group(L, "unixdgram{connected}", "unixdgram{any}"); - auxiliar_add2group(L, "unixdgram{unconnected}", "unixdgram{any}"); - auxiliar_add2group(L, "unixdgram{connected}", "select{able}"); - auxiliar_add2group(L, "unixdgram{unconnected}", "select{able}"); - - luaL_setfuncs(L, func, 0); - return 0; -} - -/*=========================================================================*\ -* Lua methods -\*=========================================================================*/ -static const char *unixdgram_strerror(int err) -{ - /* a 'closed' error on an unconnected means the target address was not - * accepted by the transport layer */ - if (err == IO_CLOSED) return "refused"; - else return socket_strerror(err); -} - -static int meth_send(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkclass(L, "unixdgram{connected}", 1); - p_timeout tm = &un->tm; - size_t count, sent = 0; - int err; - const char *data = luaL_checklstring(L, 2, &count); - timeout_markstart(tm); - err = socket_send(&un->sock, data, count, &sent, tm); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, unixdgram_strerror(err)); - return 2; - } - lua_pushnumber(L, (lua_Number) sent); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Send data through unconnected unixdgram socket -\*-------------------------------------------------------------------------*/ -static int meth_sendto(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkclass(L, "unixdgram{unconnected}", 1); - size_t count, sent = 0; - const char *data = luaL_checklstring(L, 2, &count); - const char *path = luaL_checkstring(L, 3); - p_timeout tm = &un->tm; - int err; - struct sockaddr_un remote; - size_t len = strlen(path); - - if (len >= sizeof(remote.sun_path)) { - lua_pushnil(L); - lua_pushstring(L, "path too long"); - return 2; - } - - memset(&remote, 0, sizeof(remote)); - strcpy(remote.sun_path, path); - remote.sun_family = AF_UNIX; - timeout_markstart(tm); -#ifdef UNIX_HAS_SUN_LEN - remote.sun_len = sizeof(remote.sun_family) + sizeof(remote.sun_len) - + len + 1; - err = socket_sendto(&un->sock, data, count, &sent, (SA *) &remote, remote.sun_len, tm); -#else - err = socket_sendto(&un->sock, data, count, &sent, (SA *) &remote, - sizeof(remote.sun_family) + len, tm); -#endif - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, unixdgram_strerror(err)); - return 2; - } - lua_pushnumber(L, (lua_Number) sent); - return 1; -} - -static int meth_receive(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - char buf[UNIXDGRAM_DATAGRAMSIZE]; - size_t got, wanted = (size_t) luaL_optnumber(L, 2, sizeof(buf)); - char *dgram = wanted > sizeof(buf)? (char *) malloc(wanted): buf; - int err; - p_timeout tm = &un->tm; - timeout_markstart(tm); - if (!dgram) { - lua_pushnil(L); - lua_pushliteral(L, "out of memory"); - return 2; - } - err = socket_recv(&un->sock, dgram, wanted, &got, tm); - /* Unlike STREAM, recv() of zero is not closed, but a zero-length packet. */ - if (err != IO_DONE && err != IO_CLOSED) { - lua_pushnil(L); - lua_pushstring(L, unixdgram_strerror(err)); - if (wanted > sizeof(buf)) free(dgram); - return 2; - } - lua_pushlstring(L, dgram, got); - if (wanted > sizeof(buf)) free(dgram); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Receives data and sender from a DGRAM socket -\*-------------------------------------------------------------------------*/ -static int meth_receivefrom(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unixdgram{unconnected}", 1); - char buf[UNIXDGRAM_DATAGRAMSIZE]; - size_t got, wanted = (size_t) luaL_optnumber(L, 2, sizeof(buf)); - char *dgram = wanted > sizeof(buf)? (char *) malloc(wanted): buf; - struct sockaddr_un addr; - socklen_t addr_len = sizeof(addr); - int err; - p_timeout tm = &un->tm; - timeout_markstart(tm); - if (!dgram) { - lua_pushnil(L); - lua_pushliteral(L, "out of memory"); - return 2; - } - addr.sun_path[0] = '\0'; - err = socket_recvfrom(&un->sock, dgram, wanted, &got, (SA *) &addr, - &addr_len, tm); - /* Unlike STREAM, recv() of zero is not closed, but a zero-length packet. */ - if (err != IO_DONE && err != IO_CLOSED) { - lua_pushnil(L); - lua_pushstring(L, unixdgram_strerror(err)); - if (wanted > sizeof(buf)) free(dgram); - return 2; - } - - lua_pushlstring(L, dgram, got); - /* the path may be empty, when client send without bind */ - lua_pushstring(L, addr.sun_path); - if (wanted > sizeof(buf)) free(dgram); - return 2; -} - -/*-------------------------------------------------------------------------*\ -* Just call option handler -\*-------------------------------------------------------------------------*/ -static int meth_setoption(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - return opt_meth_setoption(L, optset, &un->sock); -} - -/*-------------------------------------------------------------------------*\ -* Select support methods -\*-------------------------------------------------------------------------*/ -static int meth_getfd(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - lua_pushnumber(L, (int) un->sock); - return 1; -} - -/* this is very dangerous, but can be handy for those that are brave enough */ -static int meth_setfd(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - un->sock = (t_socket) luaL_checknumber(L, 2); - return 0; -} - -static int meth_dirty(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - (void) un; - lua_pushboolean(L, 0); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Binds an object to an address -\*-------------------------------------------------------------------------*/ -static const char *unixdgram_trybind(p_unix un, const char *path) { - struct sockaddr_un local; - size_t len = strlen(path); - int err; - if (len >= sizeof(local.sun_path)) return "path too long"; - memset(&local, 0, sizeof(local)); - strcpy(local.sun_path, path); - local.sun_family = AF_UNIX; -#ifdef UNIX_HAS_SUN_LEN - local.sun_len = sizeof(local.sun_family) + sizeof(local.sun_len) - + len + 1; - err = socket_bind(&un->sock, (SA *) &local, local.sun_len); - -#else - err = socket_bind(&un->sock, (SA *) &local, - sizeof(local.sun_family) + len); -#endif - if (err != IO_DONE) socket_destroy(&un->sock); - return socket_strerror(err); -} - -static int meth_bind(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkclass(L, "unixdgram{unconnected}", 1); - const char *path = luaL_checkstring(L, 2); - const char *err = unixdgram_trybind(un, path); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - lua_pushnumber(L, 1); - return 1; -} - -static int meth_getsockname(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - struct sockaddr_un peer = {0}; - socklen_t peer_len = sizeof(peer); - - if (getsockname(un->sock, (SA *) &peer, &peer_len) < 0) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(errno)); - return 2; - } - - lua_pushstring(L, peer.sun_path); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Turns a master unixdgram object into a client object. -\*-------------------------------------------------------------------------*/ -static const char *unixdgram_tryconnect(p_unix un, const char *path) -{ - struct sockaddr_un remote; - int err; - size_t len = strlen(path); - if (len >= sizeof(remote.sun_path)) return "path too long"; - memset(&remote, 0, sizeof(remote)); - strcpy(remote.sun_path, path); - remote.sun_family = AF_UNIX; - timeout_markstart(&un->tm); -#ifdef UNIX_HAS_SUN_LEN - remote.sun_len = sizeof(remote.sun_family) + sizeof(remote.sun_len) - + len + 1; - err = socket_connect(&un->sock, (SA *) &remote, remote.sun_len, &un->tm); -#else - err = socket_connect(&un->sock, (SA *) &remote, - sizeof(remote.sun_family) + len, &un->tm); -#endif - if (err != IO_DONE) socket_destroy(&un->sock); - return socket_strerror(err); -} - -static int meth_connect(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - const char *path = luaL_checkstring(L, 2); - const char *err = unixdgram_tryconnect(un, path); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - /* turn unconnected object into a connected object */ - auxiliar_setclass(L, "unixdgram{connected}", 1); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Closes socket used by object -\*-------------------------------------------------------------------------*/ -static int meth_close(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - socket_destroy(&un->sock); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Just call tm methods -\*-------------------------------------------------------------------------*/ -static int meth_settimeout(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - return timeout_meth_settimeout(L, &un->tm); -} - -static int meth_gettimeout(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1); - return timeout_meth_gettimeout(L, &un->tm); -} - -/*=========================================================================*\ -* Library functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Creates a master unixdgram object -\*-------------------------------------------------------------------------*/ -static int global_create(lua_State *L) -{ - t_socket sock; - int err = socket_create(&sock, AF_UNIX, SOCK_DGRAM, 0); - /* try to allocate a system socket */ - if (err == IO_DONE) { - /* allocate unixdgram object */ - p_unix un = (p_unix) lua_newuserdata(L, sizeof(t_unix)); - /* set its type as master object */ - auxiliar_setclass(L, "unixdgram{unconnected}", -1); - /* initialize remaining structure fields */ - socket_setnonblocking(&sock); - un->sock = sock; - io_init(&un->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &un->sock); - timeout_init(&un->tm, -1, -1); - buffer_init(&un->buf, &un->io, &un->tm); - return 1; - } else { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(err)); - return 2; - } -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/unixdgram.h b/Build/source/texk/web2c/luatexdir/luasocket/src/unixdgram.h deleted file mode 100644 index 7187966d48d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/unixdgram.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef UNIXDGRAM_H -#define UNIXDGRAM_H -/*=========================================================================*\ -* DGRAM object -* LuaSocket toolkit -* -* The dgram.h module provides LuaSocket with support for DGRAM protocol -* (AF_INET, SOCK_DGRAM). -* -* Two classes are defined: connected and unconnected. DGRAM objects are -* originally unconnected. They can be "connected" to a given address -* with a call to the setpeername function. The same function can be used to -* break the connection. -\*=========================================================================*/ - -#include "unix.h" - -int unixdgram_open(lua_State *L); - -#endif /* UNIXDGRAM_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/unixstream.c b/Build/source/texk/web2c/luatexdir/luasocket/src/unixstream.c deleted file mode 100644 index 0b9055ccbce..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/unixstream.c +++ /dev/null @@ -1,357 +0,0 @@ -/*=========================================================================*\ -* Unix domain socket stream sub module -* LuaSocket toolkit -\*=========================================================================*/ -#include <string.h> - -#include "lua.h" -#include "lauxlib.h" -#include "compat.h" - -#include "auxiliar.h" -#include "socket.h" -#include "options.h" -#include "unixstream.h" -#include <sys/un.h> - -/*=========================================================================*\ -* Internal function prototypes -\*=========================================================================*/ -static int global_create(lua_State *L); -static int meth_connect(lua_State *L); -static int meth_listen(lua_State *L); -static int meth_bind(lua_State *L); -static int meth_send(lua_State *L); -static int meth_shutdown(lua_State *L); -static int meth_receive(lua_State *L); -static int meth_accept(lua_State *L); -static int meth_close(lua_State *L); -static int meth_setoption(lua_State *L); -static int meth_settimeout(lua_State *L); -static int meth_getfd(lua_State *L); -static int meth_setfd(lua_State *L); -static int meth_dirty(lua_State *L); -static int meth_getstats(lua_State *L); -static int meth_setstats(lua_State *L); -static int meth_getsockname(lua_State *L); - -static const char *unixstream_tryconnect(p_unix un, const char *path); -static const char *unixstream_trybind(p_unix un, const char *path); - -/* unixstream object methods */ -static luaL_Reg unixstream_methods[] = { - {"__gc", meth_close}, - {"__tostring", auxiliar_tostring}, - {"accept", meth_accept}, - {"bind", meth_bind}, - {"close", meth_close}, - {"connect", meth_connect}, - {"dirty", meth_dirty}, - {"getfd", meth_getfd}, - {"getstats", meth_getstats}, - {"setstats", meth_setstats}, - {"listen", meth_listen}, - {"receive", meth_receive}, - {"send", meth_send}, - {"setfd", meth_setfd}, - {"setoption", meth_setoption}, - {"setpeername", meth_connect}, - {"setsockname", meth_bind}, - {"getsockname", meth_getsockname}, - {"settimeout", meth_settimeout}, - {"shutdown", meth_shutdown}, - {NULL, NULL} -}; - -/* socket option handlers */ -static t_opt optset[] = { - {"keepalive", opt_set_keepalive}, - {"reuseaddr", opt_set_reuseaddr}, - {"linger", opt_set_linger}, - {NULL, NULL} -}; - -/* functions in library namespace */ -static luaL_Reg func[] = { - {"stream", global_create}, - {NULL, NULL} -}; - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int unixstream_open(lua_State *L) -{ - /* create classes */ - auxiliar_newclass(L, "unixstream{master}", unixstream_methods); - auxiliar_newclass(L, "unixstream{client}", unixstream_methods); - auxiliar_newclass(L, "unixstream{server}", unixstream_methods); - - /* create class groups */ - auxiliar_add2group(L, "unixstream{master}", "unixstream{any}"); - auxiliar_add2group(L, "unixstream{client}", "unixstream{any}"); - auxiliar_add2group(L, "unixstream{server}", "unixstream{any}"); - - luaL_setfuncs(L, func, 0); - return 0; -} - -/*=========================================================================*\ -* Lua methods -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Just call buffered IO methods -\*-------------------------------------------------------------------------*/ -static int meth_send(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{client}", 1); - return buffer_meth_send(L, &un->buf); -} - -static int meth_receive(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{client}", 1); - return buffer_meth_receive(L, &un->buf); -} - -static int meth_getstats(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{client}", 1); - return buffer_meth_getstats(L, &un->buf); -} - -static int meth_setstats(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{client}", 1); - return buffer_meth_setstats(L, &un->buf); -} - -/*-------------------------------------------------------------------------*\ -* Just call option handler -\*-------------------------------------------------------------------------*/ -static int meth_setoption(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - return opt_meth_setoption(L, optset, &un->sock); -} - -/*-------------------------------------------------------------------------*\ -* Select support methods -\*-------------------------------------------------------------------------*/ -static int meth_getfd(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - lua_pushnumber(L, (int) un->sock); - return 1; -} - -/* this is very dangerous, but can be handy for those that are brave enough */ -static int meth_setfd(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - un->sock = (t_socket) luaL_checknumber(L, 2); - return 0; -} - -static int meth_dirty(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - lua_pushboolean(L, !buffer_isempty(&un->buf)); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Waits for and returns a client object attempting connection to the -* server object -\*-------------------------------------------------------------------------*/ -static int meth_accept(lua_State *L) { - p_unix server = (p_unix) auxiliar_checkclass(L, "unixstream{server}", 1); - p_timeout tm = timeout_markstart(&server->tm); - t_socket sock; - int err = socket_accept(&server->sock, &sock, NULL, NULL, tm); - /* if successful, push client socket */ - if (err == IO_DONE) { - p_unix clnt = (p_unix) lua_newuserdata(L, sizeof(t_unix)); - auxiliar_setclass(L, "unixstream{client}", -1); - /* initialize structure fields */ - socket_setnonblocking(&sock); - clnt->sock = sock; - io_init(&clnt->io, (p_send)socket_send, (p_recv)socket_recv, - (p_error) socket_ioerror, &clnt->sock); - timeout_init(&clnt->tm, -1, -1); - buffer_init(&clnt->buf, &clnt->io, &clnt->tm); - return 1; - } else { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(err)); - return 2; - } -} - -/*-------------------------------------------------------------------------*\ -* Binds an object to an address -\*-------------------------------------------------------------------------*/ -static const char *unixstream_trybind(p_unix un, const char *path) { - struct sockaddr_un local; - size_t len = strlen(path); - int err; - if (len >= sizeof(local.sun_path)) return "path too long"; - memset(&local, 0, sizeof(local)); - strcpy(local.sun_path, path); - local.sun_family = AF_UNIX; -#ifdef UNIX_HAS_SUN_LEN - local.sun_len = sizeof(local.sun_family) + sizeof(local.sun_len) - + len + 1; - err = socket_bind(&un->sock, (SA *) &local, local.sun_len); - -#else - err = socket_bind(&un->sock, (SA *) &local, - sizeof(local.sun_family) + len); -#endif - if (err != IO_DONE) socket_destroy(&un->sock); - return socket_strerror(err); -} - -static int meth_bind(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{master}", 1); - const char *path = luaL_checkstring(L, 2); - const char *err = unixstream_trybind(un, path); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - lua_pushnumber(L, 1); - return 1; -} - -static int meth_getsockname(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - struct sockaddr_un peer = {0}; - socklen_t peer_len = sizeof(peer); - - if (getsockname(un->sock, (SA *) &peer, &peer_len) < 0) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(errno)); - return 2; - } - - lua_pushstring(L, peer.sun_path); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Turns a master unixstream object into a client object. -\*-------------------------------------------------------------------------*/ -static const char *unixstream_tryconnect(p_unix un, const char *path) -{ - struct sockaddr_un remote; - int err; - size_t len = strlen(path); - if (len >= sizeof(remote.sun_path)) return "path too long"; - memset(&remote, 0, sizeof(remote)); - strcpy(remote.sun_path, path); - remote.sun_family = AF_UNIX; - timeout_markstart(&un->tm); -#ifdef UNIX_HAS_SUN_LEN - remote.sun_len = sizeof(remote.sun_family) + sizeof(remote.sun_len) - + len + 1; - err = socket_connect(&un->sock, (SA *) &remote, remote.sun_len, &un->tm); -#else - err = socket_connect(&un->sock, (SA *) &remote, - sizeof(remote.sun_family) + len, &un->tm); -#endif - if (err != IO_DONE) socket_destroy(&un->sock); - return socket_strerror(err); -} - -static int meth_connect(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{master}", 1); - const char *path = luaL_checkstring(L, 2); - const char *err = unixstream_tryconnect(un, path); - if (err) { - lua_pushnil(L); - lua_pushstring(L, err); - return 2; - } - /* turn master object into a client object */ - auxiliar_setclass(L, "unixstream{client}", 1); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Closes socket used by object -\*-------------------------------------------------------------------------*/ -static int meth_close(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - socket_destroy(&un->sock); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Puts the sockt in listen mode -\*-------------------------------------------------------------------------*/ -static int meth_listen(lua_State *L) -{ - p_unix un = (p_unix) auxiliar_checkclass(L, "unixstream{master}", 1); - int backlog = (int) luaL_optnumber(L, 2, 32); - int err = socket_listen(&un->sock, backlog); - if (err != IO_DONE) { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(err)); - return 2; - } - /* turn master object into a server object */ - auxiliar_setclass(L, "unixstream{server}", 1); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Shuts the connection down partially -\*-------------------------------------------------------------------------*/ -static int meth_shutdown(lua_State *L) -{ - /* SHUT_RD, SHUT_WR, SHUT_RDWR have the value 0, 1, 2, so we can use method index directly */ - static const char* methods[] = { "receive", "send", "both", NULL }; - p_unix stream = (p_unix) auxiliar_checkclass(L, "unixstream{client}", 1); - int how = luaL_checkoption(L, 2, "both", methods); - socket_shutdown(&stream->sock, how); - lua_pushnumber(L, 1); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Just call tm methods -\*-------------------------------------------------------------------------*/ -static int meth_settimeout(lua_State *L) { - p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); - return timeout_meth_settimeout(L, &un->tm); -} - -/*=========================================================================*\ -* Library functions -\*=========================================================================*/ -/*-------------------------------------------------------------------------*\ -* Creates a master unixstream object -\*-------------------------------------------------------------------------*/ -static int global_create(lua_State *L) { - t_socket sock; - int err = socket_create(&sock, AF_UNIX, SOCK_STREAM, 0); - /* try to allocate a system socket */ - if (err == IO_DONE) { - /* allocate unixstream object */ - p_unix un = (p_unix) lua_newuserdata(L, sizeof(t_unix)); - /* set its type as master object */ - auxiliar_setclass(L, "unixstream{master}", -1); - /* initialize remaining structure fields */ - socket_setnonblocking(&sock); - un->sock = sock; - io_init(&un->io, (p_send) socket_send, (p_recv) socket_recv, - (p_error) socket_ioerror, &un->sock); - timeout_init(&un->tm, -1, -1); - buffer_init(&un->buf, &un->io, &un->tm); - return 1; - } else { - lua_pushnil(L); - lua_pushstring(L, socket_strerror(err)); - return 2; - } -} diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/unixstream.h b/Build/source/texk/web2c/luatexdir/luasocket/src/unixstream.h deleted file mode 100644 index ef1d071ec76..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/unixstream.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef UNIXSTREAM_H -#define UNIXSTREAM_H -/*=========================================================================*\ -* UNIX STREAM object -* LuaSocket toolkit -* -* The unixstream.h module is basicly a glue that puts together modules buffer.h, -* timeout.h socket.h and inet.h to provide the LuaSocket UNIX STREAM (AF_UNIX, -* SOCK_STREAM) support. -* -* Three classes are defined: master, client and server. The master class is -* a newly created unixstream object, that has not been bound or connected. Server -* objects are unixstream objects bound to some local address. Client objects are -* unixstream objects either connected to some address or returned by the accept -* method of a server object. -\*=========================================================================*/ -#include "unix.h" - -int unixstream_open(lua_State *L); - -#endif /* UNIXSTREAM_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/url.lua b/Build/source/texk/web2c/luatexdir/luasocket/src/url.lua deleted file mode 100644 index e1657022273..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/url.lua +++ /dev/null @@ -1,189 +0,0 @@ -local string = require("string") -local base = _G -local table = require("table") -local socket = socket or require("socket") -socket.url = {} -local _M = socket.url -module("socket.url") -_M._VERSION = "URL 1.0.3" -function _M.escape(s) - return (string.gsub(s, "([^A-Za-z0-9_])", function(c) - return string.format("%%%02x", string.byte(c)) - end)) -end -local function make_set(t) - local s = {} - for i,v in base.ipairs(t) do - s[t[i]] = 1 - end - return s -end -local segment_set = make_set { - "-", "_", ".", "!", "~", "*", "'", "(", - ")", ":", "@", "&", "=", "+", "$", ",", -} -local function protect_segment(s) - return string.gsub(s, "([^A-Za-z0-9_])", function (c) - if segment_set[c] then return c - else return string.format("%%%02X", string.byte(c)) end - end) -end -function _M.unescape(s) - return (string.gsub(s, "%%(%x%x)", function(hex) - return string.char(base.tonumber(hex, 16)) - end)) -end -local function absolute_path(base_path, relative_path) - if string.sub(relative_path, 1, 1) == "/" then return relative_path end - local path = string.gsub(base_path, "[^/]*$", "") - path = path .. relative_path - path = string.gsub(path, "([^/]*%./)", function (s) - if s ~= "./" then return s else return "" end - end) - path = string.gsub(path, "/%.$", "/") - local reduced - while reduced ~= path do - reduced = path - path = string.gsub(reduced, "([^/]*/%.%./)", function (s) - if s ~= "../../" then return "" else return s end - end) - end - path = string.gsub(reduced, "([^/]*/%.%.)$", function (s) - if s ~= "../.." then return "" else return s end - end) - return path -end -function _M.parse(url, default) - local parsed = {} - for i,v in base.pairs(default or parsed) do parsed[i] = v end - if not url or url == "" then return nil, "invalid url" end - url = string.gsub(url, "#(.*)$", function(f) - parsed.fragment = f - return "" - end) - url = string.gsub(url, "^([%w][%w%+%-%.]*)%:", - function(s) parsed.scheme = s; return "" end) - url = string.gsub(url, "^//([^/]*)", function(n) - parsed.authority = n - return "" - end) - url = string.gsub(url, "%?(.*)", function(q) - parsed.query = q - return "" - end) - url = string.gsub(url, "%;(.*)", function(p) - parsed.params = p - return "" - end) - if url ~= "" then parsed.path = url end - local authority = parsed.authority - if not authority then return parsed end - authority = string.gsub(authority,"^([^@]*)@", - function(u) parsed.userinfo = u; return "" end) - authority = string.gsub(authority, ":([^:%]]*)$", - function(p) parsed.port = p; return "" end) - if authority ~= "" then - parsed.host = string.match(authority, "^%[(.+)%]$") or authority - end - local userinfo = parsed.userinfo - if not userinfo then return parsed end - userinfo = string.gsub(userinfo, ":([^:]*)$", - function(p) parsed.password = p; return "" end) - parsed.user = userinfo - return parsed -end -function _M.build(parsed) - local url = parsed.path or "" - if parsed.params then url = url .. ";" .. parsed.params end - if parsed.query then url = url .. "?" .. parsed.query end - local authority = parsed.authority - if parsed.host then - authority = parsed.host - if string.find(authority, ":") then -- IPv6? - authority = "[" .. authority .. "]" - end - if parsed.port then authority = authority .. ":" .. base.tostring(parsed.port) end - local userinfo = parsed.userinfo - if parsed.user then - userinfo = parsed.user - if parsed.password then - userinfo = userinfo .. ":" .. parsed.password - end - end - if userinfo then authority = userinfo .. "@" .. authority end - end - if authority then url = "//" .. authority .. url end - if parsed.scheme then url = parsed.scheme .. ":" .. url end - if parsed.fragment then url = url .. "#" .. parsed.fragment end - return url -end -function _M.absolute(base_url, relative_url) - local base_parsed - if base.type(base_url) == "table" then - base_parsed = base_url - base_url = _M.build(base_parsed) - else - base_parsed = _M.parse(base_url) - end - local relative_parsed = _M.parse(relative_url) - if not base_parsed then return relative_url - elseif not relative_parsed then return base_url - elseif relative_parsed.scheme then return relative_url - else - relative_parsed.scheme = base_parsed.scheme - if not relative_parsed.authority then - relative_parsed.authority = base_parsed.authority - if not relative_parsed.path then - relative_parsed.path = base_parsed.path - if not relative_parsed.params then - relative_parsed.params = base_parsed.params - if not relative_parsed.query then - relative_parsed.query = base_parsed.query - end - end - else - relative_parsed.path = absolute_path(base_parsed.path or "", - relative_parsed.path) - end - end - return _M.build(relative_parsed) - end -end -function _M.parse_path(path) - local parsed = {} - path = path or "" - string.gsub(path, "([^/]+)", function (s) table.insert(parsed, s) end) - for i = 1, #parsed do - parsed[i] = _M.unescape(parsed[i]) - end - if string.sub(path, 1, 1) == "/" then parsed.is_absolute = 1 end - if string.sub(path, -1, -1) == "/" then parsed.is_directory = 1 end - return parsed -end -function _M.build_path(parsed, unsafe) - local path = "" - local n = #parsed - if unsafe then - for i = 1, n-1 do - path = path .. parsed[i] - path = path .. "/" - end - if n > 0 then - path = path .. parsed[n] - if parsed.is_directory then path = path .. "/" end - end - else - for i = 1, n-1 do - path = path .. protect_segment(parsed[i]) - path = path .. "/" - end - if n > 0 then - path = path .. protect_segment(parsed[n]) - if parsed.is_directory then path = path .. "/" end - end - end - if parsed.is_absolute then path = "/" .. path end - return path -end -socket.url = _M -return _M diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/url.lua_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/url.lua_lua.c deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/url.lua_lua.c +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/url_lua.c b/Build/source/texk/web2c/luatexdir/luasocket/src/url_lua.c deleted file mode 100644 index 8e0e8c0ad61..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/url_lua.c +++ /dev/null @@ -1,543 +0,0 @@ -#include "lua.h" -#include "lauxlib.h" - -int luatex_url_lua_open (lua_State *L) { - static unsigned char B[] = { - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x20, 0x3d, 0x20, 0x5f, 0x47, - 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x20, 0x3d, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x29, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x6c, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x73, - 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x28, 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x22, 0x29, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x75, 0x72, - 0x6c, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, - 0x20, 0x5f, 0x4d, 0x20, 0x3d, 0x20, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x2e, 0x75, 0x72, 0x6c, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x28, - 0x22, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x75, 0x72, 0x6c, 0x22, - 0x29, 0x0a, 0x5f, 0x4d, 0x2e, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, - 0x4e, 0x20, 0x3d, 0x20, 0x22, 0x55, 0x52, 0x4c, 0x20, 0x31, 0x2e, 0x30, - 0x2e, 0x33, 0x22, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x5f, 0x4d, 0x2e, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x28, 0x73, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, - 0x62, 0x28, 0x73, 0x2c, 0x20, 0x22, 0x28, 0x5b, 0x5e, 0x41, 0x2d, 0x5a, - 0x61, 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5f, 0x5d, 0x29, 0x22, 0x2c, 0x20, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x63, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x28, 0x22, 0x25, 0x25, 0x25, 0x30, 0x32, 0x78, - 0x22, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x62, 0x79, - 0x74, 0x65, 0x28, 0x63, 0x29, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x29, 0x29, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x6d, 0x61, 0x6b, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x28, 0x74, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x20, - 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, - 0x20, 0x69, 0x2c, 0x76, 0x20, 0x69, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x69, 0x70, 0x61, 0x69, 0x72, 0x73, 0x28, 0x74, 0x29, 0x20, 0x64, - 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x5b, - 0x74, 0x5b, 0x69, 0x5d, 0x5d, 0x20, 0x3d, 0x20, 0x31, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, - 0x5f, 0x73, 0x65, 0x74, 0x20, 0x3d, 0x20, 0x6d, 0x61, 0x6b, 0x65, 0x5f, - 0x73, 0x65, 0x74, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x22, 0x2d, - 0x22, 0x2c, 0x20, 0x22, 0x5f, 0x22, 0x2c, 0x20, 0x22, 0x2e, 0x22, 0x2c, - 0x20, 0x22, 0x21, 0x22, 0x2c, 0x20, 0x22, 0x7e, 0x22, 0x2c, 0x20, 0x22, - 0x2a, 0x22, 0x2c, 0x20, 0x22, 0x27, 0x22, 0x2c, 0x20, 0x22, 0x28, 0x22, - 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x22, 0x29, 0x22, 0x2c, 0x20, 0x22, - 0x3a, 0x22, 0x2c, 0x20, 0x22, 0x40, 0x22, 0x2c, 0x20, 0x22, 0x26, 0x22, - 0x2c, 0x20, 0x22, 0x3d, 0x22, 0x2c, 0x20, 0x22, 0x2b, 0x22, 0x2c, 0x20, - 0x22, 0x24, 0x22, 0x2c, 0x20, 0x22, 0x2c, 0x22, 0x2c, 0x0a, 0x7d, 0x0a, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x5f, 0x73, - 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x28, 0x73, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x73, 0x2c, 0x20, - 0x22, 0x28, 0x5b, 0x5e, 0x41, 0x2d, 0x5a, 0x61, 0x2d, 0x7a, 0x30, 0x2d, - 0x39, 0x5f, 0x5d, 0x29, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x63, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x65, 0x67, 0x6d, 0x65, - 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x5b, 0x63, 0x5d, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x63, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x28, 0x22, 0x25, - 0x25, 0x25, 0x30, 0x32, 0x58, 0x22, 0x2c, 0x20, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x28, 0x63, 0x29, 0x29, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x29, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x75, 0x6e, 0x65, 0x73, 0x63, 0x61, 0x70, - 0x65, 0x28, 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x28, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x67, 0x73, 0x75, 0x62, 0x28, 0x73, 0x2c, 0x20, 0x22, 0x25, 0x25, 0x28, - 0x25, 0x78, 0x25, 0x78, 0x29, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x68, 0x65, 0x78, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x68, 0x61, 0x72, - 0x28, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x28, 0x68, 0x65, 0x78, 0x2c, 0x20, 0x31, 0x36, 0x29, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x29, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x62, 0x73, 0x6f, 0x6c, 0x75, - 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x28, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x70, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x73, 0x75, 0x62, 0x28, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x70, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x31, 0x29, - 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x2f, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, 0x6c, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x20, 0x65, 0x6e, - 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, - 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x62, 0x61, 0x73, 0x65, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x22, 0x5b, 0x5e, 0x2f, 0x5d, 0x2a, - 0x24, 0x22, 0x2c, 0x20, 0x22, 0x22, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, - 0x2e, 0x2e, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, - 0x68, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, - 0x73, 0x75, 0x62, 0x28, 0x70, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x22, 0x28, - 0x5b, 0x5e, 0x2f, 0x5d, 0x2a, 0x25, 0x2e, 0x2f, 0x29, 0x22, 0x2c, 0x20, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x73, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x73, 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x2e, 0x2f, 0x22, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x20, - 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x22, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, - 0x75, 0x62, 0x28, 0x70, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x22, 0x2f, 0x25, - 0x2e, 0x24, 0x22, 0x2c, 0x20, 0x22, 0x2f, 0x22, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x64, 0x75, - 0x63, 0x65, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x77, 0x68, 0x69, 0x6c, - 0x65, 0x20, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x20, 0x7e, 0x3d, - 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, - 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x72, - 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x2c, 0x20, 0x22, 0x28, 0x5b, 0x5e, - 0x2f, 0x5d, 0x2a, 0x2f, 0x25, 0x2e, 0x25, 0x2e, 0x2f, 0x29, 0x22, 0x2c, - 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x73, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x2e, - 0x2e, 0x2f, 0x2e, 0x2e, 0x2f, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, 0x22, 0x20, 0x65, 0x6c, - 0x73, 0x65, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, - 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x2c, 0x20, 0x22, 0x28, 0x5b, - 0x5e, 0x2f, 0x5d, 0x2a, 0x2f, 0x25, 0x2e, 0x25, 0x2e, 0x29, 0x24, 0x22, - 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, - 0x73, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x73, 0x20, 0x7e, 0x3d, 0x20, 0x22, 0x2e, 0x2e, 0x2f, 0x2e, - 0x2e, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x20, 0x22, 0x22, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x73, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, 0x75, - 0x72, 0x6c, 0x2c, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x2c, 0x76, 0x20, 0x69, - 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x73, - 0x28, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x6f, 0x72, 0x20, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x29, 0x20, 0x64, 0x6f, 0x20, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x5b, 0x69, 0x5d, 0x20, 0x3d, 0x20, 0x76, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x6f, 0x72, 0x20, 0x75, - 0x72, 0x6c, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x6e, 0x69, 0x6c, - 0x2c, 0x20, 0x22, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x20, 0x75, - 0x72, 0x6c, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x75, 0x72, 0x6c, 0x2c, 0x20, 0x22, - 0x23, 0x28, 0x2e, 0x2a, 0x29, 0x24, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x66, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, - 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x3d, 0x20, 0x66, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x75, 0x72, 0x6c, 0x20, - 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, - 0x62, 0x28, 0x75, 0x72, 0x6c, 0x2c, 0x20, 0x22, 0x5e, 0x28, 0x5b, 0x25, - 0x77, 0x5d, 0x5b, 0x25, 0x77, 0x25, 0x2b, 0x25, 0x2d, 0x25, 0x2e, 0x5d, - 0x2a, 0x29, 0x25, 0x3a, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x73, 0x29, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x73, 0x3b, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x75, - 0x72, 0x6c, 0x2c, 0x20, 0x22, 0x5e, 0x2f, 0x2f, 0x28, 0x5b, 0x5e, 0x2f, - 0x5d, 0x2a, 0x29, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x28, 0x6e, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x6e, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, - 0x75, 0x72, 0x6c, 0x2c, 0x20, 0x22, 0x25, 0x3f, 0x28, 0x2e, 0x2a, 0x29, - 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, - 0x71, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, - 0x3d, 0x20, 0x71, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x75, - 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x67, 0x73, 0x75, 0x62, 0x28, 0x75, 0x72, 0x6c, 0x2c, 0x20, 0x22, 0x25, - 0x3b, 0x28, 0x2e, 0x2a, 0x29, 0x22, 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x70, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x20, 0x3d, 0x20, 0x70, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x29, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x75, 0x72, 0x6c, 0x20, - 0x7e, 0x3d, 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, - 0x20, 0x75, 0x72, 0x6c, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2c, 0x22, 0x5e, - 0x28, 0x5b, 0x5e, 0x40, 0x5d, 0x2a, 0x29, 0x40, 0x22, 0x2c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x28, 0x75, 0x29, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x3d, - 0x20, 0x75, 0x3b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, - 0x22, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2c, 0x20, 0x22, 0x3a, - 0x28, 0x5b, 0x5e, 0x3a, 0x25, 0x5d, 0x5d, 0x2a, 0x29, 0x24, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x70, 0x29, 0x20, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x3d, 0x20, 0x70, - 0x3b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, 0x22, 0x20, - 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x7e, 0x3d, - 0x20, 0x22, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x28, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2c, 0x20, 0x22, 0x5e, 0x25, 0x5b, - 0x28, 0x2e, 0x2b, 0x29, 0x25, 0x5d, 0x24, 0x22, 0x29, 0x20, 0x6f, 0x72, - 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x75, 0x73, 0x65, 0x72, 0x69, 0x6e, - 0x66, 0x6f, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x75, 0x73, 0x65, 0x72, - 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x75, 0x73, 0x65, 0x72, - 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x3d, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x75, 0x73, 0x65, 0x72, 0x69, - 0x6e, 0x66, 0x6f, 0x2c, 0x20, 0x22, 0x3a, 0x28, 0x5b, 0x5e, 0x3a, 0x5d, - 0x2a, 0x29, 0x24, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x28, 0x70, - 0x29, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, 0x3d, 0x20, 0x70, 0x3b, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x22, 0x22, 0x20, 0x65, 0x6e, 0x64, - 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x75, 0x73, 0x65, 0x72, - 0x69, 0x6e, 0x66, 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x0a, 0x65, - 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x5f, 0x4d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x28, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x20, 0x6f, 0x72, 0x20, - 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x75, - 0x72, 0x6c, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x3b, 0x22, 0x20, 0x2e, 0x2e, - 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x75, 0x72, 0x6c, 0x20, - 0x3d, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x3f, 0x22, - 0x20, 0x2e, 0x2e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x64, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x66, 0x69, 0x6e, 0x64, 0x28, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x2c, 0x20, 0x22, 0x3a, 0x22, 0x29, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x2d, 0x2d, 0x20, 0x49, 0x50, 0x76, 0x36, 0x3f, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, - 0x20, 0x22, 0x5b, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x5d, 0x22, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x6f, 0x72, 0x74, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x20, 0x3d, 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x3a, 0x22, 0x20, 0x2e, 0x2e, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x6f, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x6f, - 0x72, 0x74, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x75, 0x73, - 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x75, 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, - 0x6f, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x75, 0x73, 0x65, 0x72, - 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x3d, 0x20, 0x75, 0x73, 0x65, 0x72, 0x69, - 0x6e, 0x66, 0x6f, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x3a, 0x22, 0x20, 0x2e, - 0x2e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x75, 0x73, 0x65, - 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x3d, 0x20, 0x75, - 0x73, 0x65, 0x72, 0x69, 0x6e, 0x66, 0x6f, 0x20, 0x2e, 0x2e, 0x20, 0x22, - 0x40, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x22, 0x2f, 0x2f, 0x22, - 0x20, 0x2e, 0x2e, 0x20, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x20, 0x2e, 0x2e, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, 0x20, 0x2e, - 0x2e, 0x20, 0x22, 0x3a, 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x75, 0x72, 0x6c, - 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x66, 0x72, 0x61, 0x67, 0x6d, - 0x65, 0x6e, 0x74, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x75, 0x72, 0x6c, - 0x20, 0x3d, 0x20, 0x75, 0x72, 0x6c, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x23, - 0x22, 0x20, 0x2e, 0x2e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, - 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, - 0x75, 0x72, 0x6c, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x61, 0x62, 0x73, 0x6f, - 0x6c, 0x75, 0x74, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, - 0x6c, 0x2c, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, - 0x75, 0x72, 0x6c, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, - 0x61, 0x6c, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x75, 0x72, 0x6c, 0x29, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x75, 0x72, 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, - 0x5f, 0x4d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x28, 0x62, 0x61, 0x73, - 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x29, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x64, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x28, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x29, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x3d, 0x20, - 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x28, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x62, 0x61, - 0x73, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x74, 0x68, - 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, 0x66, 0x20, 0x6e, 0x6f, - 0x74, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, - 0x72, 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x69, - 0x66, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x65, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, - 0x6c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x65, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x64, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x74, 0x68, - 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x64, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, - 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x20, 0x3d, 0x20, 0x62, 0x61, 0x73, - 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6c, 0x73, 0x65, 0x20, 0x20, 0x20, 0x20, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x61, - 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, - 0x28, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x2e, 0x70, 0x61, 0x74, 0x68, 0x20, 0x6f, 0x72, 0x20, 0x22, 0x22, 0x2c, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x2e, 0x70, 0x61, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x28, 0x72, - 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x73, - 0x65, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x5f, 0x4d, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x70, 0x61, - 0x74, 0x68, 0x28, 0x70, 0x61, 0x74, 0x68, 0x29, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x20, 0x3d, 0x20, 0x7b, 0x7d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x70, - 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x6f, - 0x72, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x67, 0x73, 0x75, 0x62, 0x28, 0x70, 0x61, 0x74, - 0x68, 0x2c, 0x20, 0x22, 0x28, 0x5b, 0x5e, 0x2f, 0x5d, 0x2b, 0x29, 0x22, - 0x2c, 0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, - 0x73, 0x29, 0x20, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x69, 0x6e, 0x73, - 0x65, 0x72, 0x74, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2c, 0x20, - 0x73, 0x29, 0x20, 0x65, 0x6e, 0x64, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x66, 0x6f, 0x72, 0x20, 0x69, 0x20, 0x3d, 0x20, 0x31, 0x2c, 0x20, 0x23, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x20, 0x64, 0x6f, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x5b, 0x69, 0x5d, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x2e, 0x75, 0x6e, 0x65, - 0x73, 0x63, 0x61, 0x70, 0x65, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x5b, 0x69, 0x5d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, - 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x73, 0x75, 0x62, 0x28, 0x70, 0x61, 0x74, 0x68, 0x2c, - 0x20, 0x31, 0x2c, 0x20, 0x31, 0x29, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x2f, - 0x22, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x69, 0x73, 0x5f, 0x61, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, - 0x65, 0x20, 0x3d, 0x20, 0x31, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x69, 0x66, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x73, 0x75, 0x62, 0x28, 0x70, 0x61, 0x74, 0x68, 0x2c, 0x20, 0x2d, 0x31, - 0x2c, 0x20, 0x2d, 0x31, 0x29, 0x20, 0x3d, 0x3d, 0x20, 0x22, 0x2f, 0x22, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x2e, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x79, 0x20, 0x3d, 0x20, 0x31, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x72, - 0x73, 0x65, 0x64, 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x5f, 0x4d, 0x2e, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2c, 0x20, 0x75, 0x6e, 0x73, 0x61, 0x66, 0x65, 0x29, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x70, 0x61, 0x74, - 0x68, 0x20, 0x3d, 0x20, 0x22, 0x22, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x6e, 0x20, 0x3d, 0x20, 0x23, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x75, 0x6e, 0x73, 0x61, 0x66, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x69, 0x20, 0x3d, 0x20, 0x31, 0x2c, 0x20, 0x6e, 0x2d, 0x31, 0x20, 0x64, - 0x6f, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, - 0x68, 0x20, 0x2e, 0x2e, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x5b, - 0x69, 0x5d, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, - 0x74, 0x68, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x2f, 0x22, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, 0x20, 0x3e, - 0x20, 0x30, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x2e, 0x2e, 0x20, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x64, 0x5b, 0x6e, 0x5d, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x2e, 0x69, 0x73, 0x5f, 0x64, 0x69, - 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x2f, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x20, 0x3d, - 0x20, 0x31, 0x2c, 0x20, 0x6e, 0x2d, 0x31, 0x20, 0x64, 0x6f, 0x0a, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, - 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x2e, - 0x2e, 0x20, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, - 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, - 0x5b, 0x69, 0x5d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x3d, 0x20, - 0x70, 0x61, 0x74, 0x68, 0x20, 0x2e, 0x2e, 0x20, 0x22, 0x2f, 0x22, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x6e, - 0x20, 0x3e, 0x20, 0x30, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x61, - 0x74, 0x68, 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x2e, 0x2e, - 0x20, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x67, - 0x6d, 0x65, 0x6e, 0x74, 0x28, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x5b, - 0x6e, 0x5d, 0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x64, 0x2e, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x79, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x20, 0x3d, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x2e, 0x2e, 0x20, 0x22, - 0x2f, 0x22, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, - 0x20, 0x20, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, - 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x64, 0x2e, 0x69, 0x73, 0x5f, 0x61, 0x62, 0x73, 0x6f, - 0x6c, 0x75, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x70, 0x61, - 0x74, 0x68, 0x20, 0x3d, 0x20, 0x22, 0x2f, 0x22, 0x20, 0x2e, 0x2e, 0x20, - 0x70, 0x61, 0x74, 0x68, 0x20, 0x65, 0x6e, 0x64, 0x0a, 0x20, 0x20, 0x20, - 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x70, 0x61, 0x74, 0x68, - 0x0a, 0x65, 0x6e, 0x64, 0x0a, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x75, 0x72, 0x6c, 0x20, 0x3d, 0x20, 0x5f, 0x4d, 0x0a, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x20, 0x5f, 0x4d, 0x0a, 0x00}; - return luaL_dostring(L, (const char*)B); -} /* end of embedded lua code */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/usocket.c b/Build/source/texk/web2c/luatexdir/luasocket/src/usocket.c deleted file mode 100644 index 6f7b75dc0ae..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/usocket.c +++ /dev/null @@ -1,453 +0,0 @@ -/*=========================================================================*\ -* Socket compatibilization module for Unix -* LuaSocket toolkit -* -* The code is now interrupt-safe. -* The penalty of calling select to avoid busy-wait is only paid when -* the I/O call fail in the first place. -\*=========================================================================*/ -#include <string.h> -#include <signal.h> - -#include "socket.h" -#include "pierror.h" - -/*-------------------------------------------------------------------------*\ -* Wait for readable/writable/connected socket with timeout -\*-------------------------------------------------------------------------*/ -#ifndef SOCKET_SELECT -#include <sys/poll.h> - -#define WAITFD_R POLLIN -#define WAITFD_W POLLOUT -#define WAITFD_C (POLLIN|POLLOUT) -int socket_waitfd(p_socket ps, int sw, p_timeout tm) { - int ret; - struct pollfd pfd; - pfd.fd = *ps; - pfd.events = sw; - pfd.revents = 0; - if (timeout_iszero(tm)) return IO_TIMEOUT; /* optimize timeout == 0 case */ - do { - int t = (int)(timeout_getretry(tm)*1e3); - ret = poll(&pfd, 1, t >= 0? t: -1); - } while (ret == -1 && errno == EINTR); - if (ret == -1) return errno; - if (ret == 0) return IO_TIMEOUT; - if (sw == WAITFD_C && (pfd.revents & (POLLIN|POLLERR))) return IO_CLOSED; - return IO_DONE; -} -#else - -#define WAITFD_R 1 -#define WAITFD_W 2 -#define WAITFD_C (WAITFD_R|WAITFD_W) - -int socket_waitfd(p_socket ps, int sw, p_timeout tm) { - int ret; - fd_set rfds, wfds, *rp, *wp; - struct timeval tv, *tp; - double t; - if (*ps >= FD_SETSIZE) return EINVAL; - if (timeout_iszero(tm)) return IO_TIMEOUT; /* optimize timeout == 0 case */ - do { - /* must set bits within loop, because select may have modifed them */ - rp = wp = NULL; - if (sw & WAITFD_R) { FD_ZERO(&rfds); FD_SET(*ps, &rfds); rp = &rfds; } - if (sw & WAITFD_W) { FD_ZERO(&wfds); FD_SET(*ps, &wfds); wp = &wfds; } - t = timeout_getretry(tm); - tp = NULL; - if (t >= 0.0) { - tv.tv_sec = (int)t; - tv.tv_usec = (int)((t-tv.tv_sec)*1.0e6); - tp = &tv; - } - ret = select(*ps+1, rp, wp, NULL, tp); - } while (ret == -1 && errno == EINTR); - if (ret == -1) return errno; - if (ret == 0) return IO_TIMEOUT; - if (sw == WAITFD_C && FD_ISSET(*ps, &rfds)) return IO_CLOSED; - return IO_DONE; -} -#endif - - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int socket_open(void) { - /* installs a handler to ignore sigpipe or it will crash us */ - signal(SIGPIPE, SIG_IGN); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Close module -\*-------------------------------------------------------------------------*/ -int socket_close(void) { - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Close and inutilize socket -\*-------------------------------------------------------------------------*/ -void socket_destroy(p_socket ps) { - if (*ps != SOCKET_INVALID) { - close(*ps); - *ps = SOCKET_INVALID; - } -} - -/*-------------------------------------------------------------------------*\ -* Select with timeout control -\*-------------------------------------------------------------------------*/ -int socket_select(t_socket n, fd_set *rfds, fd_set *wfds, fd_set *efds, - p_timeout tm) { - int ret; - do { - struct timeval tv; - double t = timeout_getretry(tm); - tv.tv_sec = (int) t; - tv.tv_usec = (int) ((t - tv.tv_sec) * 1.0e6); - /* timeout = 0 means no wait */ - ret = select(n, rfds, wfds, efds, t >= 0.0 ? &tv: NULL); - } while (ret < 0 && errno == EINTR); - return ret; -} - -/*-------------------------------------------------------------------------*\ -* Creates and sets up a socket -\*-------------------------------------------------------------------------*/ -int socket_create(p_socket ps, int domain, int type, int protocol) { - *ps = socket(domain, type, protocol); - if (*ps != SOCKET_INVALID) return IO_DONE; - else return errno; -} - -/*-------------------------------------------------------------------------*\ -* Binds or returns error message -\*-------------------------------------------------------------------------*/ -int socket_bind(p_socket ps, SA *addr, socklen_t len) { - int err = IO_DONE; - socket_setblocking(ps); - if (bind(*ps, addr, len) < 0) err = errno; - socket_setnonblocking(ps); - return err; -} - -/*-------------------------------------------------------------------------*\ -* -\*-------------------------------------------------------------------------*/ -int socket_listen(p_socket ps, int backlog) { - int err = IO_DONE; - if (listen(*ps, backlog)) err = errno; - return err; -} - -/*-------------------------------------------------------------------------*\ -* -\*-------------------------------------------------------------------------*/ -void socket_shutdown(p_socket ps, int how) { - shutdown(*ps, how); -} - -/*-------------------------------------------------------------------------*\ -* Connects or returns error message -\*-------------------------------------------------------------------------*/ -int socket_connect(p_socket ps, SA *addr, socklen_t len, p_timeout tm) { - int err; - /* avoid calling on closed sockets */ - if (*ps == SOCKET_INVALID) return IO_CLOSED; - /* call connect until done or failed without being interrupted */ - do if (connect(*ps, addr, len) == 0) return IO_DONE; - while ((err = errno) == EINTR); - /* if connection failed immediately, return error code */ - if (err != EINPROGRESS && err != EAGAIN) return err; - /* zero timeout case optimization */ - if (timeout_iszero(tm)) return IO_TIMEOUT; - /* wait until we have the result of the connection attempt or timeout */ - err = socket_waitfd(ps, WAITFD_C, tm); - if (err == IO_CLOSED) { - if (recv(*ps, (char *) &err, 0, 0) == 0) return IO_DONE; - else return errno; - } else return err; -} - -/*-------------------------------------------------------------------------*\ -* Accept with timeout -\*-------------------------------------------------------------------------*/ -int socket_accept(p_socket ps, p_socket pa, SA *addr, socklen_t *len, p_timeout tm) { - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - int err; - if ((*pa = accept(*ps, addr, len)) != SOCKET_INVALID) return IO_DONE; - err = errno; - if (err == EINTR) continue; - if (err != EAGAIN && err != ECONNABORTED) return err; - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } - /* can't reach here */ - return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Send with timeout -\*-------------------------------------------------------------------------*/ -int socket_send(p_socket ps, const char *data, size_t count, - size_t *sent, p_timeout tm) -{ - int err; - *sent = 0; - /* avoid making system calls on closed sockets */ - if (*ps == SOCKET_INVALID) return IO_CLOSED; - /* loop until we send something or we give up on error */ - for ( ;; ) { - long put = (long) send(*ps, data, count, 0); - /* if we sent anything, we are done */ - if (put >= 0) { - *sent = put; - return IO_DONE; - } - err = errno; - /* EPIPE means the connection was closed */ - if (err == EPIPE) return IO_CLOSED; - /* EPROTOTYPE means the connection is being closed (on Yosemite!)*/ - if (err == EPROTOTYPE) continue; - /* we call was interrupted, just try again */ - if (err == EINTR) continue; - /* if failed fatal reason, report error */ - if (err != EAGAIN) return err; - /* wait until we can send something or we timeout */ - if ((err = socket_waitfd(ps, WAITFD_W, tm)) != IO_DONE) return err; - } - /* can't reach here */ - return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Sendto with timeout -\*-------------------------------------------------------------------------*/ -int socket_sendto(p_socket ps, const char *data, size_t count, size_t *sent, - SA *addr, socklen_t len, p_timeout tm) -{ - int err; - *sent = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - long put = (long) sendto(*ps, data, count, 0, addr, len); - if (put >= 0) { - *sent = put; - return IO_DONE; - } - err = errno; - if (err == EPIPE) return IO_CLOSED; - if (err == EPROTOTYPE) continue; - if (err == EINTR) continue; - if (err != EAGAIN) return err; - if ((err = socket_waitfd(ps, WAITFD_W, tm)) != IO_DONE) return err; - } - return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Receive with timeout -\*-------------------------------------------------------------------------*/ -int socket_recv(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm) { - int err; - *got = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - long taken = (long) recv(*ps, data, count, 0); - if (taken > 0) { - *got = taken; - return IO_DONE; - } - err = errno; - if (taken == 0) return IO_CLOSED; - if (err == EINTR) continue; - if (err != EAGAIN) return err; - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } - return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Recvfrom with timeout -\*-------------------------------------------------------------------------*/ -int socket_recvfrom(p_socket ps, char *data, size_t count, size_t *got, - SA *addr, socklen_t *len, p_timeout tm) { - int err; - *got = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - long taken = (long) recvfrom(*ps, data, count, 0, addr, len); - if (taken > 0) { - *got = taken; - return IO_DONE; - } - err = errno; - if (taken == 0) return IO_CLOSED; - if (err == EINTR) continue; - if (err != EAGAIN) return err; - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } - return IO_UNKNOWN; -} - - -/*-------------------------------------------------------------------------*\ -* Write with timeout -* -* socket_read and socket_write are cut-n-paste of socket_send and socket_recv, -* with send/recv replaced with write/read. We can't just use write/read -* in the socket version, because behaviour when size is zero is different. -\*-------------------------------------------------------------------------*/ -int socket_write(p_socket ps, const char *data, size_t count, - size_t *sent, p_timeout tm) -{ - int err; - *sent = 0; - /* avoid making system calls on closed sockets */ - if (*ps == SOCKET_INVALID) return IO_CLOSED; - /* loop until we send something or we give up on error */ - for ( ;; ) { - long put = (long) write(*ps, data, count); - /* if we sent anything, we are done */ - if (put >= 0) { - *sent = put; - return IO_DONE; - } - err = errno; - /* EPIPE means the connection was closed */ - if (err == EPIPE) return IO_CLOSED; - /* EPROTOTYPE means the connection is being closed (on Yosemite!)*/ - if (err == EPROTOTYPE) continue; - /* we call was interrupted, just try again */ - if (err == EINTR) continue; - /* if failed fatal reason, report error */ - if (err != EAGAIN) return err; - /* wait until we can send something or we timeout */ - if ((err = socket_waitfd(ps, WAITFD_W, tm)) != IO_DONE) return err; - } - /* can't reach here */ - return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Read with timeout -* See note for socket_write -\*-------------------------------------------------------------------------*/ -int socket_read(p_socket ps, char *data, size_t count, size_t *got, p_timeout tm) { - int err; - *got = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - long taken = (long) read(*ps, data, count); - if (taken > 0) { - *got = taken; - return IO_DONE; - } - err = errno; - if (taken == 0) return IO_CLOSED; - if (err == EINTR) continue; - if (err != EAGAIN) return err; - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } - return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Put socket into blocking mode -\*-------------------------------------------------------------------------*/ -void socket_setblocking(p_socket ps) { - int flags = fcntl(*ps, F_GETFL, 0); - flags &= (~(O_NONBLOCK)); - fcntl(*ps, F_SETFL, flags); -} - -/*-------------------------------------------------------------------------*\ -* Put socket into non-blocking mode -\*-------------------------------------------------------------------------*/ -void socket_setnonblocking(p_socket ps) { - int flags = fcntl(*ps, F_GETFL, 0); - flags |= O_NONBLOCK; - fcntl(*ps, F_SETFL, flags); -} - -/*-------------------------------------------------------------------------*\ -* DNS helpers -\*-------------------------------------------------------------------------*/ -int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp) { - *hp = gethostbyaddr(addr, len, AF_INET); - if (*hp) return IO_DONE; - else if (h_errno) return h_errno; - else if (errno) return errno; - else return IO_UNKNOWN; -} - -int socket_gethostbyname(const char *addr, struct hostent **hp) { - *hp = gethostbyname(addr); - if (*hp) return IO_DONE; - else if (h_errno) return h_errno; - else if (errno) return errno; - else return IO_UNKNOWN; -} - -/*-------------------------------------------------------------------------*\ -* Error translation functions -* Make sure important error messages are standard -\*-------------------------------------------------------------------------*/ -const char *socket_hoststrerror(int err) { - if (err <= 0) return io_strerror(err); - switch (err) { - case HOST_NOT_FOUND: return PIE_HOST_NOT_FOUND; - default: return hstrerror(err); - } -} - -const char *socket_strerror(int err) { - if (err <= 0) return io_strerror(err); - switch (err) { - case EADDRINUSE: return PIE_ADDRINUSE; - case EISCONN: return PIE_ISCONN; - case EACCES: return PIE_ACCESS; - case ECONNREFUSED: return PIE_CONNREFUSED; - case ECONNABORTED: return PIE_CONNABORTED; - case ECONNRESET: return PIE_CONNRESET; - case ETIMEDOUT: return PIE_TIMEDOUT; - default: { - return strerror(err); - } - } -} - -const char *socket_ioerror(p_socket ps, int err) { - (void) ps; - return socket_strerror(err); -} - -const char *socket_gaistrerror(int err) { - if (err == 0) return NULL; - switch (err) { - case EAI_AGAIN: return PIE_AGAIN; - case EAI_BADFLAGS: return PIE_BADFLAGS; -#ifdef EAI_BADHINTS - case EAI_BADHINTS: return PIE_BADHINTS; -#endif - case EAI_FAIL: return PIE_FAIL; - case EAI_FAMILY: return PIE_FAMILY; - case EAI_MEMORY: return PIE_MEMORY; - case EAI_NONAME: return PIE_NONAME; -#ifdef EAI_OVERFLOW - case EAI_OVERFLOW: return PIE_OVERFLOW; -#endif -#ifdef EAI_PROTOCOL - case EAI_PROTOCOL: return PIE_PROTOCOL; -#endif - case EAI_SERVICE: return PIE_SERVICE; - case EAI_SOCKTYPE: return PIE_SOCKTYPE; - case EAI_SYSTEM: return strerror(errno); - default: return gai_strerror(err); - } -} - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/usocket.h b/Build/source/texk/web2c/luatexdir/luasocket/src/usocket.h deleted file mode 100644 index fccf35031b2..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/usocket.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef USOCKET_H -#define USOCKET_H -/*=========================================================================*\ -* Socket compatibilization module for Unix -* LuaSocket toolkit -\*=========================================================================*/ - -/*=========================================================================*\ -* BSD include files -\*=========================================================================*/ -/* error codes */ -#include <errno.h> -/* close function */ -#include <unistd.h> -/* fnctnl function and associated constants */ -#include <fcntl.h> -/* struct sockaddr */ -#include <sys/types.h> -/* socket function */ -#include <sys/socket.h> -/* struct timeval */ -#include <sys/time.h> -/* gethostbyname and gethostbyaddr functions */ -#include <netdb.h> -/* sigpipe handling */ -#include <signal.h> -/* IP stuff*/ -#include <netinet/in.h> -#include <arpa/inet.h> -/* TCP options (nagle algorithm disable) */ -#include <netinet/tcp.h> -#include <net/if.h> - -#ifndef SO_REUSEPORT -#define SO_REUSEPORT SO_REUSEADDR -#endif - -/* Some platforms use IPV6_JOIN_GROUP instead if - * IPV6_ADD_MEMBERSHIP. The semantics are same, though. */ -#ifndef IPV6_ADD_MEMBERSHIP -#ifdef IPV6_JOIN_GROUP -#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP -#endif /* IPV6_JOIN_GROUP */ -#endif /* !IPV6_ADD_MEMBERSHIP */ - -/* Same with IPV6_DROP_MEMBERSHIP / IPV6_LEAVE_GROUP. */ -#ifndef IPV6_DROP_MEMBERSHIP -#ifdef IPV6_LEAVE_GROUP -#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP -#endif /* IPV6_LEAVE_GROUP */ -#endif /* !IPV6_DROP_MEMBERSHIP */ - -#ifndef AI_NUMERICSERV -#define AI_NUMERICSERV 0 -#endif - -typedef int t_socket; -typedef t_socket *p_socket; -typedef struct sockaddr_storage t_sockaddr_storage; - -#define SOCKET_INVALID (-1) - -#endif /* USOCKET_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.c b/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.c deleted file mode 100644 index 8ecb0fc7a8e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.c +++ /dev/null @@ -1,433 +0,0 @@ -/*=========================================================================*\ -* Socket compatibilization module for Win32 -* LuaSocket toolkit -* -* The penalty of calling select to avoid busy-wait is only paid when -* the I/O call fail in the first place. -\*=========================================================================*/ -#include <string.h> - -#include "socket.h" -#include "pierror.h" - -/* WinSock doesn't have a strerror... */ -static const char *wstrerror(int err); - -/*-------------------------------------------------------------------------*\ -* Initializes module -\*-------------------------------------------------------------------------*/ -int socket_open(void) { - WSADATA wsaData; - WORD wVersionRequested = MAKEWORD(2, 0); - int err = WSAStartup(wVersionRequested, &wsaData ); - if (err != 0) return 0; - if ((LOBYTE(wsaData.wVersion) != 2 || HIBYTE(wsaData.wVersion) != 0) && - (LOBYTE(wsaData.wVersion) != 1 || HIBYTE(wsaData.wVersion) != 1)) { - WSACleanup(); - return 0; - } - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Close module -\*-------------------------------------------------------------------------*/ -int socket_close(void) { - WSACleanup(); - return 1; -} - -/*-------------------------------------------------------------------------*\ -* Wait for readable/writable/connected socket with timeout -\*-------------------------------------------------------------------------*/ -#define WAITFD_R 1 -#define WAITFD_W 2 -#define WAITFD_E 4 -#define WAITFD_C (WAITFD_E|WAITFD_W) - -int socket_waitfd(p_socket ps, int sw, p_timeout tm) { - int ret; - fd_set rfds, wfds, efds, *rp = NULL, *wp = NULL, *ep = NULL; - struct timeval tv, *tp = NULL; - double t; - if (timeout_iszero(tm)) return IO_TIMEOUT; /* optimize timeout == 0 case */ - if (sw & WAITFD_R) { - FD_ZERO(&rfds); - FD_SET(*ps, &rfds); - rp = &rfds; - } - if (sw & WAITFD_W) { FD_ZERO(&wfds); FD_SET(*ps, &wfds); wp = &wfds; } - if (sw & WAITFD_C) { FD_ZERO(&efds); FD_SET(*ps, &efds); ep = &efds; } - if ((t = timeout_get(tm)) >= 0.0) { - tv.tv_sec = (int) t; - tv.tv_usec = (int) ((t-tv.tv_sec)*1.0e6); - tp = &tv; - } - ret = select(0, rp, wp, ep, tp); - if (ret == -1) return WSAGetLastError(); - if (ret == 0) return IO_TIMEOUT; - if (sw == WAITFD_C && FD_ISSET(*ps, &efds)) return IO_CLOSED; - return IO_DONE; -} - -/*-------------------------------------------------------------------------*\ -* Select with int timeout in ms -\*-------------------------------------------------------------------------*/ -int socket_select(t_socket n, fd_set *rfds, fd_set *wfds, fd_set *efds, - p_timeout tm) { - struct timeval tv; - double t = timeout_get(tm); - tv.tv_sec = (int) t; - tv.tv_usec = (int) ((t - tv.tv_sec) * 1.0e6); - if (n <= 0) { - Sleep((DWORD) (1000*t)); - return 0; - } else return select(0, rfds, wfds, efds, t >= 0.0? &tv: NULL); -} - -/*-------------------------------------------------------------------------*\ -* Close and inutilize socket -\*-------------------------------------------------------------------------*/ -void socket_destroy(p_socket ps) { - if (*ps != SOCKET_INVALID) { - socket_setblocking(ps); /* close can take a long time on WIN32 */ - closesocket(*ps); - *ps = SOCKET_INVALID; - } -} - -/*-------------------------------------------------------------------------*\ -* -\*-------------------------------------------------------------------------*/ -void socket_shutdown(p_socket ps, int how) { - socket_setblocking(ps); - shutdown(*ps, how); - socket_setnonblocking(ps); -} - -/*-------------------------------------------------------------------------*\ -* Creates and sets up a socket -\*-------------------------------------------------------------------------*/ -int socket_create(p_socket ps, int domain, int type, int protocol) { - *ps = socket(domain, type, protocol); - if (*ps != SOCKET_INVALID) return IO_DONE; - else return WSAGetLastError(); -} - -/*-------------------------------------------------------------------------*\ -* Connects or returns error message -\*-------------------------------------------------------------------------*/ -int socket_connect(p_socket ps, SA *addr, socklen_t len, p_timeout tm) { - int err; - /* don't call on closed socket */ - if (*ps == SOCKET_INVALID) return IO_CLOSED; - /* ask system to connect */ - if (connect(*ps, addr, len) == 0) return IO_DONE; - /* make sure the system is trying to connect */ - err = WSAGetLastError(); - if (err != WSAEWOULDBLOCK && err != WSAEINPROGRESS) return err; - /* zero timeout case optimization */ - if (timeout_iszero(tm)) return IO_TIMEOUT; - /* we wait until something happens */ - err = socket_waitfd(ps, WAITFD_C, tm); - if (err == IO_CLOSED) { - int len = sizeof(err); - /* give windows time to set the error (yes, disgusting) */ - Sleep(10); - /* find out why we failed */ - getsockopt(*ps, SOL_SOCKET, SO_ERROR, (char *)&err, &len); - /* we KNOW there was an error. if 'why' is 0, we will return - * "unknown error", but it's not really our fault */ - return err > 0? err: IO_UNKNOWN; - } else return err; - -} - -/*-------------------------------------------------------------------------*\ -* Binds or returns error message -\*-------------------------------------------------------------------------*/ -int socket_bind(p_socket ps, SA *addr, socklen_t len) { - int err = IO_DONE; - socket_setblocking(ps); - if (bind(*ps, addr, len) < 0) err = WSAGetLastError(); - socket_setnonblocking(ps); - return err; -} - -/*-------------------------------------------------------------------------*\ -* -\*-------------------------------------------------------------------------*/ -int socket_listen(p_socket ps, int backlog) { - int err = IO_DONE; - socket_setblocking(ps); - if (listen(*ps, backlog) < 0) err = WSAGetLastError(); - socket_setnonblocking(ps); - return err; -} - -/*-------------------------------------------------------------------------*\ -* Accept with timeout -\*-------------------------------------------------------------------------*/ -int socket_accept(p_socket ps, p_socket pa, SA *addr, socklen_t *len, - p_timeout tm) { - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - int err; - /* try to get client socket */ - if ((*pa = accept(*ps, addr, len)) != SOCKET_INVALID) return IO_DONE; - /* find out why we failed */ - err = WSAGetLastError(); - /* if we failed because there was no connectoin, keep trying */ - if (err != WSAEWOULDBLOCK && err != WSAECONNABORTED) return err; - /* call select to avoid busy wait */ - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } -} - -/*-------------------------------------------------------------------------*\ -* Send with timeout -* On windows, if you try to send 10MB, the OS will buffer EVERYTHING -* this can take an awful lot of time and we will end up blocked. -* Therefore, whoever calls this function should not pass a huge buffer. -\*-------------------------------------------------------------------------*/ -int socket_send(p_socket ps, const char *data, size_t count, - size_t *sent, p_timeout tm) -{ - int err; - *sent = 0; - /* avoid making system calls on closed sockets */ - if (*ps == SOCKET_INVALID) return IO_CLOSED; - /* loop until we send something or we give up on error */ - for ( ;; ) { - /* try to send something */ - int put = send(*ps, data, (int) count, 0); - /* if we sent something, we are done */ - if (put > 0) { - *sent = put; - return IO_DONE; - } - /* deal with failure */ - err = WSAGetLastError(); - /* we can only proceed if there was no serious error */ - if (err != WSAEWOULDBLOCK) return err; - /* avoid busy wait */ - if ((err = socket_waitfd(ps, WAITFD_W, tm)) != IO_DONE) return err; - } -} - -/*-------------------------------------------------------------------------*\ -* Sendto with timeout -\*-------------------------------------------------------------------------*/ -int socket_sendto(p_socket ps, const char *data, size_t count, size_t *sent, - SA *addr, socklen_t len, p_timeout tm) -{ - int err; - *sent = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - int put = sendto(*ps, data, (int) count, 0, addr, len); - if (put > 0) { - *sent = put; - return IO_DONE; - } - err = WSAGetLastError(); - if (err != WSAEWOULDBLOCK) return err; - if ((err = socket_waitfd(ps, WAITFD_W, tm)) != IO_DONE) return err; - } -} - -/*-------------------------------------------------------------------------*\ -* Receive with timeout -\*-------------------------------------------------------------------------*/ -int socket_recv(p_socket ps, char *data, size_t count, size_t *got, - p_timeout tm) -{ - int err, prev = IO_DONE; - *got = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - int taken = recv(*ps, data, (int) count, 0); - if (taken > 0) { - *got = taken; - return IO_DONE; - } - if (taken == 0) return IO_CLOSED; - err = WSAGetLastError(); - /* On UDP, a connreset simply means the previous send failed. - * So we try again. - * On TCP, it means our socket is now useless, so the error passes. - * (We will loop again, exiting because the same error will happen) */ - if (err != WSAEWOULDBLOCK) { - if (err != WSAECONNRESET || prev == WSAECONNRESET) return err; - prev = err; - } - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } -} - -/*-------------------------------------------------------------------------*\ -* Recvfrom with timeout -\*-------------------------------------------------------------------------*/ -int socket_recvfrom(p_socket ps, char *data, size_t count, size_t *got, - SA *addr, socklen_t *len, p_timeout tm) -{ - int err, prev = IO_DONE; - *got = 0; - if (*ps == SOCKET_INVALID) return IO_CLOSED; - for ( ;; ) { - int taken = recvfrom(*ps, data, (int) count, 0, addr, len); - if (taken > 0) { - *got = taken; - return IO_DONE; - } - if (taken == 0) return IO_CLOSED; - err = WSAGetLastError(); - /* On UDP, a connreset simply means the previous send failed. - * So we try again. - * On TCP, it means our socket is now useless, so the error passes. - * (We will loop again, exiting because the same error will happen) */ - if (err != WSAEWOULDBLOCK) { - if (err != WSAECONNRESET || prev == WSAECONNRESET) return err; - prev = err; - } - if ((err = socket_waitfd(ps, WAITFD_R, tm)) != IO_DONE) return err; - } -} - -/*-------------------------------------------------------------------------*\ -* Put socket into blocking mode -\*-------------------------------------------------------------------------*/ -void socket_setblocking(p_socket ps) { - u_long argp = 0; - ioctlsocket(*ps, FIONBIO, &argp); -} - -/*-------------------------------------------------------------------------*\ -* Put socket into non-blocking mode -\*-------------------------------------------------------------------------*/ -void socket_setnonblocking(p_socket ps) { - u_long argp = 1; - ioctlsocket(*ps, FIONBIO, &argp); -} - -/*-------------------------------------------------------------------------*\ -* DNS helpers -\*-------------------------------------------------------------------------*/ -int socket_gethostbyaddr(const char *addr, socklen_t len, struct hostent **hp) { - *hp = gethostbyaddr(addr, len, AF_INET); - if (*hp) return IO_DONE; - else return WSAGetLastError(); -} - -int socket_gethostbyname(const char *addr, struct hostent **hp) { - *hp = gethostbyname(addr); - if (*hp) return IO_DONE; - else return WSAGetLastError(); -} - -/*-------------------------------------------------------------------------*\ -* Error translation functions -\*-------------------------------------------------------------------------*/ -const char *socket_hoststrerror(int err) { - if (err <= 0) return io_strerror(err); - switch (err) { - case WSAHOST_NOT_FOUND: return PIE_HOST_NOT_FOUND; - default: return wstrerror(err); - } -} - -const char *socket_strerror(int err) { - if (err <= 0) return io_strerror(err); - switch (err) { - case WSAEADDRINUSE: return PIE_ADDRINUSE; - case WSAECONNREFUSED : return PIE_CONNREFUSED; - case WSAEISCONN: return PIE_ISCONN; - case WSAEACCES: return PIE_ACCESS; - case WSAECONNABORTED: return PIE_CONNABORTED; - case WSAECONNRESET: return PIE_CONNRESET; - case WSAETIMEDOUT: return PIE_TIMEDOUT; - default: return wstrerror(err); - } -} - -const char *socket_ioerror(p_socket ps, int err) { - (void) ps; - return socket_strerror(err); -} - -static const char *wstrerror(int err) { - switch (err) { - case WSAEINTR: return "Interrupted function call"; - case WSAEACCES: return PIE_ACCESS; // "Permission denied"; - case WSAEFAULT: return "Bad address"; - case WSAEINVAL: return "Invalid argument"; - case WSAEMFILE: return "Too many open files"; - case WSAEWOULDBLOCK: return "Resource temporarily unavailable"; - case WSAEINPROGRESS: return "Operation now in progress"; - case WSAEALREADY: return "Operation already in progress"; - case WSAENOTSOCK: return "Socket operation on nonsocket"; - case WSAEDESTADDRREQ: return "Destination address required"; - case WSAEMSGSIZE: return "Message too long"; - case WSAEPROTOTYPE: return "Protocol wrong type for socket"; - case WSAENOPROTOOPT: return "Bad protocol option"; - case WSAEPROTONOSUPPORT: return "Protocol not supported"; - case WSAESOCKTNOSUPPORT: return PIE_SOCKTYPE; // "Socket type not supported"; - case WSAEOPNOTSUPP: return "Operation not supported"; - case WSAEPFNOSUPPORT: return "Protocol family not supported"; - case WSAEAFNOSUPPORT: return PIE_FAMILY; // "Address family not supported by protocol family"; - case WSAEADDRINUSE: return PIE_ADDRINUSE; // "Address already in use"; - case WSAEADDRNOTAVAIL: return "Cannot assign requested address"; - case WSAENETDOWN: return "Network is down"; - case WSAENETUNREACH: return "Network is unreachable"; - case WSAENETRESET: return "Network dropped connection on reset"; - case WSAECONNABORTED: return "Software caused connection abort"; - case WSAECONNRESET: return PIE_CONNRESET; // "Connection reset by peer"; - case WSAENOBUFS: return "No buffer space available"; - case WSAEISCONN: return PIE_ISCONN; // "Socket is already connected"; - case WSAENOTCONN: return "Socket is not connected"; - case WSAESHUTDOWN: return "Cannot send after socket shutdown"; - case WSAETIMEDOUT: return PIE_TIMEDOUT; // "Connection timed out"; - case WSAECONNREFUSED: return PIE_CONNREFUSED; // "Connection refused"; - case WSAEHOSTDOWN: return "Host is down"; - case WSAEHOSTUNREACH: return "No route to host"; - case WSAEPROCLIM: return "Too many processes"; - case WSASYSNOTREADY: return "Network subsystem is unavailable"; - case WSAVERNOTSUPPORTED: return "Winsock.dll version out of range"; - case WSANOTINITIALISED: - return "Successful WSAStartup not yet performed"; - case WSAEDISCON: return "Graceful shutdown in progress"; - case WSAHOST_NOT_FOUND: return PIE_HOST_NOT_FOUND; // "Host not found"; - case WSATRY_AGAIN: return "Nonauthoritative host not found"; - case WSANO_RECOVERY: return PIE_FAIL; // "Nonrecoverable name lookup error"; - case WSANO_DATA: return "Valid name, no data record of requested type"; - default: return "Unknown error"; - } -} - -const char *socket_gaistrerror(int err) { - if (err == 0) return NULL; - switch (err) { - case EAI_AGAIN: return PIE_AGAIN; - case EAI_BADFLAGS: return PIE_BADFLAGS; -#ifdef EAI_BADHINTS - case EAI_BADHINTS: return PIE_BADHINTS; -#endif - case EAI_FAIL: return PIE_FAIL; - case EAI_FAMILY: return PIE_FAMILY; - case EAI_MEMORY: return PIE_MEMORY; - case EAI_NONAME: return PIE_NONAME; -#ifdef EAI_OVERFLOW - case EAI_OVERFLOW: return PIE_OVERFLOW; -#endif -#ifdef EAI_PROTOCOL - case EAI_PROTOCOL: return PIE_PROTOCOL; -#endif - case EAI_SERVICE: return PIE_SERVICE; - case EAI_SOCKTYPE: return PIE_SOCKTYPE; -#ifdef EAI_SYSTEM - case EAI_SYSTEM: return strerror(errno); -#endif - default: return gai_strerror(err); - } -} - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h b/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h deleted file mode 100644 index 398664026fc..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/src/wsocket.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef WSOCKET_H -#define WSOCKET_H -/*=========================================================================*\ -* Socket compatibilization module for Win32 -* LuaSocket toolkit -\*=========================================================================*/ - -/*=========================================================================*\ -* WinSock include files -\*=========================================================================*/ -#include <winsock2.h> -#include <ws2tcpip.h> - -typedef int socklen_t; -typedef SOCKADDR_STORAGE t_sockaddr_storage; -typedef SOCKET t_socket; -typedef t_socket *p_socket; - -#ifndef IPV6_V6ONLY -#define IPV6_V6ONLY 27 -#endif - -#define SOCKET_INVALID (INVALID_SOCKET) - -#ifndef SO_REUSEPORT -#define SO_REUSEPORT SO_REUSEADDR -#endif - -#ifndef AI_NUMERICSERV -#define AI_NUMERICSERV (0) -#endif - -#endif /* WSOCKET_H */ diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/README b/Build/source/texk/web2c/luatexdir/luasocket/test/README deleted file mode 100644 index 27837e04d90..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/README +++ /dev/null @@ -1,14 +0,0 @@ -This provides the automated test scripts used to make sure the library -is working properly. - -The files provided are: - - testsrvr.lua -- test server - testclnt.lua -- test client - -To run these tests, just run lua on the server and then on the client. - - hello.lua -- run to verify if installation worked - -Good luck, -Diego. diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/auth/.htaccess b/Build/source/texk/web2c/luatexdir/luasocket/test/auth/.htaccess deleted file mode 100644 index 2509ae36aa6..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/auth/.htaccess +++ /dev/null @@ -1,4 +0,0 @@ -AuthName "test-auth" - AuthType Basic - AuthUserFile /home/diego/impa/luasocket/test/auth/.htpasswd - Require valid-user diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/auth/.htpasswd b/Build/source/texk/web2c/luatexdir/luasocket/test/auth/.htpasswd deleted file mode 100644 index cfb26034b78..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/auth/.htpasswd +++ /dev/null @@ -1 +0,0 @@ -luasocket:$apr1$47u2O.Me$.m/5BWAtt7GVoxsouIPBR1 diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/auth/index.html b/Build/source/texk/web2c/luatexdir/luasocket/test/auth/index.html deleted file mode 100644 index 786694ef6a0..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/auth/index.html +++ /dev/null @@ -1,3002 +0,0 @@ -<html> -<body> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/cat b/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/cat deleted file mode 100755 index 8d41255ea91..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/cat +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -echo Content-type: text/plain -echo - -cat > /tmp/luasocket.cat.tmp -cat /tmp/luasocket.cat.tmp diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/cat-index-html b/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/cat-index-html deleted file mode 100755 index 7595043b1fb..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/cat-index-html +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -echo Content-type: text/plain -echo - -cat ../index.html diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/env b/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/env deleted file mode 100755 index 412a716ea94..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/env +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -echo Content-type: text/plain -echo - -env diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/query-string b/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/query-string deleted file mode 100755 index 2342af53292..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/query-string +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -echo Content-type: text/plain -echo -echo $QUERY_STRING diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/redirect-loop b/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/redirect-loop deleted file mode 100755 index bd32f2048f4..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/redirect-loop +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -echo Location: http://$HTTP_HOST$REQUEST_URI -echo diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/request-uri b/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/request-uri deleted file mode 100755 index 20ebe9fedb9..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/cgi/request-uri +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -echo Content-type: text/plain -echo -echo $REQUEST_URI diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/dicttest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/dicttest.lua deleted file mode 100644 index a0da2e18432..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/dicttest.lua +++ /dev/null @@ -1,5 +0,0 @@ -local dict = require"socket.dict" - -print(dict.get("dict://localhost/d:teste")) - -for i,v in pairs(dict.get("dict://localhost/d:teste")) do print(v) end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/excepttest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/excepttest.lua deleted file mode 100644 index 80c9cb80a49..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/excepttest.lua +++ /dev/null @@ -1,30 +0,0 @@ -local socket = require("socket") - -local finalizer_called - -local func = socket.protect(function(err, ...) - local try = socket.newtry(function() - finalizer_called = true - end) - - if err then - return error(err, 0) - else - return try(...) - end -end) - -local ret1, ret2, ret3 = func(false, 1, 2, 3) -assert(not finalizer_called, "unexpected finalizer call") -assert(ret1 == 1 and ret2 == 2 and ret3 == 3, "incorrect return values") - -ret1, ret2, ret3 = func(false, false, "error message") -assert(finalizer_called, "finalizer not called") -assert(ret1 == nil and ret2 == "error message" and ret3 == nil, "incorrect return values") - -local err = {key = "value"} -ret1, ret2 = pcall(func, err) -assert(not ret1, "error not rethrown") -assert(ret2 == err, "incorrect error rethrown") - -print("OK") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit b/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit deleted file mode 100755 index ad0c3f55302..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/find-connect-limit +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env lua ---[[ -Find out how many TCP connections we can make. - -Use ulimit to increase the max number of descriptors: - -ulimit -n 10000 -ulimit -n - -You'll probably need to be root to do this. -]] - -require "socket" - -host = arg[1] or "google.com" -port = arg[2] or 80 - -connections = {} - -repeat - c = assert(socket.connect(hostip or host, 80)) - table.insert(connections, c) - - if not hostip then - hostip = c:getpeername() - print("resolved", host, "to", hostip) - end - - print("connection #", #connections, c, "fd", c:getfd()) - -until false - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/ftptest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/ftptest.lua deleted file mode 100644 index 3ea0d395909..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/ftptest.lua +++ /dev/null @@ -1,122 +0,0 @@ -local socket = require("socket") -local ftp = require("socket.ftp") -local url = require("socket.url") -local ltn12 = require("ltn12") - --- use dscl to create user "luasocket" with password "password" --- with home in /Users/diego/luasocket/test/ftp --- with group com.apple.access_ftp --- with shell set to /sbin/nologin --- set /etc/ftpchroot to chroot luasocket --- must set group com.apple.access_ftp on user _ftp (for anonymous access) --- copy index.html to /var/empty/pub (home of user ftp) --- start ftp server with --- sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist --- copy index.html to /Users/diego/luasocket/test/ftp --- stop with --- sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist - --- override protection to make sure we see all errors ---socket.protect = function(s) return s end - -dofile("testsupport.lua") - -local host = host or "localhost" -local port, index_file, index, back, err, ret - -local t = socket.gettime() - -index_file = "index.html" - --- a function that returns a directory listing -local function nlst(u) - local t = {} - local p = url.parse(u) - p.command = "nlst" - p.sink = ltn12.sink.table(t) - local r, e = ftp.get(p) - return r and table.concat(t), e -end - --- function that removes a remote file -local function dele(u) - local p = url.parse(u) - p.command = "dele" - p.argument = string.gsub(p.path, "^/", "") - if p.argumet == "" then p.argument = nil end - p.check = 250 - return ftp.command(p) -end - --- read index with CRLF convention -index = readfile(index_file) - -io.write("testing wrong scheme: ") -back, err = ftp.get("wrong://banana.com/lixo") -assert(not back and err == "wrong scheme 'wrong'", err) -print("ok") - -io.write("testing invalid url: ") -back, err = ftp.get("localhost/dir1/index.html;type=i") -assert(not back and err) -print("ok") - -io.write("testing anonymous file download: ") -back, err = socket.ftp.get("ftp://" .. host .. "/pub/index.html;type=i") -assert(not err and back == index, err) -print("ok") - -io.write("erasing before upload: ") -ret, err = dele("ftp://luasocket:password@" .. host .. "/index.up.html") -if not ret then print(err) -else print("ok") end - -io.write("testing upload: ") -ret, err = ftp.put("ftp://luasocket:password@" .. host .. "/index.up.html;type=i", index) -assert(ret and not err, err) -print("ok") - -io.write("downloading uploaded file: ") -back, err = ftp.get("ftp://luasocket:password@" .. host .. "/index.up.html;type=i") -assert(ret and not err and index == back, err) -print("ok") - -io.write("erasing after upload/download: ") -ret, err = dele("ftp://luasocket:password@" .. host .. "/index.up.html") -assert(ret and not err, err) -print("ok") - -io.write("testing weird-character translation: ") -back, err = ftp.get("ftp://luasocket:password@" .. host .. "/%23%3f;type=i") -assert(not err and back == index, err) -print("ok") - -io.write("testing parameter overriding: ") -local back = {} -ret, err = ftp.get{ - url = "//stupid:mistake@" .. host .. "/index.html", - user = "luasocket", - password = "password", - type = "i", - sink = ltn12.sink.table(back) -} -assert(ret and not err and table.concat(back) == index, err) -print("ok") - -io.write("testing upload denial: ") -ret, err = ftp.put("ftp://" .. host .. "/index.up.html;type=a", index) -assert(not ret and err, "should have failed") -print(err) - -io.write("testing authentication failure: ") -ret, err = ftp.get("ftp://luasocket:wrong@".. host .. "/index.html;type=a") -assert(not ret and err, "should have failed") -print(err) - -io.write("testing wrong file: ") -back, err = ftp.get("ftp://".. host .. "/index.wrong.html;type=a") -assert(not back and err, "should have failed") -print(err) - -print("passed all tests") -print(string.format("done in %.2fs", socket.gettime() - t)) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/hello.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/hello.lua deleted file mode 100644 index 3f385dc2424..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/hello.lua +++ /dev/null @@ -1,3 +0,0 @@ -local socket = require"socket" -local mime = require"mime" -print("Hello from " .. socket._VERSION .. " and " .. mime._VERSION .. "!") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/httptest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/httptest.lua deleted file mode 100644 index 63ff9217620..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/httptest.lua +++ /dev/null @@ -1,441 +0,0 @@ --- needs Alias from /home/c/diego/tec/luasocket/test to --- "/luasocket-test" and "/luasocket-test/" --- needs ScriptAlias from /home/c/diego/tec/luasocket/test/cgi --- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" --- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth -local socket = require("socket") -local http = require("socket.http") -local url = require("socket.url") - -local mime = require("mime") -local ltn12 = require("ltn12") - --- override protection to make sure we see all errors --- socket.protect = function(s) return s end - -dofile("testsupport.lua") - -local host, proxy, request, response, index_file -local ignore, expect, index, prefix, cgiprefix, index_crlf - -http.TIMEOUT = 10 - -local t = socket.gettime() - ---host = host or "diego.student.princeton.edu" ---host = host or "diego.student.princeton.edu" -host = host or "localhost" -proxy = proxy or "http://localhost:3128" -prefix = prefix or "/luasocket-test" -cgiprefix = cgiprefix or "/luasocket-test-cgi" -index_file = "index.html" - --- read index with CRLF convention -index = readfile(index_file) - -local check_result = function(response, expect, ignore) - for i,v in pairs(response) do - if not ignore[i] then - if v ~= expect[i] then - local f = io.open("err", "w") - f:write(tostring(v), "\n\n versus\n\n", tostring(expect[i])) - f:close() - fail(i .. " differs!") - end - end - end - for i,v in pairs(expect) do - if not ignore[i] then - if v ~= response[i] then - local f = io.open("err", "w") - f:write(tostring(response[i]), "\n\n versus\n\n", tostring(v)) - v = string.sub(type(v) == "string" and v or "", 1, 70) - f:close() - fail(i .. " differs!") - end - end - end - print("ok") -end - -local check_request = function(request, expect, ignore) - local t - if not request.sink then request.sink, t = ltn12.sink.table() end - request.source = request.source or - (request.body and ltn12.source.string(request.body)) - local response = {} - response.code, response.headers, response.status = - socket.skip(1, http.request(request)) - if t and #t > 0 then response.body = table.concat(t) end - check_result(response, expect, ignore) -end - ------------------------------------------------------------------------- -io.write("testing request uri correctness: ") -local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" -local back, c, h = http.request("http://" .. host .. forth) -if not back then fail(c) end -back = url.parse(back) -if similar(back.query, "this+is+the+query+string") then print("ok") -else fail(back.query) end - ------------------------------------------------------------------------- -io.write("testing query string correctness: ") -forth = "this+is+the+query+string" -back = http.request("http://" .. host .. cgiprefix .. - "/query-string?" .. forth) -if similar(back, forth) then print("ok") -else fail("failed!") end - ------------------------------------------------------------------------- -io.write("testing document retrieval: ") -request = { - url = "http://" .. host .. prefix .. "/index.html" -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing redirect loop: ") -request = { - url = "http://" .. host .. cgiprefix .. "/redirect-loop" -} -expect = { - code = 302 -} -ignore = { - status = 1, - headers = 1, - body = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing invalid url: ") -local r, e = http.request{url = host .. prefix} -assert(r == nil and e == "invalid host ''") -r, re = http.request(host .. prefix) -assert(r == nil and e == re, tostring(r) ..", " .. tostring(re) .. - " vs " .. tostring(e)) -print("ok") - -io.write("testing invalid empty port: ") -request = { - url = "http://" .. host .. ":" .. prefix .. "/index.html" -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing post method: ") --- wanted to test chunked post, but apache doesn't support it... -request = { - url = "http://" .. host .. cgiprefix .. "/cat", - method = "POST", - body = index, - -- remove content-length header to send chunked body - headers = { ["content-length"] = string.len(index) } -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- ---[[ -io.write("testing proxy with post method: ") -request = { - url = "http://" .. host .. cgiprefix .. "/cat", - method = "POST", - body = index, - headers = { ["content-length"] = string.len(index) }, - proxy= proxy -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) -]] - ------------------------------------------------------------------------- -io.write("testing simple post function: ") -back = http.request("http://" .. host .. cgiprefix .. "/cat", index) -assert(back == index) -print("ok") - ------------------------------------------------------------------------- -io.write("testing ltn12.(sink|source).file: ") -request = { - url = "http://" .. host .. cgiprefix .. "/cat", - method = "POST", - source = ltn12.source.file(io.open(index_file, "rb")), - sink = ltn12.sink.file(io.open(index_file .. "-back", "wb")), - headers = { ["content-length"] = string.len(index) } -} -expect = { - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) -back = readfile(index_file .. "-back") -assert(back == index) -os.remove(index_file .. "-back") - ------------------------------------------------------------------------- -io.write("testing ltn12.(sink|source).chain and mime.(encode|decode): ") - -local function b64length(len) - local a = math.ceil(len/3)*4 - local l = math.ceil(a/76) - return a + l*2 -end - -local source = ltn12.source.chain( - ltn12.source.file(io.open(index_file, "rb")), - ltn12.filter.chain( - mime.encode("base64"), - mime.wrap("base64") - ) -) - -local sink = ltn12.sink.chain( - mime.decode("base64"), - ltn12.sink.file(io.open(index_file .. "-back", "wb")) -) - -request = { - url = "http://" .. host .. cgiprefix .. "/cat", - method = "POST", - source = source, - sink = sink, - headers = { ["content-length"] = b64length(string.len(index)) } -} -expect = { - code = 200 -} -ignore = { - body_cb = 1, - status = 1, - headers = 1 -} -check_request(request, expect, ignore) -back = readfile(index_file .. "-back") -assert(back == index) -os.remove(index_file .. "-back") - ------------------------------------------------------------------------- -io.write("testing http redirection: ") -request = { - url = "http://" .. host .. prefix -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- ---[[ -io.write("testing proxy with redirection: ") -request = { - url = "http://" .. host .. prefix, - proxy = proxy -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) -]] - ------------------------------------------------------------------------- -io.write("testing automatic auth failure: ") -request = { - url = "http://really:wrong@" .. host .. prefix .. "/auth/index.html" -} -expect = { - code = 401 -} -ignore = { - body = 1, - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing http redirection failure: ") -request = { - url = "http://" .. host .. prefix, - redirect = false -} -expect = { - code = 301 -} -ignore = { - body = 1, - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing document not found: ") -request = { - url = "http://" .. host .. "/wrongdocument.html" -} -expect = { - code = 404 -} -ignore = { - body = 1, - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing auth failure: ") -request = { - url = "http://" .. host .. prefix .. "/auth/index.html" -} -expect = { - code = 401 -} -ignore = { - body = 1, - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing manual basic auth: ") -request = { - url = "http://" .. host .. prefix .. "/auth/index.html", - headers = { - authorization = "Basic " .. (mime.b64("luasocket:password")) - } -} -expect = { - code = 200, - body = index -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing automatic basic auth: ") -request = { - url = "http://luasocket:password@" .. host .. prefix .. "/auth/index.html" -} -expect = { - code = 200, - body = index -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing auth info overriding: ") -request = { - url = "http://really:wrong@" .. host .. prefix .. "/auth/index.html", - user = "luasocket", - password = "password" -} -expect = { - code = 200, - body = index -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -io.write("testing cgi output retrieval (probably chunked...): ") -request = { - url = "http://" .. host .. cgiprefix .. "/cat-index-html" -} -expect = { - body = index, - code = 200 -} -ignore = { - status = 1, - headers = 1 -} -check_request(request, expect, ignore) - ------------------------------------------------------------------------- -local body -io.write("testing simple request function: ") -body = http.request("http://" .. host .. prefix .. "/index.html") -assert(body == index) -print("ok") - ------------------------------------------------------------------------- -io.write("testing HEAD method: ") -local r, c, h = http.request { - method = "HEAD", - url = "http://www.tecgraf.puc-rio.br/~diego/" -} -assert(r and h and (c == 200), c) -print("ok") - ------------------------------------------------------------------------- -io.write("testing host not found: ") -local c, e = socket.connect("example.invalid", 80) -local r, re = http.request{url = "http://example.invalid/does/not/exist"} -assert(r == nil and e == re, tostring(r) .. " " .. tostring(re)) -r, re = http.request("http://example.invalid/does/not/exist") -assert(r == nil and e == re) -print("ok") - ------------------------------------------------------------------------- -print("passed all tests") -os.remove("err") - -print(string.format("done in %.2fs", socket.gettime() - t)) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/index.html b/Build/source/texk/web2c/luatexdir/luasocket/test/index.html deleted file mode 100644 index 786694ef6a0..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/index.html +++ /dev/null @@ -1,3002 +0,0 @@ -<html> -<body> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -This document can contain anything, as long as it is long enough! <br> -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/ltn12test.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/ltn12test.lua deleted file mode 100644 index e3f85fb40a4..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/ltn12test.lua +++ /dev/null @@ -1,299 +0,0 @@ -local ltn12 = require("ltn12") - -dofile("testsupport.lua") - -local function format(chunk) - if chunk then - if chunk == "" then return "''" - else return string.len(chunk) end - else return "nil" end -end - -local function show(name, input, output) - local sin = format(input) - local sout = format(output) - io.write(name, ": ", sin, " -> ", sout, "\n") -end - -local function chunked(length) - local tmp - return function(chunk) - local ret - if chunk and chunk ~= "" then - tmp = chunk - end - ret = string.sub(tmp, 1, length) - tmp = string.sub(tmp, length+1) - if not chunk and ret == "" then ret = nil end - return ret - end -end - -local function named(f, name) - return function(chunk) - local ret = f(chunk) - show(name, chunk, ret) - return ret - end -end - --------------------------------- -local function split(size) - local buffer = "" - local last_out = "" - local last_in = "" - local function output(chunk) - local part = string.sub(buffer, 1, size) - buffer = string.sub(buffer, size+1) - last_out = (part ~= "" or chunk) and part - last_in = chunk - return last_out - end - return function(chunk, done) - if done then - return not last_in and not last_out - end - -- check if argument is consistent with state - if not chunk then - if last_in and last_in ~= "" and last_out ~= "" then - error("nil chunk following data chunk", 2) - end - if not last_out then error("extra nil chunk", 2) end - return output(chunk) - elseif chunk == "" then - if last_out == "" then error('extra "" chunk', 2) end - if not last_out then error('"" chunk following nil return', 2) end - if not last_in then error('"" chunk following nil chunk', 2) end - return output(chunk) - else - if not last_in then error("data chunk following nil chunk", 2) end - if last_in ~= "" and last_out ~= "" then - error("data chunk following data chunk", 2) - end - buffer = chunk - return output(chunk) - end - end -end - --------------------------------- -local function format(chunk) - if chunk then - if chunk == "" then return "''" - else return string.len(chunk) end - else return "nil" end -end - --------------------------------- -local function merge(size) - local buffer = "" - local last_out = "" - local last_in = "" - local function output(chunk) - local part - if string.len(buffer) >= size or not chunk then - part = buffer - buffer = "" - else - part = "" - end - last_out = (part ~= "" or chunk) and part - last_in = chunk - return last_out - end - return function(chunk, done) - if done then - return not last_in and not last_out - end - -- check if argument is consistent with state - if not chunk then - if last_in and last_in ~= "" and last_out ~= "" then - error("nil chunk following data chunk", 2) - end - if not last_out then error("extra nil chunk", 2) end - return output(chunk) - elseif chunk == "" then - if last_out == "" then error('extra "" chunk', 2) end - if not last_out then error('"" chunk following nil return', 2) end - if not last_in then error('"" chunk following nil chunk', 2) end - return output(chunk) - else - if not last_in then error("data chunk following nil chunk", 2) end - if last_in ~= "" and last_out ~= "" then - error("data chunk following data chunk", 2) - end - buffer = buffer .. chunk - return output(chunk) - end - end -end - --------------------------------- -io.write("testing sink.table: ") -local sink, t = ltn12.sink.table() -local s, c = "", "" -for i = 0, 10 do - c = string.rep(string.char(i), i) - s = s .. c - assert(sink(c), "returned error") -end -assert(sink(nil), "returned error") -assert(table.concat(t) == s, "mismatch") -print("ok") - --------------------------------- -io.write("testing sink.chain (with split): ") -sink, t = ltn12.sink.table() -local filter = split(3) -sink = ltn12.sink.chain(filter, sink) -s = "123456789012345678901234567890" -assert(sink(s), "returned error") -assert(sink(s), "returned error") -assert(sink(nil), "returned error") -assert(table.concat(t) == s .. s, "mismatch") -assert(filter(nil, 1), "filter not empty") -print("ok") - --------------------------------- -io.write("testing sink.chain (with merge): ") -sink, t = ltn12.sink.table() -filter = merge(10) -sink = ltn12.sink.chain(filter, sink) -s = string.rep("123", 30) -s = s .. string.rep("4321", 30) -for i = 1, 30 do - assert(sink("123"), "returned error") -end -for i = 1, 30 do - assert(sink("4321"), "returned error") -end -assert(sink(nil), "returned error") -assert(filter(nil, 1), "filter not empty") -assert(table.concat(t) == s, "mismatch") -print("ok") - --------------------------------- -io.write("testing source.string and pump.all: ") -local source = ltn12.source.string(s) -sink, t = ltn12.sink.table() -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == s, "mismatch") -print("ok") - --------------------------------- -io.write("testing source.chain (with split): ") -source = ltn12.source.string(s) -filter = split(5) -source = ltn12.source.chain(source, filter) -sink, t = ltn12.sink.table() -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == s, "mismatch") -assert(filter(nil, 1), "filter not empty") -print("ok") - --------------------------------- -io.write("testing source.chain (with several filters): ") -local function double(x) -- filter turning "ABC" into "AABBCC" - if not x then return end - local b={} - for k in x:gmatch'.' do table.insert(b, k..k) end - return table.concat(b) -end -source = ltn12.source.string(s) -source = ltn12.source.chain(source, double, double, double) -sink, t = ltn12.sink.table() -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == double(double(double(s))), "mismatch") -print("ok") - --------------------------------- -io.write("testing source.chain (with split) and sink.chain (with merge): ") -source = ltn12.source.string(s) -filter = split(5) -source = ltn12.source.chain(source, filter) -local filter2 = merge(13) -sink, t = ltn12.sink.table() -sink = ltn12.sink.chain(filter2, sink) -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == s, "mismatch") -assert(filter(nil, 1), "filter not empty") -assert(filter2(nil, 1), "filter2 not empty") -print("ok") - --------------------------------- -io.write("testing sink.chain (with several filters): ") -source = ltn12.source.string(s) -sink, t = ltn12.sink.table() -sink = ltn12.sink.chain(double, double, double, sink) -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == double(double(double(s))), "mismatch") -print("ok") - --------------------------------- -io.write("testing filter.chain (and sink.chain, with split, merge): ") -source = ltn12.source.string(s) -filter = split(5) -filter2 = merge(13) -local chain = ltn12.filter.chain(filter, filter2) -sink, t = ltn12.sink.table() -sink = ltn12.sink.chain(chain, sink) -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == s, "mismatch") -assert(filter(nil, 1), "filter not empty") -assert(filter2(nil, 1), "filter2 not empty") -print("ok") - --------------------------------- -io.write("testing filter.chain (and sink.chain, a bunch): ") -source = ltn12.source.string(s) -filter = split(5) -filter2 = merge(13) -local filter3 = split(7) -local filter4 = merge(11) -local filter5 = split(10) -chain = ltn12.filter.chain(filter, filter2, filter3, filter4, filter5) -sink, t = ltn12.sink.table() -sink = ltn12.sink.chain(chain, sink) -assert(ltn12.pump.all(source, sink)) -assert(table.concat(t) == s, "mismatch") -assert(filter(nil, 1), "filter not empty") -assert(filter2(nil, 1), "filter2 not empty") -assert(filter3(nil, 1), "filter3 not empty") -assert(filter4(nil, 1), "filter4 not empty") -assert(filter5(nil, 1), "filter5 not empty") -print("ok") - --------------------------------- -io.write("testing filter.chain (and source.chain, with split, merge): ") -source = ltn12.source.string(s) -filter = split(5) -filter2 = merge(13) -local chain = ltn12.filter.chain(filter, filter2) -sink, t = ltn12.sink.table() -source = ltn12.source.chain(source, chain) -assert(ltn12.pump.all(source, sink), "returned error") -assert(table.concat(t) == s, "mismatch") -assert(filter(nil, 1), "filter not empty") -assert(filter2(nil, 1), "filter2 not empty") -print("ok") - --------------------------------- -io.write("testing filter.chain (and source.chain, a bunch): ") -source = ltn12.source.string(s) -filter = split(5) -filter2 = merge(13) -local filter3 = split(7) -local filter4 = merge(11) -local filter5 = split(10) -chain = ltn12.filter.chain(filter, filter2, filter3, filter4, filter5) -sink, t = ltn12.sink.table() -source = ltn12.source.chain(source, chain) -assert(ltn12.pump.all(source, sink)) -assert(table.concat(t) == s, "mismatch") -assert(filter(nil, 1), "filter not empty") -assert(filter2(nil, 1), "filter2 not empty") -assert(filter3(nil, 1), "filter3 not empty") -assert(filter4(nil, 1), "filter4 not empty") -assert(filter5(nil, 1), "filter5 not empty") -print("ok") - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/luasocket.png b/Build/source/texk/web2c/luatexdir/luasocket/test/luasocket.png Binary files differdeleted file mode 100644 index d24a95495b5..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/luasocket.png +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/mimetest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/mimetest.lua deleted file mode 100644 index f5b37471e04..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/mimetest.lua +++ /dev/null @@ -1,299 +0,0 @@ -local socket = require("socket") -local ltn12 = require("ltn12") -local mime = require("mime") - -local unpack = unpack or table.unpack - -dofile("testsupport.lua") - -local qptest = "qptest.bin" -local eqptest = "qptest.bin2" -local dqptest = "qptest.bin3" - -local b64test = "b64test.bin" -local eb64test = "b64test.bin2" -local db64test = "b64test.bin3" - - --- from Machado de Assis, "A Mão e a Rosa" -local mao = [[ - Cursavam estes dois moços a academia de S. Paulo, estando - Luís Alves no quarto ano e Estêvão no terceiro. - Conheceram-se na academia, e ficaram amigos íntimos, tanto - quanto podiam sê-lo dois espíritos diferentes, ou talvez por - isso mesmo que o eram. Estêvão, dotado de extrema - sensibilidade, e não menor fraqueza de ânimo, afetuoso e - bom, não daquela bondade varonil, que é apanágio de uma alma - forte, mas dessa outra bondade mole e de cera, que vai à - mercê de todas as circunstâncias, tinha, além de tudo isso, - o infortúnio de trazer ainda sobre o nariz os óculos - cor-de-rosa de suas virginais ilusões. Luís Alves via bem - com os olhos da cara. Não era mau rapaz, mas tinha o seu - grão de egoísmo, e se não era incapaz de afeições, sabia - regê-las, moderá-las, e sobretudo guiá-las ao seu próprio - interesse. Entre estes dois homens travara-se amizade - íntima, nascida para um na simpatia, para outro no costume. - Eram eles os naturais confidentes um do outro, com a - diferença que Luís Alves dava menos do que recebia, e, ainda - assim, nem tudo o que dava exprimia grande confiança. -]] - -local function random(handle, io_err) - if handle then - return function() - if not handle then error("source is empty!", 2) end - local len = math.random(0, 1024) - local chunk = handle:read(len) - if not chunk then - handle:close() - handle = nil - end - return chunk - end - else return ltn12.source.empty(io_err or "unable to open file") end -end - - -local function named(f) - return f -end - -local what = nil -local function transform(input, output, filter) - local source = random(io.open(input, "rb")) - local sink = ltn12.sink.file(io.open(output, "wb")) - if what then - sink = ltn12.sink.chain(filter, sink) - else - source = ltn12.source.chain(source, filter) - end - --what = not what - ltn12.pump.all(source, sink) -end - -local function encode_qptest(mode) - local encode = mime.encode("quoted-printable", mode) - local split = mime.wrap("quoted-printable") - local chain = ltn12.filter.chain(encode, split) - transform(qptest, eqptest, chain) -end - -local function compare_qptest() -io.write("testing qp encoding and wrap: ") - compare(qptest, dqptest) -end - -local function decode_qptest() - local decode = mime.decode("quoted-printable") - transform(eqptest, dqptest, decode) -end - -local function create_qptest() - local f, err = io.open(qptest, "wb") - if not f then fail(err) end - -- try all characters - for i = 0, 255 do - f:write(string.char(i)) - end - -- try all characters and different line sizes - for i = 0, 255 do - for j = 0, i do - f:write(string.char(i)) - end - f:write("\r\n") - end - -- test latin text - f:write(mao) - -- force soft line breaks and treatment of space/tab in end of line - local tab - f:write(string.gsub(mao, "(%s)", function(c) - if tab then - tab = nil - return "\t" - else - tab = 1 - return " " - end - end)) - -- test crazy end of line conventions - local eol = { "\r\n", "\r", "\n", "\n\r" } - local which = 0 - f:write(string.gsub(mao, "(\n)", function(c) - which = which + 1 - if which > 4 then which = 1 end - return eol[which] - end)) - for i = 1, 4 do - for j = 1, 4 do - f:write(eol[i]) - f:write(eol[j]) - end - end - -- try long spaced and tabbed lines - f:write("\r\n") - for i = 0, 255 do - f:write(string.char(9)) - end - f:write("\r\n") - for i = 0, 255 do - f:write(' ') - end - f:write("\r\n") - for i = 0, 255 do - f:write(string.char(9),' ') - end - f:write("\r\n") - for i = 0, 255 do - f:write(' ',string.char(32)) - end - f:write("\r\n") - - f:close() -end - -local function cleanup_qptest() - os.remove(qptest) - os.remove(eqptest) - os.remove(dqptest) -end - --- create test file -local function create_b64test() - local f = assert(io.open(b64test, "wb")) - local t = {} - for j = 1, 100 do - for i = 1, 100 do - t[i] = math.random(0, 255) - end - f:write(string.char(unpack(t))) - end - f:close() -end - -local function encode_b64test() - local e1 = mime.encode("base64") - local e2 = mime.encode("base64") - local e3 = mime.encode("base64") - local e4 = mime.encode("base64") - local sp4 = mime.wrap() - local sp3 = mime.wrap(59) - local sp2 = mime.wrap("base64", 30) - local sp1 = mime.wrap(27) - local chain = ltn12.filter.chain(e1, sp1, e2, sp2, e3, sp3, e4, sp4) - transform(b64test, eb64test, chain) -end - -local function decode_b64test() - local d1 = named(mime.decode("base64"), "d1") - local d2 = named(mime.decode("base64"), "d2") - local d3 = named(mime.decode("base64"), "d3") - local d4 = named(mime.decode("base64"), "d4") - local chain = named(ltn12.filter.chain(d1, d2, d3, d4), "chain") - transform(eb64test, db64test, chain) -end - -local function cleanup_b64test() - os.remove(b64test) - os.remove(eb64test) - os.remove(db64test) -end - -local function compare_b64test() -io.write("testing b64 chained encode: ") - compare(b64test, db64test) -end - -local function identity_test() -io.write("testing identity: ") - local chain = named(ltn12.filter.chain( - named(mime.encode("quoted-printable"), "1 eq"), - named(mime.encode("base64"), "2 eb"), - named(mime.decode("base64"), "3 db"), - named(mime.decode("quoted-printable"), "4 dq") - ), "chain") - transform(b64test, eb64test, chain) - compare(b64test, eb64test) - os.remove(eb64test) -end - - -local function padcheck(original, encoded) - local e = (mime.b64(original)) - local d = (mime.unb64(encoded)) - if e ~= encoded then fail("encoding failed") end - if d ~= original then fail("decoding failed") end -end - -local function chunkcheck(original, encoded) - local len = string.len(original) - for i = 0, len do - local a = string.sub(original, 1, i) - local b = string.sub(original, i+1) - local e, r = mime.b64(a, b) - local f = (mime.b64(r)) - if (e .. (f or "") ~= encoded) then fail(e .. (f or "")) end - end -end - -local function padding_b64test() -io.write("testing b64 padding: ") - padcheck("a", "YQ==") - padcheck("ab", "YWI=") - padcheck("abc", "YWJj") - padcheck("abcd", "YWJjZA==") - padcheck("abcde", "YWJjZGU=") - padcheck("abcdef", "YWJjZGVm") - padcheck("abcdefg", "YWJjZGVmZw==") - padcheck("abcdefgh", "YWJjZGVmZ2g=") - padcheck("abcdefghi", "YWJjZGVmZ2hp") - padcheck("abcdefghij", "YWJjZGVmZ2hpag==") - chunkcheck("abcdefgh", "YWJjZGVmZ2g=") - chunkcheck("abcdefghi", "YWJjZGVmZ2hp") - chunkcheck("abcdefghij", "YWJjZGVmZ2hpag==") - print("ok") -end - -local function test_b64lowlevel() -io.write("testing b64 low-level: ") - local a, b - a, b = mime.b64("", "") - assert(a == "" and b == "") - a, b = mime.b64(nil, "blablabla") - assert(a == nil and b == nil) - a, b = mime.b64("", nil) - assert(a == nil and b == nil) - a, b = mime.unb64("", "") - assert(a == "" and b == "") - a, b = mime.unb64(nil, "blablabla") - assert(a == nil and b == nil) - a, b = mime.unb64("", nil) - assert(a == nil and b == nil) - local binary=string.char(0x00,0x44,0x1D,0x14,0x0F,0xF4,0xDA,0x11,0xA9,0x78,0x00,0x14,0x38,0x50,0x60,0xCE) - local encoded = mime.b64(binary) - local decoded=mime.unb64(encoded) - assert(binary == decoded) - print("ok") -end - -local t = socket.gettime() - -create_b64test() -identity_test() -encode_b64test() -decode_b64test() -compare_b64test() -cleanup_b64test() -padding_b64test() -test_b64lowlevel() - -create_qptest() -encode_qptest() -decode_qptest() -compare_qptest() -encode_qptest("binary") -decode_qptest() -compare_qptest() -cleanup_qptest() - - -print(string.format("done in %.2fs", socket.gettime() - t)) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/smtptest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/smtptest.lua deleted file mode 100644 index b5380ffc65a..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/smtptest.lua +++ /dev/null @@ -1,259 +0,0 @@ -local sent = {} - -local from = "diego@localhost" -local server = "localhost" -local rcpt = "luasocket@localhost" - -local files = { - "/var/spool/mail/luasocket", - "/var/spool/mail/luasock1", - "/var/spool/mail/luasock2", - "/var/spool/mail/luasock3", -} - -local t = socket.time() -local err - -dofile("mbox.lua") -local parse = mbox.parse -dofile("testsupport.lua") - -local total = function() - local t = 0 - for i = 1, #sent do - t = t + sent[i].count - end - return t -end - -local similar = function(s1, s2) - return - string.lower(string.gsub(s1, "%s", "")) == - string.lower(string.gsub(s2, "%s", "")) -end - -local fail = function(s) - s = s or "failed!" - print(s) - os.exit() -end - -local readfile = function(name) - local f = io.open(name, "r") - if not f then - fail("unable to open file!") - return nil - end - local s = f:read("*a") - f:close() - return s -end - -local empty = function() - for i,v in ipairs(files) do - local f = io.open(v, "w") - if not f then - fail("unable to open file!") - end - f:close() - end -end - -local get = function() - local s = "" - for i,v in ipairs(files) do - s = s .. "\n" .. readfile(v) - end - return s -end - -local check_headers = function(sent, got) - sent = sent or {} - got = got or {} - for i,v in pairs(sent) do - if not similar(v, got[i]) then fail("header " .. v .. "failed!") end - end -end - -local check_body = function(sent, got) - sent = sent or "" - got = got or "" - if not similar(sent, got) then fail("bodies differ!") end -end - -local check = function(sent, m) - io.write("checking ", m.headers.title, ": ") - for i = 1, #sent do - local s = sent[i] - if s.title == m.headers.title and s.count > 0 then - check_headers(s.headers, m.headers) - check_body(s.body, m.body) - s.count = s.count - 1 - print("ok") - return - end - end - fail("not found") -end - -local insert = function(sent, message) - if type(message.rcpt) == "table" then - message.count = #message.rcpt - else message.count = 1 end - message.headers = message.headers or {} - message.headers.title = message.title - table.insert(sent, message) -end - -local mark = function() - local time = socket.time() - return { time = time } -end - -local wait = function(sentinel, n) - local to - io.write("waiting for ", n, " messages: ") - while 1 do - local mbox = parse(get()) - if n == #mbox then break end - if socket.time() - sentinel.time > 50 then - to = 1 - break - end - socket.sleep(1) - io.write(".") - io.stdout:flush() - end - if to then fail("timeout") - else print("ok") end -end - -local stuffed_body = [[ -This message body needs to be -stuffed because it has a dot -. -by itself on a line. -Otherwise the mailer would -think that the dot -. -is the end of the message -and the remaining text would cause -a lot of trouble. -]] - -insert(sent, { - from = from, - rcpt = { - "luasocket@localhost", - "luasock3@dell-diego.cs.princeton.edu", - "luasock1@dell-diego.cs.princeton.edu" - }, - body = "multiple rcpt body", - title = "multiple rcpt", -}) - -insert(sent, { - from = from, - rcpt = { - "luasock2@localhost", - "luasock3", - "luasock1" - }, - headers = { - header1 = "header 1", - header2 = "header 2", - header3 = "header 3", - header4 = "header 4", - header5 = "header 5", - header6 = "header 6", - }, - body = stuffed_body, - title = "complex message", -}) - -insert(sent, { - from = from, - rcpt = rcpt, - server = server, - body = "simple message body", - title = "simple message" -}) - -insert(sent, { - from = from, - rcpt = rcpt, - server = server, - body = stuffed_body, - title = "stuffed message body" -}) - -insert(sent, { - from = from, - rcpt = rcpt, - headers = { - header1 = "header 1", - header2 = "header 2", - header3 = "header 3", - header4 = "header 4", - header5 = "header 5", - header6 = "header 6", - }, - title = "multiple headers" -}) - -insert(sent, { - from = from, - rcpt = rcpt, - title = "minimum message" -}) - -io.write("testing host not found: ") -local c, e = socket.connect("wrong.host", 25) -local ret, err = socket.smtp.mail{ - from = from, - rcpt = rcpt, - server = "wrong.host" -} -if ret or e ~= err then fail("wrong error message") -else print("ok") end - -io.write("testing invalid from: ") -local ret, err = socket.smtp.mail{ - from = ' " " (( _ * ', - rcpt = rcpt, -} -if ret or not err then fail("wrong error message") -else print(err) end - -io.write("testing no rcpt: ") -local ret, err = socket.smtp.mail{ - from = from, -} -if ret or not err then fail("wrong error message") -else print(err) end - -io.write("clearing mailbox: ") -empty() -print("ok") - -io.write("sending messages: ") -for i = 1, #sent do - ret, err = socket.smtp.mail(sent[i]) - if not ret then fail(err) end - io.write("+") - io.stdout:flush() -end -print("ok") - -wait(mark(), total()) - -io.write("parsing mailbox: ") -local mbox = parse(get()) -print(#mbox .. " messages found!") - -for i = 1, #mbox do - check(sent, mbox[i]) -end - -print("passed all tests") -print(string.format("done in %.2fs", socket.time() - t)) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/stufftest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/stufftest.lua deleted file mode 100644 index 490053f2805..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/stufftest.lua +++ /dev/null @@ -1,21 +0,0 @@ -local mime = require("mime") - -function test_dot(original, right) - local result, n = mime.dot(2, original) - assert(result == right, "->" .. result .. "<-") - print("ok") -end - -function test_stuff(original, right) - local result, n = mime.dot(2, original) - assert(result == right, "->" .. result .. "<-") - print("ok") -end - -test_dot("abc", "abc") -test_dot("", "") -test_dot("\r\n", "\r\n") -test_dot("\r\n.", "\r\n..") -test_dot(".\r\n.", "..\r\n..") -test_dot(".\r\n.", "..\r\n..") -test_dot("abcd.\r\n.", "abcd.\r\n..") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/tcp-getoptions b/Build/source/texk/web2c/luatexdir/luasocket/test/tcp-getoptions deleted file mode 100755 index f9b3d1bb8a4..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/tcp-getoptions +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env lua - -require"socket" - -port = 8765 - -function options(o) - print("options for", o) - - for _, opt in ipairs{"keepalive", "reuseaddr", "tcp-nodelay"} do - print("getoption", opt, o:getoption(opt)) - end - - print("getoption", "linger", - "on", o:getoption("linger").on, - "timeout", o:getoption("linger").timeout) -end - -local m = socket.tcp() - -options(m) - -assert(m:bind("*", port)) -assert(m:listen()) - -options(m) - -m:close() - -local m = socket.bind("*", port) - -options(m) - -local c = socket.connect("localhost", port) - -options(c) - -local s = m:accept() - -options(s) - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/test_bind.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/test_bind.lua deleted file mode 100644 index 93c42d7291e..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/test_bind.lua +++ /dev/null @@ -1,6 +0,0 @@ -local socket = require "socket" -local u = socket.udp() assert(u:setsockname("*", 5088)) u:close() -local u = socket.udp() assert(u:setsockname("*", 0)) u:close() -local t = socket.tcp() assert(t:bind("*", 5088)) t:close() -local t = socket.tcp() assert(t:bind("*", 0)) t:close() -print("done!")
\ No newline at end of file diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/test_getaddrinfo.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/test_getaddrinfo.lua deleted file mode 100644 index 4b52ff924fc..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/test_getaddrinfo.lua +++ /dev/null @@ -1,15 +0,0 @@ -local socket = require "socket" -local addresses = assert(socket.dns.getaddrinfo("localhost")) -assert(type(addresses) == 'table') - -local ipv4mask = "^%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?$" - -for i, alt in ipairs(addresses) do - if alt.family == 'inet' then - assert(type(alt.addr) == 'string') - assert(alt.addr:find(ipv4mask)) - assert(alt.addr == '127.0.0.1') - end -end - -print("done!") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/test_socket_error.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/test_socket_error.lua deleted file mode 100644 index bda64081d07..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/test_socket_error.lua +++ /dev/null @@ -1,31 +0,0 @@ -local socket = require "socket" - -local host, port = "127.0.0.1", "5462" - -assert(socket.bind(host, port)):close() - -local sock = socket.tcp() -sock:settimeout(0) - -local ok, err = sock:connect(host, port) -assert(not ok) -assert('timeout' == err) - -for i = 1, 10 do - -- select pass even if socket has error - local _, rec, err = socket.select(nil, {sock}, 1) - local _, ss = next(rec) - if ss then - assert(ss == sock) - else - assert('timeout' == err, 'unexpected error :' .. tostring(err)) - end - err = sock:getoption("error") -- i get 'connection refused' on WinXP - if err then - print("Passed! Error is '" .. err .. "'.") - os.exit(0) - end -end - -print("Fail! No error detected!") -os.exit(1) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/testclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/testclnt.lua deleted file mode 100644 index 170e1878b03..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/testclnt.lua +++ /dev/null @@ -1,803 +0,0 @@ -local socket = require"socket" - -host = host or "localhost" -port = port or "8383" - -function printf(...) - io.stderr:write(string.format(...)) -end - -function pass(...) - printf(...) - io.stderr:write("\n") -end - -function fail(...) - io.stderr:write("ERROR: ") - printf(...) - io.stderr:write("!\n") - os.exit() -end - -function warn(...) - local s = string.format(...) - io.stderr:write("WARNING: ", s, "\n") -end - -function remote(...) - local s = string.format(...) - s = string.gsub(s, "\n", ";") - s = string.gsub(s, "%s+", " ") - s = string.gsub(s, "^%s*", "") - control:send(s .. "\n") - control:receive() -end - -function test(test) - io.stderr:write("----------------------------------------------\n", - "testing: ", test, "\n", - "----------------------------------------------\n") -end - -function check_timeout(tm, sl, elapsed, err, opp, mode, alldone) - if tm < sl then - if opp == "send" then - if not err then warn("must be buffered") - elseif err == "timeout" then pass("proper timeout") - else fail("unexpected error '%s'", err) end - else - if err ~= "timeout" then fail("should have timed out") - else pass("proper timeout") end - end - else - if mode == "total" then - if elapsed > tm then - if err ~= "timeout" then fail("should have timed out") - else pass("proper timeout") end - elseif elapsed < tm then - if err then fail(err) - else pass("ok") end - else - if alldone then - if err then fail("unexpected error '%s'", err) - else pass("ok") end - else - if err ~= "timeout" then fail(err) - else pass("proper timeoutk") end - end - end - else - if err then fail(err) - else pass("ok") end - end - end -end - -if not socket._DEBUG then - fail("Please define LUASOCKET_DEBUG and recompile LuaSocket") -end - -io.stderr:write("----------------------------------------------\n", -"LuaSocket Test Procedures\n", -"----------------------------------------------\n") - -start = socket.gettime() - -function reconnect() - if data then data:close() end - remote [[ - if data then data:close() data = nil end - data = server:accept() - data:setoption("tcp-nodelay", true) - ]] - data, err = socket.connect(host, port) - if not data then fail(err) end - data:setoption("tcp-nodelay", true) -end - -printf("attempting control connection...") -control, err = socket.connect(host, port) -if err then fail(err) -else pass("connected!") end -control:setoption("tcp-nodelay", true) - ------------------------------------------------------------------------- -function test_methods(sock, methods) - for _, v in pairs(methods) do - if type(sock[v]) ~= "function" then - fail(sock.class .. " method '" .. v .. "' not registered") - end - end - pass(sock.class .. " methods are ok") -end - ------------------------------------------------------------------------- -function test_mixed(len) - reconnect() - io.stderr:write("length " .. len .. ": ") - local inter = math.ceil(len/4) - local p1 = "unix " .. string.rep("x", inter) .. "line\n" - local p2 = "dos " .. string.rep("y", inter) .. "line\r\n" - local p3 = "raw " .. string.rep("z", inter) .. "bytes" - local p4 = "end" .. string.rep("w", inter) .. "bytes" - local bp1, bp2, bp3, bp4 -remote (string.format("str = data:receive(%d)", - string.len(p1)+string.len(p2)+string.len(p3)+string.len(p4))) - sent, err = data:send(p1..p2..p3..p4) - if err then fail(err) end -remote "data:send(str); data:close()" - bp1, err = data:receive() - if err then fail(err) end - bp2, err = data:receive() - if err then fail(err) end - bp3, err = data:receive(string.len(p3)) - if err then fail(err) end - bp4, err = data:receive("*a") - if err then fail(err) end - if bp1.."\n" == p1 and bp2.."\r\n" == p2 and bp3 == p3 and bp4 == p4 then - pass("patterns match") - else fail("patterns don't match") end -end - ------------------------------------------------------------------------- -if not math.mod then - math.mod = math.fmod -end -function test_asciiline(len) - reconnect() - io.stderr:write("length " .. len .. ": ") - local str, str10, back, err - str = string.rep("x", math.mod(len, 10)) - str10 = string.rep("aZb.c#dAe?", math.floor(len/10)) - str = str .. str10 -remote "str = data:receive()" - sent, err = data:send(str.."\n") - if err then fail(err) end -remote "data:send(str ..'\\n')" - back, err = data:receive() - if err then fail(err) end - if back == str then pass("lines match") - else fail("lines don't match") end -end - ------------------------------------------------------------------------- -function test_rawline(len) - reconnect() - io.stderr:write("length " .. len .. ": ") - local str, str10, back, err - str = string.rep(string.char(47), math.mod(len, 10)) - str10 = string.rep(string.char(120,21,77,4,5,0,7,36,44,100), - math.floor(len/10)) - str = str .. str10 -remote "str = data:receive()" - sent, err = data:send(str.."\n") - if err then fail(err) end -remote "data:send(str..'\\n')" - back, err = data:receive() - if err then fail(err) end - if back == str then pass("lines match") - else fail("lines don't match") end -end - ------------------------------------------------------------------------- -function test_raw(len) - reconnect() - io.stderr:write("length " .. len .. ": ") - local half = math.floor(len/2) - local s1, s2, back, err - s1 = string.rep("x", half) - s2 = string.rep("y", len-half) -remote (string.format("str = data:receive(%d)", len)) - sent, err = data:send(s1) - if err then fail(err) end - sent, err = data:send(s2) - if err then fail(err) end -remote "data:send(str)" - back, err = data:receive(len) - if err then fail(err) end - if back == s1..s2 then pass("blocks match") - else fail("blocks don't match") end -end - ------------------------------------------------------------------------- -function test_totaltimeoutreceive(len, tm, sl) - reconnect() - local str, err, partial - printf("%d bytes, %ds total timeout, %ds pause: ", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = string.rep('a', %d) - data:send(str) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - data:send(str) - ]], 2*tm, len, sl, sl)) - data:settimeout(tm, "total") -local t = socket.gettime() - str, err, partial, elapsed = data:receive(2*len) - check_timeout(tm, sl, elapsed, err, "receive", "total", - string.len(str or partial) == 2*len) -end - ------------------------------------------------------------------------- -function test_totaltimeoutsend(len, tm, sl) - reconnect() - local str, err, total - printf("%d bytes, %ds total timeout, %ds pause: ", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = data:receive(%d) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - str = data:receive(%d) - ]], 2*tm, len, sl, sl, len)) - data:settimeout(tm, "total") - str = string.rep("a", 2*len) - total, err, partial, elapsed = data:send(str) - check_timeout(tm, sl, elapsed, err, "send", "total", - total == 2*len) -end - ------------------------------------------------------------------------- -function test_blockingtimeoutreceive(len, tm, sl) - reconnect() - local str, err, partial - printf("%d bytes, %ds blocking timeout, %ds pause: ", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = string.rep('a', %d) - data:send(str) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - data:send(str) - ]], 2*tm, len, sl, sl)) - data:settimeout(tm) - str, err, partial, elapsed = data:receive(2*len) - check_timeout(tm, sl, elapsed, err, "receive", "blocking", - string.len(str or partial) == 2*len) -end - ------------------------------------------------------------------------- -function test_blockingtimeoutsend(len, tm, sl) - reconnect() - local str, err, total - printf("%d bytes, %ds blocking timeout, %ds pause: ", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = data:receive(%d) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - str = data:receive(%d) - ]], 2*tm, len, sl, sl, len)) - data:settimeout(tm) - str = string.rep("a", 2*len) - total, err, partial, elapsed = data:send(str) - check_timeout(tm, sl, elapsed, err, "send", "blocking", - total == 2*len) -end - ------------------------------------------------------------------------- -function empty_connect() - printf("empty connect: ") - reconnect() - if data then data:close() data = nil end - remote [[ - if data then data:close() data = nil end - data = server:accept() - ]] - data, err = socket.connect("", port) - if not data then - pass("ok") - data = socket.connect(host, port) - else - pass("gethostbyname returns localhost on empty string...") - end -end - ------------------------------------------------------------------------- -function isclosed(c) - return c:getfd() == -1 or c:getfd() == (2^32-1) -end - -function active_close() - local tcp = socket.tcp4() - if isclosed(tcp) then fail("should not be closed") end - tcp:close() - if not isclosed(tcp) then fail("should be closed") end - tcp = socket.tcp() - if not isclosed(tcp) then fail("should be closed") end - tcp = nil - local udp = socket.udp4() - if isclosed(udp) then fail("should not be closed") end - udp:close() - if not isclosed(udp) then fail("should be closed") end - udp = socket.udp() - if not isclosed(udp) then fail("should be closed") end - udp = nil - pass("ok") -end - ------------------------------------------------------------------------- -function test_closed() - local back, partial, err - local str = 'little string' - reconnect() - printf("trying read detection: ") - remote (string.format ([[ - data:send('%s') - data:close() - data = nil - ]], str)) - -- try to get a line - back, err, partial = data:receive() - if not err then fail("should have gotten 'closed'.") - elseif err ~= "closed" then fail("got '"..err.."' instead of 'closed'.") - elseif str ~= partial then fail("didn't receive partial result.") - else pass("graceful 'closed' received") end - reconnect() - printf("trying write detection: ") - remote [[ - data:close() - data = nil - ]] - total, err, partial = data:send(string.rep("ugauga", 100000)) - if not err then - pass("failed: output buffer is at least %d bytes long!", total) - elseif err ~= "closed" then - fail("got '"..err.."' instead of 'closed'.") - else - pass("graceful 'closed' received after %d bytes were sent", partial) - end -end - ------------------------------------------------------------------------- -function test_selectbugs() - local r, s, e = socket.select(nil, nil, 0.1) - assert(type(r) == "table" and type(s) == "table" and - (e == "timeout" or e == "error")) - pass("both nil: ok") - local udp = socket.udp() - udp:close() - r, s, e = socket.select({ udp }, { udp }, 0.1) - assert(type(r) == "table" and type(s) == "table" and - (e == "timeout" or e == "error")) - pass("closed sockets: ok") - e = pcall(socket.select, "wrong", 1, 0.1) - assert(e == false, tostring(e)) - e = pcall(socket.select, {}, 1, 0.1) - assert(e == false, tostring(e)) - pass("invalid input: ok") - local toomany = {} - for i = 1, socket._SETSIZE+1 do - toomany[#toomany+1] = socket.udp4() - end - if #toomany > socket._SETSIZE then - local e = pcall(socket.select, toomany, nil, 0.1) - assert(e == false, tostring(e)) - pass("too many sockets (" .. #toomany .. "): ok") - else - pass("unable to create enough sockets (max was "..#toomany..")") - pass("try using ulimit") - end - for _, c in ipairs(toomany) do c:close() end -end - ------------------------------------------------------------------------- -function accept_timeout() - printf("accept with timeout (if it hangs, it failed): ") - local s, e = socket.bind("*", 0, 0) - assert(s, e) - local t = socket.gettime() - s:settimeout(1) - local c, e = s:accept() - assert(not c, "should not accept") - assert(e == "timeout", string.format("wrong error message (%s)", e)) - t = socket.gettime() - t - assert(t < 2, string.format("took to long to give up (%gs)", t)) - s:close() - pass("good") -end - ------------------------------------------------------------------------- -function connect_timeout() - printf("connect with timeout (if it hangs, it failed!): ") - local t = socket.gettime() - local c, e = socket.tcp() - assert(c, e) - c:settimeout(0.1) - local t = socket.gettime() - local r, e = c:connect("10.0.0.1", 81) - assert(not r, "should not connect") - assert(socket.gettime() - t < 2, "took too long to give up.") - c:close() - pass("ok") -end - ------------------------------------------------------------------------- -function accept_errors() - printf("not listening: ") - local d, e = socket.bind("*", 0) - assert(d, e); - local c, e = socket.tcp(); - assert(c, e); - d:setfd(c:getfd()) - d:settimeout(2) - local r, e = d:accept() - assert(not r and e) - pass("ok") - printf("not supported: ") - local c, e = socket.udp() - assert(c, e); - d:setfd(c:getfd()) - local r, e = d:accept() - assert(not r and e) - pass("ok") -end - ------------------------------------------------------------------------- -function connect_errors() - printf("connection refused: ") - local c, e = socket.connect("localhost", 1); - assert(not c and e) - pass("ok") - printf("host not found: ") - local c, e = socket.connect("host.is.invalid", 1); - assert(not c and e, e) - pass("ok") -end - ------------------------------------------------------------------------- -function rebind_test() - local c ,c1 = socket.bind("127.0.0.1", 0) - if not c then pass ("failed to bind! " .. tostring(c) .. ' ' .. tostring(c1)) return end - assert(c,c1) - local i, p = c:getsockname() - local s, e = socket.tcp() - assert(s, e) - s:setoption("reuseaddr", false) - r, e = s:bind(i, p) - assert(not r, "managed to rebind!") - assert(e) - pass("ok") -end - ------------------------------------------------------------------------- -function getstats_test() - reconnect() - local t = 0 - for i = 1, 25 do - local c = math.random(1, 100) - remote (string.format ([[ - str = data:receive(%d) - data:send(str) - ]], c)) - data:send(string.rep("a", c)) - data:receive(c) - t = t + c - local r, s, a = data:getstats() - assert(r == t, "received count failed" .. tostring(r) - .. "/" .. tostring(t)) - assert(s == t, "sent count failed" .. tostring(s) - .. "/" .. tostring(t)) - end - pass("ok") -end - - ------------------------------------------------------------------------- -function test_nonblocking(size) - reconnect() - printf("testing " .. 2*size .. " bytes: ") -remote(string.format([[ - data:send(string.rep("a", %d)) - socket.sleep(0.5) - data:send(string.rep("b", %d) .. "\n") -]], size, size)) - local err = "timeout" - local part = "" - local str - data:settimeout(0) - while 1 do - str, err, part = data:receive("*l", part) - if err ~= "timeout" then break end - end - assert(str == (string.rep("a", size) .. string.rep("b", size))) - reconnect() -remote(string.format([[ - str = data:receive(%d) - socket.sleep(0.5) - str = data:receive(2*%d, str) - data:send(str) -]], size, size)) - data:settimeout(0) - local start = 0 - while 1 do - ret, err, start = data:send(str, start+1) - if err ~= "timeout" then break end - end - data:send("\n") - data:settimeout(-1) - local back = data:receive(2*size) - assert(back == str, "'" .. back .. "' vs '" .. str .. "'") - pass("ok") -end - ------------------------------------------------------------------------- -function test_readafterclose() - local back, partial, err - local str = 'little string' - reconnect() - printf("trying repeated '*a' pattern") - remote (string.format ([[ - data:send('%s') - data:close() - data = nil - ]], str)) - back, err, partial = data:receive("*a") - assert(back == str, "unexpected data read") - back, err, partial = data:receive("*a") - assert(back == nil and err == "closed", "should have returned 'closed'") - pass("ok") - reconnect() - printf("trying active close before '*a'") - remote (string.format ([[ - data:close() - data = nil - ]])) - data:close() - back, err, partial = data:receive("*a") - assert(back == nil and err == "closed", "should have returned 'closed'") - pass("ok") - reconnect() - printf("trying active close before '*l'") - remote (string.format ([[ - data:close() - data = nil - ]])) - data:close() - back, err, partial = data:receive() - assert(back == nil and err == "closed", "should have returned 'closed'") - pass("ok") - reconnect() - printf("trying active close before raw 1") - remote (string.format ([[ - data:close() - data = nil - ]])) - data:close() - back, err, partial = data:receive(1) - assert(back == nil and err == "closed", "should have returned 'closed'") - pass("ok") - reconnect() - printf("trying active close before raw 0") - remote (string.format ([[ - data:close() - data = nil - ]])) - data:close() - back, err, partial = data:receive(0) - assert(back == nil and err == "closed", "should have returned 'closed'") - pass("ok") -end - ------------------------------------------------------------------------- -function test_writeafterclose() - local str = 'little string' - reconnect() - remote (string.format ([[ - data:close() - data = nil - ]])) - local sent, err, errsent - while not err do - sent, err, errsent, time = data:send(str) - end - assert(err == "closed", "got " .. err .. " instead of 'closed'") - pass("ok") -end - ------------------------------------------------------------------------- - -function test_partialrecv() - local str = 'little string' - reconnect() -remote([[ - data:send("7890") -]]) - data:settimeout(1) - back, err = data:receive(10, "123456") - assert(back == "1234567890", "failed on exact mixed length") - back, err = data:receive(8, "87654321") - assert(back == "87654321", "failed on exact length") - back, err = data:receive(4, "87654321") - assert(back == "87654321", "failed on smaller length") - pass("ok") -end - ------------------------------------------------------------------------- -test("method registration") - -local tcp_methods = { - "accept", - "bind", - "close", - "connect", - "dirty", - "getfamily", - "getfd", - "getoption", - "getpeername", - "getsockname", - "getstats", - "setstats", - "listen", - "receive", - "send", - "setfd", - "setoption", - "setpeername", - "setsockname", - "settimeout", - "shutdown", -} -test_methods(socket.tcp(), tcp_methods) -do local sock = socket.tcp6() -if sock then test_methods(socket.tcp6(), tcp_methods) -else io.stderr:write("Warning! IPv6 does not support!\n") end -end - -local udp_methods = { - "close", - "dirty", - "getfamily", - "getfd", - "getoption", - "getpeername", - "getsockname", - "receive", - "receivefrom", - "send", - "sendto", - "setfd", - "setoption", - "setpeername", - "setsockname", - "settimeout" -} - ------------------------------------------------------------------------- -test_methods(socket.udp(), udp_methods) -do local sock = socket.tcp6() -if sock then test_methods(socket.udp6(), udp_methods) -else io.stderr:write("Warning! IPv6 does not support!\n") end -end - -test("closed connection detection: ") -test_closed() - -test("partial receive") -test_partialrecv() - -test("select function") -test_selectbugs() - -test("read after close") -test_readafterclose() - -test("write after close") -test_writeafterclose() - -test("connect function") -connect_timeout() -empty_connect() -connect_errors() - -test("rebinding: ") -rebind_test() - -test("active close: ") -active_close() - -test("accept function: ") -accept_timeout() -accept_errors() - -test("getstats test") -getstats_test() - -test("character line") -test_asciiline(1) -test_asciiline(17) -test_asciiline(200) -test_asciiline(4091) -test_asciiline(80199) -test_asciiline(8000000) -test_asciiline(80199) -test_asciiline(4091) -test_asciiline(200) -test_asciiline(17) -test_asciiline(1) - -test("mixed patterns") -test_mixed(1) -test_mixed(17) -test_mixed(200) -test_mixed(4091) -test_mixed(801990) -test_mixed(4091) -test_mixed(200) -test_mixed(17) -test_mixed(1) - -test("binary line") -test_rawline(1) -test_rawline(17) -test_rawline(200) -test_rawline(4091) -test_rawline(80199) -test_rawline(8000000) -test_rawline(80199) -test_rawline(4091) -test_rawline(200) -test_rawline(17) -test_rawline(1) - -test("raw transfer") -test_raw(1) -test_raw(17) -test_raw(200) -test_raw(4091) -test_raw(80199) -test_raw(8000000) -test_raw(80199) -test_raw(4091) -test_raw(200) -test_raw(17) -test_raw(1) - -test("non-blocking transfer") -test_nonblocking(1) -test_nonblocking(17) -test_nonblocking(200) -test_nonblocking(4091) -test_nonblocking(80199) -test_nonblocking(800000) -test_nonblocking(80199) -test_nonblocking(4091) -test_nonblocking(200) -test_nonblocking(17) -test_nonblocking(1) - -test("total timeout on send") -test_totaltimeoutsend(800091, 1, 3) -test_totaltimeoutsend(800091, 2, 3) -test_totaltimeoutsend(800091, 5, 2) -test_totaltimeoutsend(800091, 3, 1) - -test("total timeout on receive") -test_totaltimeoutreceive(800091, 1, 3) -test_totaltimeoutreceive(800091, 2, 3) -test_totaltimeoutreceive(800091, 3, 2) -test_totaltimeoutreceive(800091, 3, 1) - -test("blocking timeout on send") -test_blockingtimeoutsend(800091, 1, 3) -test_blockingtimeoutsend(800091, 2, 3) -test_blockingtimeoutsend(800091, 3, 2) -test_blockingtimeoutsend(800091, 3, 1) - -test("blocking timeout on receive") -test_blockingtimeoutreceive(800091, 1, 3) -test_blockingtimeoutreceive(800091, 2, 3) -test_blockingtimeoutreceive(800091, 3, 2) -test_blockingtimeoutreceive(800091, 3, 1) - -test("shutting server down") -reconnect() -remote("os.exit()") - -test(string.format("done in %.2fs", socket.gettime() - start)) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/testmesg.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/testmesg.lua deleted file mode 100644 index 135a008d664..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/testmesg.lua +++ /dev/null @@ -1,96 +0,0 @@ --- load the smtp support and its friends -local smtp = require("socket.smtp") -local mime = require("mime") -local ltn12 = require("ltn12") - -function filter(s) - if s then io.write(s) end - return s -end - -source = smtp.message { - headers = { ['content-type'] = 'multipart/alternative' }, - body = { - [1] = { - headers = { ['Content-type'] = 'text/html' }, - body = "<html> <body> Hi, <b>there</b>...</body> </html>" - }, - [2] = { - headers = { ['content-type'] = 'text/plain' }, - body = "Hi, there..." - } - } -} - -r, e = smtp.send{ - rcpt = {"<diego@tecgraf.puc-rio.br>", - "<diego@princeton.edu>" }, - from = "<diego@princeton.edu>", - source = ltn12.source.chain(source, filter), - --server = "mail.cs.princeton.edu" - server = "localhost", - port = 2525 -} - -print(r, e) - --- creates a source to send a message with two parts. The first part is --- plain text, the second part is a PNG image, encoded as base64. -source = smtp.message{ - headers = { - -- Remember that headers are *ignored* by smtp.send. - from = "Sicrano <sicrano@tecgraf.puc-rio.br>", - to = "Fulano <fulano@tecgraf.puc-rio.br>", - subject = "Here is a message with attachments" - }, - body = { - preamble = "If your client doesn't understand attachments, \r\n" .. - "it will still display the preamble and the epilogue.\r\n" .. - "Preamble might show up even in a MIME enabled client.", - -- first part: No headers means plain text, us-ascii. - -- The mime.eol low-level filter normalizes end-of-line markers. - [1] = { - body = mime.eol(0, [[ - Lines in a message body should always end with CRLF. - The smtp module will *NOT* perform translation. It will - perform necessary stuffing, though. - ]]) - }, - -- second part: Headers describe content the to be an image, - -- sent under the base64 transfer content encoding. - -- Notice that nothing happens until the message is sent. Small - -- chunks are loaded into memory and translation happens on the fly. - [2] = { - headers = { - ["ConTenT-tYpE"] = 'image/png; name="luasocket.png"', - ["content-disposition"] = 'attachment; filename="luasocket.png"', - ["content-description"] = 'our logo', - ["content-transfer-encoding"] = "BASE64" - }, - body = ltn12.source.chain( - ltn12.source.file(io.open("luasocket.png", "rb")), - ltn12.filter.chain( - mime.encode("base64"), - mime.wrap() - ) - ) - }, - epilogue = "This might also show up, but after the attachments" - } -} - - -r, e = smtp.send{ - rcpt = {"<diego@tecgraf.puc-rio.br>", - "<diego@princeton.edu>" }, - from = "<diego@princeton.edu>", - source = ltn12.source.chain(source, filter), - --server = "mail.cs.princeton.edu", - --port = 25 - server = "localhost", - port = 2525 -} - -print(r, e) - - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/testsrvr.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/testsrvr.lua deleted file mode 100644 index 1eb2d5b1f76..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/testsrvr.lua +++ /dev/null @@ -1,20 +0,0 @@ -socket = require("socket"); -host = host or "localhost"; -port = port or "8383"; -server = assert(socket.bind(host, port)); -ack = "\n"; -while 1 do - print("server: waiting for client connection..."); - control = assert(server:accept()); - while 1 do - command, emsg = control:receive(); - if emsg == "closed" then - control:close() - break - end - assert(command, emsg) - assert(control:send(ack)); - print(command); - ((loadstring or load)(command))(); - end -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/testsupport.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/testsupport.lua deleted file mode 100644 index b9860882c2f..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/testsupport.lua +++ /dev/null @@ -1,37 +0,0 @@ -function readfile(name) - local f = io.open(name, "rb") - if not f then return nil end - local s = f:read("*a") - f:close() - return s -end - -function similar(s1, s2) - return string.lower(string.gsub(s1 or "", "%s", "")) == - string.lower(string.gsub(s2 or "", "%s", "")) -end - -function fail(msg) - msg = msg or "failed" - error(msg, 2) -end - -function compare(input, output) - local original = readfile(input) - local recovered = readfile(output) - if original ~= recovered then fail("comparison failed") - else print("ok") end -end - -local G = _G -local set = rawset -local warn = print - -local setglobal = function(table, key, value) - warn("changed " .. key) - set(table, key, value) -end - -setmetatable(G, { - __newindex = setglobal -}) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/tftptest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/tftptest.lua deleted file mode 100644 index 35078e83654..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/tftptest.lua +++ /dev/null @@ -1,20 +0,0 @@ --- load tftpclnt.lua -local tftp = require("socket.tftp") - --- needs tftp server running on localhost, with root pointing to --- a directory with index.html in it - -function readfile(file) - local f = io.open(file, "r") - if not f then return nil end - local a = f:read("*a") - f:close() - return a -end - -host = host or "diego.student.princeton.edu" -retrieved, err = tftp.get("tftp://" .. host .."/index.html") -assert(not err, err) -original = readfile("test/index.html") -assert(original == retrieved, "files differ!") -print("passed") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/udp-zero-length-send b/Build/source/texk/web2c/luatexdir/luasocket/test/udp-zero-length-send deleted file mode 100755 index a594944c833..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/udp-zero-length-send +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/lua - ---[[ -Show that luasocket returns an error message on zero-length UDP sends, -even though the send is valid, and in fact the UDP packet is sent -to the peer: - -% sudo tcpdump -i lo -n -tcpdump: verbose output suppressed, use -v or -vv for full protocol decode -listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes -13:40:16.652808 IP 127.0.0.1.56573 > 127.0.0.1.5432: UDP, length 0 - -]] - -require"socket" - -s = assert(socket.udp()) -r = assert(socket.udp()) -assert(r:setsockname("*", 5432)) -assert(s:setpeername("127.0.0.1", 5432)) - -ssz, emsg = s:send("") - -print(ssz == 0 and "OK" or "FAIL",[[send:("")]], ssz, emsg) - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/udp-zero-length-send-recv b/Build/source/texk/web2c/luatexdir/luasocket/test/udp-zero-length-send-recv deleted file mode 100755 index 541efd43259..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/udp-zero-length-send-recv +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/lua - ---[[ -Show that luasocket returns an error message on zero-length UDP sends, -even though the send is valid, and in fact the UDP packet is sent -to the peer: - -% sudo tcpdump -i lo -n -tcpdump: verbose output suppressed, use -v or -vv for full protocol decode -listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes -13:40:16.652808 IP 127.0.0.1.56573 > 127.0.0.1.5432: UDP, length 0 - -]] - -require"socket" - -s = assert(socket.udp()) -r = assert(socket.udp()) -assert(r:setsockname("*", 5432)) -assert(s:setpeername("127.0.0.1", 5432)) - -ok, emsg = s:send("") -if ok ~= 0 then - print("send of zero failed with:", ok, emsg) -end - -assert(r:settimeout(2)) - -ok, emsg = r:receive() - -if not ok or string.len(ok) ~= 0 then - print("fail - receive of zero failed with:", ok, emsg) - os.exit(1) -end - -print"ok" - diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/udpconnectclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/udpconnectclnt.lua deleted file mode 100644 index ad6ab6a459d..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/udpconnectclnt.lua +++ /dev/null @@ -1,19 +0,0 @@ -local socket = require"socket" -local udp = socket.udp -local localhost = "127.0.0.1" -local port = assert(arg[1], "missing port argument") - -se = udp(); se:setoption("reuseaddr", true) -se:setsockname(localhost, 5062) -print("se", se:getsockname()) -sc = udp(); sc:setoption("reuseaddr", true) -sc:setsockname(localhost, 5061) -print("sc", sc:getsockname()) - -se:sendto("this is a test from se", localhost, port) -socket.sleep(1) -sc:sendto("this is a test from sc", localhost, port) -socket.sleep(1) -se:sendto("this is a test from se", localhost, port) -socket.sleep(1) -sc:sendto("this is a test from sc", localhost, port) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/udpconnectsrvr.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/udpconnectsrvr.lua deleted file mode 100644 index 5a9772ec6c4..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/udpconnectsrvr.lua +++ /dev/null @@ -1,16 +0,0 @@ -local socket = require"socket" -local udp = socket.udp -local localhost = "127.0.0.1" -local s = assert(udp()) -assert(tostring(s):find("udp{unconnected}")) -print("setpeername", s:setpeername(localhost, 5061)) -print("getsockname", s:getsockname()) -assert(tostring(s):find("udp{connected}")) -print(s:receive()) -print("setpeername", s:setpeername("*")) -print("getsockname", s:getsockname()) -s:sendto("a", localhost, 12345) -print("getsockname", s:getsockname()) -assert(tostring(s):find("udp{unconnected}")) -print(s:receivefrom()) -s:close() diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/unixdgramclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/unixdgramclnt.lua deleted file mode 100644 index 9bd60f7f7bd..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/unixdgramclnt.lua +++ /dev/null @@ -1,9 +0,0 @@ -socket = require"socket" -socket.unix = require"socket.unix" -c = assert(socket.unix.dgram()) -print(c:bind("/tmp/bar")) -while 1 do - local l = io.read("*l") - assert(c:sendto(l, "/tmp/foo")) - print(assert(c:receivefrom())) -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/unixdgramsrvr.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/unixdgramsrvr.lua deleted file mode 100644 index 4c11f552c64..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/unixdgramsrvr.lua +++ /dev/null @@ -1,9 +0,0 @@ - socket = require"socket" - socket.unix = require"socket.unix" - u = assert(socket.unix.dgram()) - assert(u:bind("/tmp/foo")) - while 1 do - x, r = assert(u:receivefrom()) - print(x, r) - assert(u:sendto(">" .. x, r)) - end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/unixstreamclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/unixstreamclnt.lua deleted file mode 100644 index 4f2e1e3c187..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/unixstreamclnt.lua +++ /dev/null @@ -1,8 +0,0 @@ -socket = require"socket" -socket.unix = require"socket.unix" -c = assert(socket.unix.stream()) -assert(c:connect("/tmp/foo")) -while 1 do - local l = io.read() - assert(c:send(l .. "\n")) -end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/unixstreamsrvr.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/unixstreamsrvr.lua deleted file mode 100644 index 0a5c644be48..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/unixstreamsrvr.lua +++ /dev/null @@ -1,9 +0,0 @@ - socket = require"socket" - socket.unix = require"socket.unix" - u = assert(socket.unix.stream()) - assert(u:bind("/tmp/foo")) - assert(u:listen()) - c = assert(u:accept()) - while 1 do - print(assert(c:receive())) - end diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/upload.html b/Build/source/texk/web2c/luatexdir/luasocket/test/upload.html deleted file mode 100644 index b4674a88503..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/upload.html +++ /dev/null @@ -1,15 +0,0 @@ -<html> -<head> -<title>POST test</title> -</head> -<body> - -<form action='http://localhost/luasocket-cgi-bin/cat-stdin' enctype='multipart/form-data' method=POST> -<center> -<input type="file" name="attach"> -<p> -<input type=submit name=sendmail value="send"> -</center> -</form> -</body> -</html> diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/urltest.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/urltest.lua deleted file mode 100644 index 32cb348deb6..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/urltest.lua +++ /dev/null @@ -1,635 +0,0 @@ -local socket = require("socket") -socket.url = require("socket.url") -dofile("testsupport.lua") - -local check_build_url = function(parsed) - local built = socket.url.build(parsed) - if built ~= parsed.url then - print("built is different from expected") - print(built) - print(expected) - os.exit() - end -end - -local check_protect = function(parsed, path, unsafe) - local built = socket.url.build_path(parsed, unsafe) - if built ~= path then - print(built, path) - print("path composition failed.") - os.exit() - end -end - -local check_invert = function(url) - local parsed = socket.url.parse(url) - parsed.path = socket.url.build_path(socket.url.parse_path(parsed.path)) - local rebuilt = socket.url.build(parsed) - if rebuilt ~= url then - print(url, rebuilt) - print("original and rebuilt are different") - os.exit() - end -end - -local check_parse_path = function(path, expect) - local parsed = socket.url.parse_path(path) - for i = 1, math.max(#parsed, #expect) do - if parsed[i] ~= expect[i] then - print(path) - os.exit() - end - end - if expect.is_directory ~= parsed.is_directory then - print(path) - print("is_directory mismatch") - os.exit() - end - if expect.is_absolute ~= parsed.is_absolute then - print(path) - print("is_absolute mismatch") - os.exit() - end - local built = socket.url.build_path(expect) - if built ~= path then - print(built, path) - print("path composition failed.") - os.exit() - end -end - -local check_absolute_url = function(base, relative, absolute) - local res = socket.url.absolute(base, relative) - if res ~= absolute then - io.write("absolute: In test for '", relative, "' expected '", - absolute, "' but got '", res, "'\n") - os.exit() - end -end - -local check_parse_url = function(gaba) - local url = gaba.url - gaba.url = nil - local parsed = socket.url.parse(url) - for i, v in pairs(gaba) do - if v ~= parsed[i] then - io.write("parse: In test for '", url, "' expected ", i, " = '", - v, "' but got '", tostring(parsed[i]), "'\n") - for i,v in pairs(parsed) do print(i,v) end - os.exit() - end - end - for i, v in pairs(parsed) do - if v ~= gaba[i] then - io.write("parse: In test for '", url, "' expected ", i, " = '", - tostring(gaba[i]), "' but got '", v, "'\n") - for i,v in pairs(parsed) do print(i,v) end - os.exit() - end - end -end - -print("testing URL parsing") -check_parse_url{ - url = "scheme://userinfo@host:port/path;params?query#fragment", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://user:password@host:port/path;params?query#fragment", - scheme = "scheme", - authority = "user:password@host:port", - host = "host", - port = "port", - userinfo = "user:password", - user = "user", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment", -} - -check_parse_url{ - url = "scheme://userinfo@host:port/path;params?query#", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "params", - query = "query", - fragment = "" -} - -check_parse_url{ - url = "scheme://userinfo@host:port/path;params?#fragment", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "params", - query = "", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://userinfo@host:port/path;params#fragment", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "params", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://userinfo@host:port/path;?query#fragment", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "", - query = "query", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://userinfo@host:port/path?query#fragment", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - query = "query", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://userinfo@host:port/;params?query#fragment", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/", - params = "params", - query = "query", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://userinfo@host:port", - scheme = "scheme", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", -} - -check_parse_url{ - url = "//userinfo@host:port/path;params?query#fragment", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_parse_url{ - url = "//userinfo@host:port/path", - authority = "userinfo@host:port", - host = "host", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", -} - -check_parse_url{ - url = "//userinfo@host/path", - authority = "userinfo@host", - host = "host", - userinfo = "userinfo", - user = "userinfo", - path = "/path", -} - -check_parse_url{ - url = "//user:password@host/path", - authority = "user:password@host", - host = "host", - userinfo = "user:password", - password = "password", - user = "user", - path = "/path", -} - -check_parse_url{ - url = "//user:@host/path", - authority = "user:@host", - host = "host", - userinfo = "user:", - password = "", - user = "user", - path = "/path", -} - -check_parse_url{ - url = "//user@host:port/path", - authority = "user@host:port", - host = "host", - userinfo = "user", - user = "user", - port = "port", - path = "/path", -} - -check_parse_url{ - url = "//host:port/path", - authority = "host:port", - port = "port", - host = "host", - path = "/path", -} - -check_parse_url{ - url = "//host/path", - authority = "host", - host = "host", - path = "/path", -} - -check_parse_url{ - url = "//host", - authority = "host", - host = "host", -} - -check_parse_url{ - url = "/path", - path = "/path", -} - -check_parse_url{ - url = "path", - path = "path", -} - --- IPv6 tests - -check_parse_url{ - url = "http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html", - scheme = "http", - host = "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210", - authority = "[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80", - port = "80", - path = "/index.html" -} - -check_parse_url{ - url = "http://[1080:0:0:0:8:800:200C:417A]/index.html", - scheme = "http", - host = "1080:0:0:0:8:800:200C:417A", - authority = "[1080:0:0:0:8:800:200C:417A]", - path = "/index.html" -} - -check_parse_url{ - url = "http://[3ffe:2a00:100:7031::1]", - scheme = "http", - host = "3ffe:2a00:100:7031::1", - authority = "[3ffe:2a00:100:7031::1]", -} - -check_parse_url{ - url = "http://[1080::8:800:200C:417A]/foo", - scheme = "http", - host = "1080::8:800:200C:417A", - authority = "[1080::8:800:200C:417A]", - path = "/foo" -} - -check_parse_url{ - url = "http://[::192.9.5.5]/ipng", - scheme = "http", - host = "::192.9.5.5", - authority = "[::192.9.5.5]", - path = "/ipng" -} - -check_parse_url{ - url = "http://[::FFFF:129.144.52.38]:80/index.html", - scheme = "http", - host = "::FFFF:129.144.52.38", - port = "80", - authority = "[::FFFF:129.144.52.38]:80", - path = "/index.html" -} - -check_parse_url{ - url = "http://[2010:836B:4179::836B:4179]", - scheme = "http", - host = "2010:836B:4179::836B:4179", - authority = "[2010:836B:4179::836B:4179]", -} - -check_parse_url{ - url = "//userinfo@[::FFFF:129.144.52.38]:port/path;params?query#fragment", - authority = "userinfo@[::FFFF:129.144.52.38]:port", - host = "::FFFF:129.144.52.38", - port = "port", - userinfo = "userinfo", - user = "userinfo", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_parse_url{ - url = "scheme://user:password@[::192.9.5.5]:port/path;params?query#fragment", - scheme = "scheme", - authority = "user:password@[::192.9.5.5]:port", - host = "::192.9.5.5", - port = "port", - userinfo = "user:password", - user = "user", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -print("testing URL building") -check_build_url { - url = "scheme://user:password@host:port/path;params?query#fragment", - scheme = "scheme", - host = "host", - port = "port", - user = "user", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url{ - url = "//userinfo@[::FFFF:129.144.52.38]:port/path;params?query#fragment", - host = "::FFFF:129.144.52.38", - port = "port", - user = "userinfo", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url{ - url = "scheme://user:password@[::192.9.5.5]:port/path;params?query#fragment", - scheme = "scheme", - host = "::192.9.5.5", - port = "port", - user = "user", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://user:password@host/path;params?query#fragment", - scheme = "scheme", - host = "host", - user = "user", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://user@host/path;params?query#fragment", - scheme = "scheme", - host = "host", - user = "user", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://host/path;params?query#fragment", - scheme = "scheme", - host = "host", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://host/path;params#fragment", - scheme = "scheme", - host = "host", - path = "/path", - params = "params", - fragment = "fragment" -} - -check_build_url { - url = "scheme://host/path#fragment", - scheme = "scheme", - host = "host", - path = "/path", - fragment = "fragment" -} - -check_build_url { - url = "scheme://host/path", - scheme = "scheme", - host = "host", - path = "/path", -} - -check_build_url { - url = "//host/path", - host = "host", - path = "/path", -} - -check_build_url { - url = "/path", - path = "/path", -} - -check_build_url { - url = "scheme://user:password@host:port/path;params?query#fragment", - scheme = "scheme", - host = "host", - port = "port", - user = "user", - userinfo = "not used", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://user:password@host:port/path;params?query#fragment", - scheme = "scheme", - host = "host", - port = "port", - user = "user", - userinfo = "not used", - authority = "not used", - password = "password", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://user:password@host:port/path;params?query#fragment", - scheme = "scheme", - host = "host", - port = "port", - userinfo = "user:password", - authority = "not used", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - -check_build_url { - url = "scheme://user:password@host:port/path;params?query#fragment", - scheme = "scheme", - authority = "user:password@host:port", - path = "/path", - params = "params", - query = "query", - fragment = "fragment" -} - --- standard RFC tests -print("testing absolute resolution") -check_absolute_url("http://a/b/c/d;p?q#f", "g:h", "g:h") -check_absolute_url("http://a/b/c/d;p?q#f", "g", "http://a/b/c/g") -check_absolute_url("http://a/b/c/d;p?q#f", "./g", "http://a/b/c/g") -check_absolute_url("http://a/b/c/d;p?q#f", "g/", "http://a/b/c/g/") -check_absolute_url("http://a/b/c/d;p?q#f", "/g", "http://a/g") -check_absolute_url("http://a/b/c/d;p?q#f", "//g", "http://g") -check_absolute_url("http://a/b/c/d;p?q#f", "?y", "http://a/b/c/d;p?y") -check_absolute_url("http://a/b/c/d;p?q#f", "g?y", "http://a/b/c/g?y") -check_absolute_url("http://a/b/c/d;p?q#f", "g?y/./x", "http://a/b/c/g?y/./x") -check_absolute_url("http://a/b/c/d;p?q#f", "#s", "http://a/b/c/d;p?q#s") -check_absolute_url("http://a/b/c/d;p?q#f", "g#s", "http://a/b/c/g#s") -check_absolute_url("http://a/b/c/d;p?q#f", "g#s/./x", "http://a/b/c/g#s/./x") -check_absolute_url("http://a/b/c/d;p?q#f", "g?y#s", "http://a/b/c/g?y#s") -check_absolute_url("http://a/b/c/d;p?q#f", ";x", "http://a/b/c/d;x") -check_absolute_url("http://a/b/c/d;p?q#f", "g;x", "http://a/b/c/g;x") -check_absolute_url("http://a/b/c/d;p?q#f", "g;x?y#s", "http://a/b/c/g;x?y#s") -check_absolute_url("http://a/b/c/d;p?q#f", ".", "http://a/b/c/") -check_absolute_url("http://a/b/c/d;p?q#f", "./", "http://a/b/c/") -check_absolute_url("http://a/b/c/d;p?q#f", "..", "http://a/b/") -check_absolute_url("http://a/b/c/d;p?q#f", "../", "http://a/b/") -check_absolute_url("http://a/b/c/d;p?q#f", "../g", "http://a/b/g") -check_absolute_url("http://a/b/c/d;p?q#f", "../..", "http://a/") -check_absolute_url("http://a/b/c/d;p?q#f", "../../", "http://a/") -check_absolute_url("http://a/b/c/d;p?q#f", "../../g", "http://a/g") -check_absolute_url("http://a/b/c/d;p?q#f", "", "http://a/b/c/d;p?q#f") -check_absolute_url("http://a/b/c/d;p?q#f", "/./g", "http://a/./g") -check_absolute_url("http://a/b/c/d;p?q#f", "/../g", "http://a/../g") -check_absolute_url("http://a/b/c/d;p?q#f", "g.", "http://a/b/c/g.") -check_absolute_url("http://a/b/c/d;p?q#f", ".g", "http://a/b/c/.g") -check_absolute_url("http://a/b/c/d;p?q#f", "g..", "http://a/b/c/g..") -check_absolute_url("http://a/b/c/d;p?q#f", "..g", "http://a/b/c/..g") -check_absolute_url("http://a/b/c/d;p?q#f", "./../g", "http://a/b/g") -check_absolute_url("http://a/b/c/d;p?q#f", "./g/.", "http://a/b/c/g/") -check_absolute_url("http://a/b/c/d;p?q#f", "g/./h", "http://a/b/c/g/h") -check_absolute_url("http://a/b/c/d;p?q#f", "g/../h", "http://a/b/c/h") - --- extra tests -check_absolute_url("//a/b/c/d;p?q#f", "d/e/f", "//a/b/c/d/e/f") -check_absolute_url("/a/b/c/d;p?q#f", "d/e/f", "/a/b/c/d/e/f") -check_absolute_url("a/b/c/d", "d/e/f", "a/b/c/d/e/f") -check_absolute_url("a/b/c/d/../", "d/e/f", "a/b/c/d/e/f") -check_absolute_url("http://velox.telemar.com.br", "/dashboard/index.html", - "http://velox.telemar.com.br/dashboard/index.html") - -print("testing path parsing and composition") -check_parse_path("/eu/tu/ele", { "eu", "tu", "ele"; is_absolute = 1 }) -check_parse_path("/eu/", { "eu"; is_absolute = 1, is_directory = 1 }) -check_parse_path("eu/tu/ele/nos/vos/eles/", - { "eu", "tu", "ele", "nos", "vos", "eles"; is_directory = 1}) -check_parse_path("/", { is_absolute = 1, is_directory = 1}) -check_parse_path("", { }) -check_parse_path("eu%01/%02tu/e%03l%04e/nos/vos%05/e%12les/", - { "eu\1", "\2tu", "e\3l\4e", "nos", "vos\5", "e\18les"; is_directory = 1}) -check_parse_path("eu/tu", { "eu", "tu" }) - -print("testing path protection") -check_protect({ "eu", "-_.!~*'():@&=+$,", "tu" }, "eu/-_.!~*'():@&=+$,/tu") -check_protect({ "eu ", "~diego" }, "eu%20/~diego") -check_protect({ "/eu>", "<diego?" }, "%2feu%3e/%3cdiego%3f") -check_protect({ "\\eu]", "[diego`" }, "%5ceu%5d/%5bdiego%60") -check_protect({ "{eu}", "|diego\127" }, "%7beu%7d/%7cdiego%7f") -check_protect({ "eu ", "~diego" }, "eu /~diego", 1) -check_protect({ "/eu>", "<diego?" }, "/eu>/<diego?", 1) -check_protect({ "\\eu]", "[diego`" }, "\\eu]/[diego`", 1) -check_protect({ "{eu}", "|diego\127" }, "{eu}/|diego\127", 1) - -print("testing inversion") -check_invert("http:") -check_invert("a/b/c/d.html") -check_invert("//net_loc") -check_invert("http:a/b/d/c.html") -check_invert("//net_loc/a/b/d/c.html") -check_invert("http://net_loc/a/b/d/c.html") -check_invert("//who:isit@net_loc") -check_invert("http://he:man@boo.bar/a/b/c/i.html;type=moo?this=that#mark") -check_invert("/b/c/d#fragment") -check_invert("/b/c/d;param#fragment") -check_invert("/b/c/d;param?query#fragment") -check_invert("/b/c/d?query") -check_invert("/b/c/d;param?query") -check_invert("http://he:man@[::192.168.1.1]/a/b/c/i.html;type=moo?this=that#mark") - -print("the library passed all tests") diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/utestclnt.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/utestclnt.lua deleted file mode 100644 index 34a0718b0ae..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/utestclnt.lua +++ /dev/null @@ -1,644 +0,0 @@ -local socket = require"socket" -socket.unix = require"socket.unix" - -host = host or "luasocket" - -function pass(...) - local s = string.format(...) - io.stderr:write(s, "\n") -end - -function fail(...) - local s = string.format(...) - io.stderr:write("ERROR: ", s, "!\n") -socket.sleep(3) - os.exit() -end - -function warn(...) - local s = string.format(...) - io.stderr:write("WARNING: ", s, "\n") -end - -function remote(...) - local s = string.format(...) - s = string.gsub(s, "\n", ";") - s = string.gsub(s, "%s+", " ") - s = string.gsub(s, "^%s*", "") - control:send(s .. "\n") - control:receive() -end - -function test(test) - io.stderr:write("----------------------------------------------\n", - "testing: ", test, "\n", - "----------------------------------------------\n") -end - -function uconnect(path) - local u = assert(socket.unix()) - assert(u:connect(path)) - return u -end - -function ubind(path) - local u = assert(socket.unix()) - assert(u:bind(path)) - assert(u:listen(5)) - return u -end - -function check_timeout(tm, sl, elapsed, err, opp, mode, alldone) - if tm < sl then - if opp == "send" then - if not err then warn("must be buffered") - elseif err == "timeout" then pass("proper timeout") - else fail("unexpected error '%s'", err) end - else - if err ~= "timeout" then fail("should have timed out") - else pass("proper timeout") end - end - else - if mode == "total" then - if elapsed > tm then - if err ~= "timeout" then fail("should have timed out") - else pass("proper timeout") end - elseif elapsed < tm then - if err then fail(err) - else pass("ok") end - else - if alldone then - if err then fail("unexpected error '%s'", err) - else pass("ok") end - else - if err ~= "timeout" then fail(err) - else pass("proper timeoutk") end - end - end - else - if err then fail(err) - else pass("ok") end - end - end -end - -if not socket._DEBUG then - fail("Please define LUASOCKET_DEBUG and recompile LuaSocket") -end - -io.stderr:write("----------------------------------------------\n", -"LuaSocket Test Procedures\n", -"----------------------------------------------\n") - -start = socket.gettime() - -function reconnect() - io.stderr:write("attempting data connection... ") - if data then data:close() end - remote [[ - i = i or 1 - if data then data:close() data = nil end - print("accepting") - data = server:accept() - i = i + 1 - print("done " .. i) - ]] - data, err = uconnect(host, port) - if not data then fail(err) - else pass("connected!") end -end - -pass("attempting control connection...") -control, err = uconnect(host, port) -if err then fail(err) -else pass("connected!") end - ------------------------------------------------------------------------- -function test_methods(sock, methods) - for _, v in pairs(methods) do - if type(sock[v]) ~= "function" then - fail(sock.class .. " method '" .. v .. "' not registered") - end - end - pass(sock.class .. " methods are ok") -end - ------------------------------------------------------------------------- -function test_mixed(len) - reconnect() - local inter = math.ceil(len/4) - local p1 = "unix " .. string.rep("x", inter) .. "line\n" - local p2 = "dos " .. string.rep("y", inter) .. "line\r\n" - local p3 = "raw " .. string.rep("z", inter) .. "bytes" - local p4 = "end" .. string.rep("w", inter) .. "bytes" - local bp1, bp2, bp3, bp4 -remote (string.format("str = data:receive(%d)", - string.len(p1)+string.len(p2)+string.len(p3)+string.len(p4))) - sent, err = data:send(p1..p2..p3..p4) - if err then fail(err) end -remote "data:send(str); data:close()" - bp1, err = data:receive() - if err then fail(err) end - bp2, err = data:receive() - if err then fail(err) end - bp3, err = data:receive(string.len(p3)) - if err then fail(err) end - bp4, err = data:receive("*a") - if err then fail(err) end - if bp1.."\n" == p1 and bp2.."\r\n" == p2 and bp3 == p3 and bp4 == p4 then - pass("patterns match") - else fail("patterns don't match") end -end - ------------------------------------------------------------------------- -function test_asciiline(len) - reconnect() - local str, str10, back, err - str = string.rep("x", math.mod(len, 10)) - str10 = string.rep("aZb.c#dAe?", math.floor(len/10)) - str = str .. str10 -remote "str = data:receive()" - sent, err = data:send(str.."\n") - if err then fail(err) end -remote "data:send(str ..'\\n')" - back, err = data:receive() - if err then fail(err) end - if back == str then pass("lines match") - else fail("lines don't match") end -end - ------------------------------------------------------------------------- -function test_rawline(len) - reconnect() - local str, str10, back, err - str = string.rep(string.char(47), math.mod(len, 10)) - str10 = string.rep(string.char(120,21,77,4,5,0,7,36,44,100), - math.floor(len/10)) - str = str .. str10 -remote "str = data:receive()" - sent, err = data:send(str.."\n") - if err then fail(err) end -remote "data:send(str..'\\n')" - back, err = data:receive() - if err then fail(err) end - if back == str then pass("lines match") - else fail("lines don't match") end -end - ------------------------------------------------------------------------- -function test_raw(len) - reconnect() - local half = math.floor(len/2) - local s1, s2, back, err - s1 = string.rep("x", half) - s2 = string.rep("y", len-half) -remote (string.format("str = data:receive(%d)", len)) - sent, err = data:send(s1) - if err then fail(err) end - sent, err = data:send(s2) - if err then fail(err) end -remote "data:send(str)" - back, err = data:receive(len) - if err then fail(err) end - if back == s1..s2 then pass("blocks match") - else fail("blocks don't match") end -end - ------------------------------------------------------------------------- -function test_totaltimeoutreceive(len, tm, sl) - reconnect() - local str, err, partial - pass("%d bytes, %ds total timeout, %ds pause", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = string.rep('a', %d) - data:send(str) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - data:send(str) - ]], 2*tm, len, sl, sl)) - data:settimeout(tm, "total") -local t = socket.gettime() - str, err, partial, elapsed = data:receive(2*len) - check_timeout(tm, sl, elapsed, err, "receive", "total", - string.len(str or partial) == 2*len) -end - ------------------------------------------------------------------------- -function test_totaltimeoutsend(len, tm, sl) - reconnect() - local str, err, total - pass("%d bytes, %ds total timeout, %ds pause", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = data:receive(%d) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - str = data:receive(%d) - ]], 2*tm, len, sl, sl, len)) - data:settimeout(tm, "total") - str = string.rep("a", 2*len) - total, err, partial, elapsed = data:send(str) - check_timeout(tm, sl, elapsed, err, "send", "total", - total == 2*len) -end - ------------------------------------------------------------------------- -function test_blockingtimeoutreceive(len, tm, sl) - reconnect() - local str, err, partial - pass("%d bytes, %ds blocking timeout, %ds pause", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = string.rep('a', %d) - data:send(str) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - data:send(str) - ]], 2*tm, len, sl, sl)) - data:settimeout(tm) - str, err, partial, elapsed = data:receive(2*len) - check_timeout(tm, sl, elapsed, err, "receive", "blocking", - string.len(str or partial) == 2*len) -end - ------------------------------------------------------------------------- -function test_blockingtimeoutsend(len, tm, sl) - reconnect() - local str, err, total - pass("%d bytes, %ds blocking timeout, %ds pause", len, tm, sl) - remote (string.format ([[ - data:settimeout(%d) - str = data:receive(%d) - print('server: sleeping for %ds') - socket.sleep(%d) - print('server: woke up') - str = data:receive(%d) - ]], 2*tm, len, sl, sl, len)) - data:settimeout(tm) - str = string.rep("a", 2*len) - total, err, partial, elapsed = data:send(str) - check_timeout(tm, sl, elapsed, err, "send", "blocking", - total == 2*len) -end - ------------------------------------------------------------------------- -function empty_connect() - reconnect() - if data then data:close() data = nil end - remote [[ - if data then data:close() data = nil end - data = server:accept() - ]] - data, err = socket.connect("", port) - if not data then - pass("ok") - data = socket.connect(host, port) - else - pass("gethostbyname returns localhost on empty string...") - end -end - ------------------------------------------------------------------------- -function isclosed(c) - return c:getfd() == -1 or c:getfd() == (2^32-1) -end - -function active_close() - reconnect() - if isclosed(data) then fail("should not be closed") end - data:close() - if not isclosed(data) then fail("should be closed") end - data = nil - local udp = socket.udp() - if isclosed(udp) then fail("should not be closed") end - udp:close() - if not isclosed(udp) then fail("should be closed") end - pass("ok") -end - ------------------------------------------------------------------------- -function test_closed() - local back, partial, err - local str = 'little string' - reconnect() - pass("trying read detection") - remote (string.format ([[ - data:send('%s') - data:close() - data = nil - ]], str)) - -- try to get a line - back, err, partial = data:receive() - if not err then fail("should have gotten 'closed'.") - elseif err ~= "closed" then fail("got '"..err.."' instead of 'closed'.") - elseif str ~= partial then fail("didn't receive partial result.") - else pass("graceful 'closed' received") end - reconnect() - pass("trying write detection") - remote [[ - data:close() - data = nil - ]] - total, err, partial = data:send(string.rep("ugauga", 100000)) - if not err then - pass("failed: output buffer is at least %d bytes long!", total) - elseif err ~= "closed" then - fail("got '"..err.."' instead of 'closed'.") - else - pass("graceful 'closed' received after %d bytes were sent", partial) - end -end - ------------------------------------------------------------------------- -function test_selectbugs() - local r, s, e = socket.select(nil, nil, 0.1) - assert(type(r) == "table" and type(s) == "table" and - (e == "timeout" or e == "error")) - pass("both nil: ok") - local udp = socket.udp() - udp:close() - r, s, e = socket.select({ udp }, { udp }, 0.1) - assert(type(r) == "table" and type(s) == "table" and - (e == "timeout" or e == "error")) - pass("closed sockets: ok") - e = pcall(socket.select, "wrong", 1, 0.1) - assert(e == false) - e = pcall(socket.select, {}, 1, 0.1) - assert(e == false) - pass("invalid input: ok") -end - ------------------------------------------------------------------------- -function accept_timeout() - io.stderr:write("accept with timeout (if it hangs, it failed): ") - local s, e = socket.bind("*", 0, 0) - assert(s, e) - local t = socket.gettime() - s:settimeout(1) - local c, e = s:accept() - assert(not c, "should not accept") - assert(e == "timeout", string.format("wrong error message (%s)", e)) - t = socket.gettime() - t - assert(t < 2, string.format("took to long to give up (%gs)", t)) - s:close() - pass("good") -end - ------------------------------------------------------------------------- -function connect_timeout() - io.stderr:write("connect with timeout (if it hangs, it failed!): ") - local t = socket.gettime() - local c, e = socket.tcp() - assert(c, e) - c:settimeout(0.1) - local t = socket.gettime() - local r, e = c:connect("127.0.0.2", 80) - assert(not r, "should not connect") - assert(socket.gettime() - t < 2, "took too long to give up.") - c:close() - print("ok") -end - ------------------------------------------------------------------------- -function accept_errors() - io.stderr:write("not listening: ") - local d, e = socket.bind("*", 0) - assert(d, e); - local c, e = socket.tcp(); - assert(c, e); - d:setfd(c:getfd()) - d:settimeout(2) - local r, e = d:accept() - assert(not r and e) - print("ok: ", e) - io.stderr:write("not supported: ") - local c, e = socket.udp() - assert(c, e); - d:setfd(c:getfd()) - local r, e = d:accept() - assert(not r and e) - print("ok: ", e) -end - ------------------------------------------------------------------------- -function connect_errors() - io.stderr:write("connection refused: ") - local c, e = socket.connect("localhost", 1); - assert(not c and e) - print("ok: ", e) - io.stderr:write("host not found: ") - local c, e = socket.connect("host.is.invalid", 1); - assert(not c and e, e) - print("ok: ", e) -end - ------------------------------------------------------------------------- -function rebind_test() - local c = socket.bind("localhost", 0) - local i, p = c:getsockname() - local s, e = socket.tcp() - assert(s, e) - s:setoption("reuseaddr", false) - r, e = s:bind("localhost", p) - assert(not r, "managed to rebind!") - assert(e) - print("ok: ", e) -end - ------------------------------------------------------------------------- -function getstats_test() - reconnect() - local t = 0 - for i = 1, 25 do - local c = math.random(1, 100) - remote (string.format ([[ - str = data:receive(%d) - data:send(str) - ]], c)) - data:send(string.rep("a", c)) - data:receive(c) - t = t + c - local r, s, a = data:getstats() - assert(r == t, "received count failed" .. tostring(r) - .. "/" .. tostring(t)) - assert(s == t, "sent count failed" .. tostring(s) - .. "/" .. tostring(t)) - end - print("ok") -end - - ------------------------------------------------------------------------- -function test_nonblocking(size) - reconnect() -print("Testing " .. 2*size .. " bytes") -remote(string.format([[ - data:send(string.rep("a", %d)) - socket.sleep(0.5) - data:send(string.rep("b", %d) .. "\n") -]], size, size)) - local err = "timeout" - local part = "" - local str - data:settimeout(0) - while 1 do - str, err, part = data:receive("*l", part) - if err ~= "timeout" then break end - end - assert(str == (string.rep("a", size) .. string.rep("b", size))) - reconnect() -remote(string.format([[ - str = data:receive(%d) - socket.sleep(0.5) - str = data:receive(%d, str) - data:send(str) -]], size, size)) - data:settimeout(0) - local start = 0 - while 1 do - ret, err, start = data:send(str, start+1) - if err ~= "timeout" then break end - end - data:send("\n") - data:settimeout(-1) - local back = data:receive(2*size) - assert(back == str, "'" .. back .. "' vs '" .. str .. "'") - print("ok") -end - ------------------------------------------------------------------------- - -test("method registration") -test_methods(socket.unix(), { - "accept", - "bind", - "close", - "connect", - "dirty", - "getfd", - "getstats", - "setstats", - "listen", - "receive", - "send", - "setfd", - "setoption", - "setpeername", - "setsockname", - "settimeout", - "shutdown", -}) - -test("connect function") ---connect_timeout() ---empty_connect() ---connect_errors() - ---test("rebinding: ") ---rebind_test() - -test("active close: ") -active_close() - -test("closed connection detection: ") -test_closed() - -test("accept function: ") -accept_timeout() -accept_errors() - -test("getstats test") -getstats_test() - -test("character line") -test_asciiline(1) -test_asciiline(17) -test_asciiline(200) -test_asciiline(4091) -test_asciiline(80199) -test_asciiline(8000000) -test_asciiline(80199) -test_asciiline(4091) -test_asciiline(200) -test_asciiline(17) -test_asciiline(1) - -test("mixed patterns") -test_mixed(1) -test_mixed(17) -test_mixed(200) -test_mixed(4091) -test_mixed(801990) -test_mixed(4091) -test_mixed(200) -test_mixed(17) -test_mixed(1) - -test("binary line") -test_rawline(1) -test_rawline(17) -test_rawline(200) -test_rawline(4091) -test_rawline(80199) -test_rawline(8000000) -test_rawline(80199) -test_rawline(4091) -test_rawline(200) -test_rawline(17) -test_rawline(1) - -test("raw transfer") -test_raw(1) -test_raw(17) -test_raw(200) -test_raw(4091) -test_raw(80199) -test_raw(8000000) -test_raw(80199) -test_raw(4091) -test_raw(200) -test_raw(17) -test_raw(1) - -test("non-blocking transfer") -test_nonblocking(1) -test_nonblocking(17) -test_nonblocking(200) -test_nonblocking(4091) -test_nonblocking(80199) -test_nonblocking(8000000) -test_nonblocking(80199) -test_nonblocking(4091) -test_nonblocking(200) -test_nonblocking(17) -test_nonblocking(1) - -test("total timeout on send") -test_totaltimeoutsend(800091, 1, 3) -test_totaltimeoutsend(800091, 2, 3) -test_totaltimeoutsend(800091, 5, 2) -test_totaltimeoutsend(800091, 3, 1) - -test("total timeout on receive") -test_totaltimeoutreceive(800091, 1, 3) -test_totaltimeoutreceive(800091, 2, 3) -test_totaltimeoutreceive(800091, 3, 2) -test_totaltimeoutreceive(800091, 3, 1) - -test("blocking timeout on send") -test_blockingtimeoutsend(800091, 1, 3) -test_blockingtimeoutsend(800091, 2, 3) -test_blockingtimeoutsend(800091, 3, 2) -test_blockingtimeoutsend(800091, 3, 1) - -test("blocking timeout on receive") -test_blockingtimeoutreceive(800091, 1, 3) -test_blockingtimeoutreceive(800091, 2, 3) -test_blockingtimeoutreceive(800091, 3, 2) -test_blockingtimeoutreceive(800091, 3, 1) - -test(string.format("done in %.2fs", socket.gettime() - start)) diff --git a/Build/source/texk/web2c/luatexdir/luasocket/test/utestsrvr.lua b/Build/source/texk/web2c/luatexdir/luasocket/test/utestsrvr.lua deleted file mode 100644 index a96b570e1b9..00000000000 --- a/Build/source/texk/web2c/luatexdir/luasocket/test/utestsrvr.lua +++ /dev/null @@ -1,17 +0,0 @@ -socket=require("socket"); -os.remove("/tmp/luasocket") -socket.unix = require("socket.unix"); -host = host or "luasocket"; -server = assert(socket.unix()) -assert(server:bind(host)) -assert(server:listen(5)) -ack = "\n"; -while 1 do - print("server: waiting for client connection..."); - control = assert(server:accept()); - while 1 do - command = assert(control:receive()); - assert(control:send(ack)); - ((loadstring or load)(command))(); - end -end |