Forgot a few files.
This commit is contained in:
parent
197aef23ce
commit
2562738e2d
3 changed files with 17 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue