socket support for lua
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Gunnar Zötl 265fcf15e3 simple fix for memory leak in *_recv functions, with more complete fix to follow 5 years ago
..
README initial commit, after all those versions without version control... 7 years ago
httpclient.lua unified license statement 7 years ago
httpserver.lua unified license statement 7 years ago
rshttpd.lua simple fix for memory leak in *_recv functions, with more complete fix to follow 5 years ago
testclt_mcast.lua unified license statement 7 years ago
testclt_tcp.lua unified license statement 7 years ago
testclt_udp.lua unified license statement 7 years ago
testclt_unix.lua unified license statement 7 years ago
testsrv_mcast.lua unified license statement 7 years ago
testsrv_tcp.lua unified license statement 7 years ago
testsrv_udp.lua unified license statement 7 years ago
testsrv_unix.lua unified license statement 7 years ago

README

This directory contains examples for lsocket. These are:

testsrv_tcp.lua a very simple tcp test server, just echoes what it
gets from the clients.
Start with argument 6 to use IPv6, otherwise use IPv4
testclt_tcp.lua a client for testsrv_tcp.lua, sends what you type to
the server and displays the response.
Start with argument 6 to use IPv6, otherwise use IPv4
testsrv_udp.lua like testsrv_tcp.lua, just for udp
testclt_udp.lua like testclnt_tcp.lua, just for udp
testsrv_mcast.lua a very simple multicast server, sends a counter.
Start with argument 6 to use IPv6 multicast, otherwise
use IPv4 broadcast
testclt_mcast.lua a very simple multicast client, displays what it
receives from the server.
Start with argument 6 to use IPv6 multicast, otherwise
use IPv4 broadcast

httpserver.lua a very simple http server, uses the rshttpd.lua library
to do the real work.
rshttpd.lua a ridiculously simple http server library. Documentation
is in the comment at the beginning.

httpclient.lua a simple http client. Call with the complete url you
want to fetch, httpclient.lua then issues a GET request
to the server at the specified address and prints the
data it receives to the standard output.