| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 | This directory contains code that is more useful than thesamples. This code *is* supported.    tftp.lua                -- Trivial FTP clientThis module implements file retrieval by the TFTP protocol.Its main use was to test the UDP code, but since someonefound it usefull, I turned it into a module that is almostofficial (no uploads, yet).    dict.lua                -- Dict clientThe dict.lua  module started with  a cool  simple clientfor the  DICT protocol, written by Luiz Henrique Figueiredo.This new version has been converted into a library, similarto the HTTP  and FTP libraries, that can be used from withinany luasocket application. Take  a look on the  source codeand you will be able to figure out how to use it.    lp.lua                  -- LPD client libraryThe lp.lua module implements the client part of the LinePrinter Daemon protocol, used to print files on Unixmachines. It is courtesy of David Burgess!  See the sourcecode and the lpr.lua in the examples directory.    b64.lua    qp.lua    eol.luaThese are tiny programs that perform Base64,Quoted-Printable and end-of-line marker conversions.    get.lua                 -- file retrieverThis little  program is  a client  that uses  the FTP  andHTTP  code to implement a  command line  file graber. Justrun 	lua get.lua <remote-file> [<local-file>]to download  a remote file (either  ftp:// or http://) tothe specified local file.  The program  also prints  thedownload  throughput, elapsed time, bytes already downloadedetc during download.    check-memory.lua        -- checks memory consumptionThis is just to see how much memory each module uses.    dispatch.lua            -- coroutine based dispatcherThis is a first try at a coroutine based non-blockingdispatcher 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 programThis little program scans a HTML file and checks for brokenlinks. It is similar to check-links.pl by Jamie Zawinski,but uses all facilities of the LuaSocket library and the Lualanguage. It has not been thoroughly tested, but it shouldwork. Just run	lua check-links.lua [-n] {<url>} > outputand open the result to see a list of broken links. Make sureyou check the '-n' switch. It runs in non-blocking mode,using coroutines, and is MUCH faster!    forward.lua             -- coroutine based forward serverThis is a forward server that can accept several connectionsand transfers simultaneously using non-blocking I/O and thecoroutine-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.hThis is an implementation of Unix local domain sockets anddemonstrates how to extend LuaSocket with a new type oftransport. It has been tested on Linux and on Mac OS X.Good luck,Diego.
 |