luat-soc.mkiv /size: 2368 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=luat-soc,
3%D        version=2018.08.05,
4%D          title=\CONTEXT\ Lua Macros,
5%D       subtitle=Socket Libraries,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Lua Macros / Socket Libraries}
15
16%D In \LUATEX\ we provide the socket library that is more or less the standard one
17%D for \LUA. It has been around for a while and seems to be pretty stable. The
18%D binary module is copmpiled into \LUATEX\ and the accompanying .lua files are
19%D preloaded. These files are mostly written by Diego Nehab, Andre Carregal, Javier
20%D Guerra, and Fabio Mascarenhas with contributions from Diego Nehab, Mike Pall,
21%D David Burgess, Leonardo Godinho, Thomas Harning Jr., and Gary NG. The originals
22%D are part of and copyrighted by the Kepler project.
23%D
24%D Here we reload a slightly reworked version of these \type {.lua} files. We keep
25%D the same (documented) interface but streamlined some fo the code. No more
26%D modules, no more pre 5.2 \LUA, etc. Also, as it loads into the \CONTEXT
27%D ecosystem, we plug in some logging. (and maybe tracing in the future). As we
28%D don't support serial ports in \LUATEX, related code has been dropped.
29%D
30%D The files are reformatted so that we can more easilly add additional features
31%D and|/|or tracing options. Any error introduced there is our fault! The url module
32%D might be replaced by the one in \CONTEXT. When we need mbox a suitable variant
33%D will be provided.
34
35%D Currently we preload the related \LUA\ code in \LUATEX, but that might change at
36%D some point. We're prepared for that.
37
38% \registerctxluafile{util-soc-imp-reset}  {}
39%
40% \registerctxluafile{util-soc-imp-socket} {}
41% % registerctxluafile{util-soc-imp-copas}  {}
42% \registerctxluafile{util-soc-imp-ltn12}  {}
43% % registerctxluafile{util-soc-imp-mbox}   {}
44% \registerctxluafile{util-soc-imp-mime}   {}
45% \registerctxluafile{util-soc-imp-url}    {}
46% \registerctxluafile{util-soc-imp-headers}{}
47% \registerctxluafile{util-soc-imp-http}   {}
48% \registerctxluafile{util-soc-imp-tp}     {}
49% % registerctxluafile{util-soc-imp-ftp}    {}
50% % registerctxluafile{util-soc-imp-smtp}   {}
51
52\endinput
53