Forgot a few files.

This commit is contained in:
Diego Nehab 2004-07-01 05:38:44 +00:00
parent 197aef23ce
commit 2562738e2d
3 changed files with 17 additions and 0 deletions

10
test/unixtest.lua Normal file
View file

@ -0,0 +1,10 @@
socket = require("socket")
f = loadlib("etc-1.0.dylib", "unix_open")
f(socket)
u = socket.unix()
print(u:bind("/tmp/luasocket"))
print(u:listen())
c = u:accept()
while 1 do
print(assert(c:receive()))
end