| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | This directory contains some sample programs usingLuaSocket. This code is not supported.    listener.lua            -- socket to stdout    talker.lua              -- stdin to socketlistener.lua and talker.lua are about  the simplestapplications you can write  using  LuaSocket.  Run   	'lua listener.lua'  and  'lua talker.lua'on different terminals. Whatever you type on talk.lua willbe printed by listen.lua.    lpr.lua                 -- lpr clientThis is a cool program written by David Burgess to printfiles using the Line Printer Daemon protocol, widely used inUnix machines.  It uses the lp.lua implementation, in theetc directory.  Just run 'lua lpr.lua <filename>queue=<printername>' and the file will print!    cddb.lua                -- CDDB clientThis is the first try on a simple CDDB client. Not reallyuseful, but one day it might become a module.     daytimeclnt.lua         -- day time clientJust run the program to retrieve the hour and date inreadable form from any server running an UDP daytime daemon.    echoclnt.lua            -- UDP echo client    echosrvr.lua            -- UDP echo serverThese are a UDP echo client/server pair. They work withother client and servers as well.    tinyirc.lua             -- irc like broadcast serverThis is a simple server that  waits simultaneously on twoserver sockets for telnet connections.  Everything itreceives from  the telnet clients is  broadcasted to  everyother  connected client.  It tests  the select function andshows  how to create a simple server  whith LuaSocket. Justrun tinyirc.lua and  then open as many telnet connectionsas you want to ports 8080 and 8081.Good luck,Diego.
 |