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

1
FIX
View File

@ -7,3 +7,4 @@ new timming functions. higher resolution, no wrap around
bug fixes in the manual bug fixes in the manual
getfd missing cast getfd missing cast
added unix domain support example added unix domain support example
fixed local domain socket kludge of name size

6
test/excepttest.lua Normal file
View File

@ -0,0 +1,6 @@
local socket = require("socket")
try = socket.newtry(function()
print("finalized!!!")
end)
try = socket.protect(try)
print(try(nil, "it works"))

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