mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Forgot a few files.
This commit is contained in:
parent
197aef23ce
commit
2562738e2d
1
FIX
1
FIX
@ -7,3 +7,4 @@ new timming functions. higher resolution, no wrap around
|
||||
bug fixes in the manual
|
||||
getfd missing cast
|
||||
added unix domain support example
|
||||
fixed local domain socket kludge of name size
|
||||
|
6
test/excepttest.lua
Normal file
6
test/excepttest.lua
Normal 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
10
test/unixtest.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user